about semantic web, software architecture and life in general

This is an archived version of my blog.
See also my homepage.

Post details: Generating RDFa from RDF

2008-10-21

Permalink 13:38:47, Categories: Semantic Web   English (EU)

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:

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.
PermalinkPermalink 2008-10-21 @ 21:17
Comment from: captsolo [Member]
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.
PermalinkPermalink 2008-10-21 @ 22:12
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:
  1. presenting them to humans (i.e. as XHTML)
  2. extracting RDF structures from them (for queries)
We have implementations for (1) and (2) but are now starting to combine them. For active documents, which offer interactive services to the user who is browsing them, we need semantics in the XHTML rendered by (1), and an obvious approach is to embed this semantics as RDFa (see the JOBAD project for details). As, in our case, both the XHTML and the RDF are generated from the same source, and our implementations of (1) and (2) are technically similar (both done in XSLT), it is easily possible to combine them.
PermalinkPermalink 2008-11-12 @ 17:33
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/
PermalinkPermalink 2009-01-15 @ 16:23

Page served in 0.354 seconds

Valid XHTML 1.0! Valid CSS! Valid RSS! Valid Atom!  

An unexpected error has occured!

If this error persits, please report it to the administrator.

Go back to home page

Additional information about this error:

MySQL error!

Duplicate entry '4758420' for key 1(Errno=1062)

Your query: Record the hit

      INSERT INTO evo_hitlog(
        hit_sess_ID, hit_datetime, hit_uri, hit_referer_type,
        hit_referer, hit_referer_dom_ID, hit_blog_ID, hit_remote_addr, hit_agnt_ID )
      
VALUES( "5685396",
FROM_UNIXTIME(1274730059), "/info/blog_a.php/2008/10/21/generating_rdfa_from_rdf", "direct", "", NULL, 2, "204.236.235.245", 50717 )