Post details: Generating RDFa from RDF
2008-10-21
Generating RDFa from RDF
Can you suggest tools or web services for generating RDFa content from RDF?
Extracting RDF statements from (X)HTML+RDFa is a common task and that’s what many RDFa tools do. An example of such service is the W3C RDFa distiller service by Ivan Herman.
What about a “RDFa fusion” tool which gets (X)HTML and RDF content as input and produces (X)HTML+RDFa?
In domain specific situations one can use templating for inserting bits of RDFa in relevant places of (X)HTML markup. An example is the FOAF/RDF to FOAF/RDFa converter by Michael Hausenblas.
But that will not work in a general case when the structure of (X)HTML document is not known in advance.
Related:
- RDFa in XHTML is a W3C Recommendation [W3C Semantic Web Activity news]
- Templating Microformats from RDF by Danny Ayers where I spotted a link to Michael’s FOAF/RDF to RDFa converter
Comments, Pingbacks:
Comment from: Richard Cyganiak [Visitor]
· http://dowhatimean.net/
This is a hard problem, because RDF in general doesn't contain any layout information, but RDFa needs layout information because the RDF statements are embedded in HTML layout.
Rendering RDF without domain information usually doesn't produce very good results. Therefore, I wonder a bit how useful such a service would be.
Maybe you can explain why you want to do this in the first place.
Rendering RDF without domain information usually doesn't produce very good results. Therefore, I wonder a bit how useful such a service would be.
Maybe you can explain why you want to do this in the first place.
I am talking about a situation when we already have HTML and RDF, and want to fuse them together by using RDFa.
An example situation is FOAF and SIOC data which many sites currently expose as external metadata. It might take a bit before all these sites convert to RDFa but it would be good if services which can consume RDFa (e.g., SearchMonkey) could make use of this data right away.
Can you not encode arbitrary RDF as HTML+RDFa? Assuming that humans are only concerned with what is visible and machines are only concerned with statements extracted from the document (visibility of which is not a requirement as such) is there any "stakeholder" who cares if RDF statements are associated with a particular DOM node?
P.S. I am not talking here about a UI for visualizing RDF which may not have a good generic solution. This post is just about using a web page as a carrier of RDF data for consumption by RDFa-aware applications.
An example situation is FOAF and SIOC data which many sites currently expose as external metadata. It might take a bit before all these sites convert to RDFa but it would be good if services which can consume RDFa (e.g., SearchMonkey) could make use of this data right away.
Can you not encode arbitrary RDF as HTML+RDFa? Assuming that humans are only concerned with what is visible and machines are only concerned with statements extracted from the document (visibility of which is not a requirement as such) is there any "stakeholder" who cares if RDF statements are associated with a particular DOM node?
P.S. I am not talking here about a UI for visualizing RDF which may not have a good generic solution. This post is just about using a web page as a carrier of RDF data for consumption by RDFa-aware applications.
Comment from: Christoph Lange [Visitor]
· http://kwarc.info/clange/
I think that's very interesting if the XHTML is generated from some semantic source. A related case that makes me interested in this (and that made me retrieve this page via Google) is the processing of semantic markup. In our setting, we have documents in a semantic markup language and want to do several things with them:
- presenting them to humans (i.e. as XHTML)
- extracting RDF structures from them (for queries)
Comment from: Claudia Wagner [Visitor]
· http://clauwa.info
Thats a very intersting topic and I also wondered how to automatically relate external RDF data with DOM nodes via RDFa.
From my point of view it makes sense to let the RDF and HTML representation of certain data seperated, because they must not necessarily describe the data with the same detail level, and relate them only via few RDFa statemants. These RDFa statemants simply relate roughly DOM nodes with external resource description. Maybe this mixed approach would allow combining the advantages of external RDF descriptions (e.g. easy to parse, no layout issues) with the advantages of embedded RDF (e.g. positional information).
I wrote a related posting: http://www.clauwa.info/2009/01/09/embedded-versus-external-semantic-metadata/
From my point of view it makes sense to let the RDF and HTML representation of certain data seperated, because they must not necessarily describe the data with the same detail level, and relate them only via few RDFa statemants. These RDFa statemants simply relate roughly DOM nodes with external resource description. Maybe this mixed approach would allow combining the advantages of external RDF descriptions (e.g. easy to parse, no layout issues) with the advantages of embedded RDF (e.g. positional information).
I wrote a related posting: http://www.clauwa.info/2009/01/09/embedded-versus-external-semantic-metadata/
This post has 7 feedbacks awaiting moderation...
Leave a comment:
captsolo weblog
See also:
- My homepage (captsolo.net)
- @CaptSolo on Twitter
- FriendFeed profile
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||
Search
Gallery
www.flickr.com
|
Categories
Archives
- October 2009 (1)
- March 2009 (2)
- February 2009 (4)
- January 2009 (2)
- December 2008 (2)
- November 2008 (5)
- October 2008 (10)
- August 2008 (1)
- July 2008 (4)
- June 2008 (1)
- May 2008 (5)
- April 2008 (2)
- More...
- more...

