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
86
votes
8 answers

OpenGraph or Schema.org?

Just wondering whether you guys out there are favouring the OpenGraph protocol following markup like:
Tom
  • 913
  • 1
  • 8
  • 7
75
votes
4 answers

Microdata vs RDFa

I have a quick question about RDFa and Microdata. My current understanding is that RDFa is RDF implemented into HTML but is complicated for new developers like myself, Microdata seems really easy and quick to implement. What are the other advantages…
user1043646
67
votes
6 answers

Microdata, RDFa or JSON-LD Appropriate or best usage?

I have been wondering which of those formats is "best"? Schema.org, Microdata, and RDFa are bit of a pain to implement. They can break validation and require quite an effort to put into documents. JSON-LD is, at last for me, a way better to…
Grzegorz
  • 3,538
  • 4
  • 29
  • 47
28
votes
3 answers

What is the relationship between RDF, RDFa, Microformats and Microdata

I've done quite a bit of research but I can't understand the exact relationship between the 3. Also, now that W3C has officially recognised RDFa, would you recommend it over Microdata, taking into consideration that it matches Microdata's features…
aelsheikh
  • 2,268
  • 5
  • 26
  • 41
18
votes
1 answer

RDFa Vs. Microdata

RDFa in XHTML is a w3c standard. Microdata is mentioned as a HTML 5 API. My questions are: Is microdata also a w3c standard? If yes, why we need 2 similar standards? People say using microdata is simpler than RDFa. Except for this, what are the…
Manoj S.
  • 203
  • 2
  • 5
12
votes
1 answer

Multiple Schema.org ItemList elements on one page

I defined multiple ItemLists on one page, and the Chrome extension Structured Data Testing Tool says: "ITEMLISTS_MULTIPLE_LISTS_ON_PAGE" Is there any way to define multiple ItemList elements within one page while being still valid?
notnull
  • 1,908
  • 3
  • 19
  • 25
12
votes
1 answer

How to add multiple tags (article: tag) in Facebook Open Graph?

For a single blog / article that has multiple tags how would add the Facebook Open Graph data? This seems like it would be the most logical way to do it. However it reports that it's incorrect in the Facebook debugger:
Bryan Willis
  • 3,552
  • 1
  • 25
  • 34
12
votes
2 answers

DTD with RFDa and XHTML 1.0 Transitional support

Is there a W3C document type available with both XHTML 1.0 transitional support and RDFa support? I am aware of the XHTML+RDFa 1.0 (http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd) DTD but that is XHTML 1.1 which is not compatible with my current…
Wolph
  • 78,177
  • 11
  • 137
  • 148
9
votes
5 answers

HTML5 and RDFa support

I'm about to introduce the Open Graph protocol to an existing HTML5 Web application and I'd like to include the necessary RDFa data without introducing any unnecessary crud. I've looked at the HTML+RDFa 1.1 draft and comparing it with Facebook's…
Filip Dupanović
  • 32,650
  • 13
  • 84
  • 114
9
votes
6 answers

Is there an RDF ontology for blogs?

I'm setting up a blog, and I'm fascinated by RDF and the idea of the sematic web. I'd like to use RDFa to embed sematic data into my blog. There are several well know semantic web ontologies like FOAF for decribing people, ical for events, geo for…
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
8
votes
2 answers

How does schema.org usage fit into Linked Data principles?

I am starting to learn schema.org schema. I come from the RDF/OWL community. To my surprise I could not indeed find an RDFS or OWL vocabulary representation of schema.org. More specifically, I realised that it was just a HTML page describing the…
MaatDeamon
  • 9,532
  • 9
  • 60
  • 127
8
votes
1 answer

How do I mix ontologies that describe the same object (using rdfa?)

Imagine I start using an ontology because it provides some useful vocabulary to describe an object I'm interested in, e.g. FOAF to describe a Person (me). I immediately run into two problems. I come across another ontology that also has vocabulary…
cboettig
  • 12,377
  • 13
  • 70
  • 113
7
votes
2 answers

Statistics about "Microformat vs HTML+RDFa" adoption

Are there some recent and reliable statistics about "Web use" (webpages using one standard or another) of these standards? Or an specific statistic about vCard (person and/or organization) scope of use? Only statistics, this question is not about…
Peter Krauss
  • 13,174
  • 24
  • 167
  • 304
6
votes
2 answers

What is a good Javascript RDFa parser implementation?

I am looking to implement a client side RDFa based formatting for a web application. This would be similar to Mark Birbeck's ubiquity-rdfa project. Mark's project looks fantastic but it has at least two drawbacks: It is slow. Adding RDFa…
tremoloqui
  • 3,198
  • 3
  • 25
  • 22
6
votes
3 answers

W3C validator shows new error: "Meta requires 'name' attribute"

The w3C validator was all fine with this code: If I replace the property attribute with name, the validator says og:site_name is not registered. All of a sudden today it displayed this…
Emad Ha
  • 1,203
  • 15
  • 33
1
2 3
12 13