Questions tagged [rdfa]

RDFa (Resource Description Framework in Attributes) is a technique that allows to express structured data in markup languages. It provides a set of attributes to augment the visual information on the Web with machine-readable hints.

RDFa is a W3C Recommendation for embedding data in markup languages (like HTML, XHTML, SVG, etc.).

Example

The following XHTML snippet (from the RDFa 1.1 Primer linked below), the document has "The Trouble with Bob" as a value of the property dc:terms as well as the content of an h2 element. It also has a dc:created value of 2011-09-10. Because the additional information is specified by attributes on the elements, it does not affect the display of the XHTML document.

<html>
<head>…</head>
<body>
  …
  <h2 property="http://purl.org/dc/terms/title">The Trouble with Bob</h2>
  <p>Date: <span property="http://purl.org/dc/terms/created">2011-09-10</span></p>
  …
</body>

What questions should use this tag?

Questions about adding RDFa annotations to a document, or extracting RDF data from an RDFa document should use the tag.

References

The W3C has published several documents regarding RDFa, including an introductory primer as well as the normative recommendations:

192 questions
6
votes
3 answers

In RDFa, difference between property="" & rel="", and resource="" & about=""?

I am currently teaching myself RDFa Core 1.1 after successfully learning RDFa Lite rather easily. Straight to the point, I can't understand two things: the difference between property and rel, and the difference between resource and about. Please…
Sketch R
  • 83
  • 5
6
votes
3 answers

Understanding what SPARQL is

This is a terribly beginner series of questions, but after reading through a good 30 SPARQL tutorials I can't seem to wrap my head around what SPARQL is or how to begin using it. Is it executed on the client side? Is microsoft somehow going to be…
user73119
  • 2,413
  • 3
  • 21
  • 21
6
votes
2 answers

Best practices for adding semantics to a website

I am a bit confused about the semantics of websites. I understand that every URI should represent a ressource. I assume that all information provided by RDFa inside a webpage describes the ressource represented by the URI of that webpage. My…
tobib
  • 2,114
  • 4
  • 21
  • 35
5
votes
2 answers

What's the best way to parse RDFa, Microdata, etc, store and display info back using a uniform schema/vocabulary (schema.org's for example)

I'm mainly using Ruby to do this but my plan of attack thus far is as follows: Use the gems rdf,rdf-rdfa, and either rdf-microdata or mida to parse data given any URI. I think it'd be best to map to a uniform schema like schema.org, for example take…
imorsi
  • 346
  • 1
  • 11
5
votes
3 answers

rdfa namespace specifically for cars

I would like to implement RDFA to a car site. Triples would go something like: This image is about a honda This page is about a honda This rating is for a honda civic ...etc... I can't seem to find a namespace to use in my case. For example , I…
rexposadas
  • 3,109
  • 3
  • 27
  • 49
5
votes
2 answers

Should og:image and og:url put in or ?

For og:image and og:url, since they have URL, can I place them in a link tag instead of a meta tag, and is it preferable? Also what is the difference in using these two tags w.r.t. og:image and og:url?
jayant
  • 366
  • 4
  • 14
5
votes
0 answers

Structured data errors on BreadcrumbList with Open Graph

I recently added the RDFa breadcrumbs structured data to one of our websites. Now it looks looks like it conflicts with the Open Graph data that was already present on the website. How is this possible? The OG data is in the tag and not even…
5
votes
2 answers

RDFa content implementation for products

I'm knee deep in the nightmare that is RDFa implementation for product information and am curious if anyone out there can provide some insight. Google flat out say's not to hide information just for the sake of providing data to machines unless it…
S16
  • 2,963
  • 9
  • 40
  • 64
5
votes
2 answers

Why is my page showing as validated in the W3C validator, but not when using SEO checking tools?

I have a web page that returns in W3C Validator as fully validated (and is green). But when I run a check of the same URL in many SEO testing websites, it fails and tells me the errors it failed on: Bad value v:url for attribute rel on element a:…
Lee
  • 4,187
  • 6
  • 25
  • 71
5
votes
2 answers

RDFa Breadcrumbs

When you use an ul element to format your breadcrumb (aiming for better Google search results), how do you define the RDFa markup? The reason I am asking is that the li elements are siblings from each other, and not children. I am doing something…
Fabio Nolasco
  • 7,122
  • 6
  • 35
  • 32
5
votes
1 answer

Dealing with non-semantic uses of "rel" in RDFa

I use RDFa to add linked data to my webpage. I also occasionally use the rel attribute in various tags for non-semantic purposes, such as triggering a javascript tooltip. I am wondering the there is something I can do to distinguish the uses. …
cboettig
  • 12,377
  • 13
  • 70
  • 113
5
votes
4 answers

What is the correct way to reference RDFa namespaces in HTML5?

I'm setting up a HTML5 webpage and want to include RDFa. I try checking the syntax with the w3 validator, and check the extracted RDF using the w3 RDFa distiller. When I declare namespaces using xmlns:="" the validator complains that the…
Eivind Eidheim Elseth
  • 2,294
  • 1
  • 23
  • 28
5
votes
4 answers

Knowing what RDFA vocabulary to use

How do we know which vocabulary/namespace to use to describe data with RDFa? I have seen a lot of examples that use xmlns:dcterms="http://purl.org/dc/terms/" or xmlns:sioc="http://rdfs.org/sioc/ns#" then there is this video that uses FOAF…
Mike
  • 12,359
  • 17
  • 65
  • 86
5
votes
2 answers

RDFa, Microdata and Microformat.

RDFa, Microformats and Microdata provide easy ways to include semantic markup. Are there any other similar technologies ? Thanks
Anne G.
  • 53
  • 2
4
votes
2 answers

OWL parser for PHP?

I am asking just for clarification, may sound silly for some, but i am a newbie to semantic web world :) From few days i have been experimenting on extracting RDF from HTML, trying to parse it and apply few SPARQL queries on it. I am currently using…
Robert
  • 79
  • 1
  • 7
1
2
3
12 13