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
0
votes
2 answers

How to insert echo statements in order to insert RDFa Lite markup

I have an issue that I can't seem to solve, without breaking the entire page. I need to edit this following code and insert extra echo statements. The echo statements are needed in order to markup with RDFa Lite. echo '
Amira
  • 1
0
votes
0 answers

RDF library and SPARQL issue

In my python file I have imported rdflib and implemented some SPARQL query to for some testing. Here is the code I have now. from rdflib import Graph if __name__ == '__main__': g = Graph() g.parse('http://localhost:8085/weather-2.html',…
Ovaflow
  • 111
  • 1
  • 14
0
votes
0 answers

correct RDF-a 1.1 schema for therapist practices

I'm trying to find the correct schema for a mental health therapist who works in several practices. As we know, pretty much the only professional health service schema.org seems to have heard of are 'Medical Services' … Let me outline how I've been…
richey
  • 3,890
  • 9
  • 35
  • 49
0
votes
1 answer

How to test a rdfa parser?

I'm trying to find a way to check if my rdfa-parser (written in nodejs) is working. So I have an rdfa-parser, which should print all triples, found in a file or url (with rdfa-syntax). So far I know, that there are testsuits for RDFa-parsing…
Soro
  • 61
  • 8
0
votes
1 answer

Equivalent RDFa markup for RDF+XML snippet

I'm currently learning about all things RDF and was wondering what the equivalent RDFa markup would look like for this RDF+XML snippet:
Thomas
  • 4,030
  • 4
  • 40
  • 79
0
votes
1 answer

Adding semantic markup to a rails application / RDFa

I am surprised to see little information about this. I'd like to enhance my Rails webpages with semantic markup for use with Facebook/LinkedIn/Twitter and Search Engines. Most things I find when typing "RDFA ruby/rails" are actually processors that…
Cyril Duchon-Doris
  • 12,964
  • 9
  • 77
  • 164
0
votes
1 answer

Property without class in RDF

I have a class Person. It has two properties hasAge and hasZipCode. :Person :hasAge :hasZipCode I would like to say that hasAge and hasZipCode are sub-properties of hasColumn property. Hence I mentioned it like…
Beautiful Mind
  • 5,828
  • 4
  • 23
  • 42
0
votes
1 answer

RDFa microdata or structured markup for wordpress

According to this recent post on Search Engine Watch https://searchenginewatch.com/2016/07/19/the-complete-beginners-guide-to-schema-org-markup-2 RDFa is a form of micro data to embellish a web page ( or blog post ? ) yet when I search for an RDFa…
0
votes
1 answer

Is it mandatory to provide meta tags for rich snippets?

I'm using rich snippet in my website. Example: Consider providing Organization schema. Is it necessary to provide something
?
0
votes
1 answer

Creating an rdfa in Javascript

I am getting data from dbpedia and need to create an rdfa to link back to the original sources. I really dont understand how to do this. I need to show the subject, relationships etc. Could someone give me a clear…
user1212520
  • 501
  • 1
  • 5
  • 15
0
votes
1 answer

Errors for RDFa in my HTML example

I am new to programming and I'm working on writing RDFa in HTML. I know I'm close, but I've not getting validated at Structured Data Linter. I'm wondering if anyone with more experience may be able to identify my shortcomings. SO = schema.org DC -…
LaPhonso
  • 1
  • 1
0
votes
0 answers

Prestashop RDFa Breadcrumb

i'm trying to implement RDFa breadcrum in a site of mine using Prestashop 1.6 version.I'm using this guide http://nemops.com/prestashop-rich-snippets-breadcrumbs/#.VuBX9Jx96Uk to alter the breadcrumb.tpl and to override the Tools class. I get the…
0
votes
2 answers

Rich snippet is not showing for http://purl.org/goodrelations/

My site is https://www.liteshop.com.au/content/olight-h15s-wave-rechargeable-led-headlamp We implemented rich snippets on my site seven weeks ago but still Google does not show on search. Testing tool shows "All good". Here is the rich snippets…
0
votes
1 answer

Add image URL without loading image that passes Google Structured Data tester

I am trying to enable Google's Rich Snippets for articles, and it keeps demanding an image for the article. I don't actually want to display an image on the page so how do I mark it up so that it provides Google with the URL for the image? Using…
Walt.B
  • 3
  • 3
0
votes
1 answer

Invalid markup with XFBML and RDFa

EDIT: I switched back to XHTML 1.0 Transitional. It renders fine, but isn't valid. Help is still appreciated. Hello. I am trying to integrate the Facebook plugins into my website, PlugB. To make them validate at W3 validator, I added a XHTML + RDFa…
Gabriel Bianconi
  • 1,179
  • 3
  • 19
  • 37