|
In your opinion, what is the best java RDFa parser? Advantages and disadvantages of each... Thanks, Celso. |
|
According to Google (http://www.google.com/#q=best+java+rdfa): java-rdfa. I agree. :-)
and Any23? (http://developers.any23.org/) Any23 uses an XSLT transformation, see: http://code.google.com/p/any23/source/browse/trunk/any23-core/src/main/java/org/deri/any23/extractor/rdfa/RDFaExtractor.java in my project i am using OWLAPI, have a "simple" way to use java-rdfa? 1
In that case you'd need to create a sink (http://www.rootdev.net/maven/projects/java-rdfa/apidocs/net/rootdev/javardfa/StatementSink.html) that passed the triples to http://owlapi.sourceforge.net/javadoc/uk/ac/manchester/cs/owl/owlapi/turtle/parser/OWLRDFConsumerAdapter.html. Trivial, but requires a little plumbing. :( !!!! ... do you have a "complete" example using Jena? |
|
Another Java implementation available now. Semargl project includes RDFa parser which fully supports all related W3C specifications and optional processing features. Atm it provides integration with Jena, Sesame, Clerezza and supports Android and GAE. disclosure: I'm the maintainer of the project. |
|
TopBraid Composer has a RDFa parser as well as a fully functional editor. See http://composing-the-semantic-web.blogspot.com/2007/01/topbraid-is-now-also-rdfa-editor.html. |
|
The Jena GRDDL Reader can also be used to process RDFa.
The example is taken from http://rdfa.info/2007/05/25/jena-supports-rdfa/. The GRDDL reader uses Saxon, so I assume the extraction is done via XSLT. This may be a downside, as it might not be as fast as a native RDFa parser and you pull another dependency (Saxon) into your software. A plus is, that it can be hooked into the standard Jena AP easily, without explicitly using non-standard Jena calls. Yes, the extraction is done via XSLT, and, yes, this is a downside. It's probably not as fast as java-rdfa (which can as easily hooked up into the standard Jena APIs). I don't see it as a downside necessarily. A precompiled XSLT script may well outperform a bad native implementation. |
|
[http://code.google.com/p/rdfa-core-java/][1] passes nearly all RDFa 1.1 compatibility tests. Explanations for failing tests have been documented. Compatibility tests have been included as a Jena based unit test. [1]: http://code.google.com/p/rdfa-core-java/ rdfa-core-java |


my choose is java-rda used in my project http://code.google.com/p/autometa/