I think in principle an GRDDL XSLT stylesheet should be enough to transform (X)HTML+RDFa to RDF/XML. Something like this: http://ns.inria.fr/grddl/rdfa/
This would be more reusable across platforms than Jena-based code. On Mon, Jan 15, 2018 at 12:56 PM, Jean-Marc Vanel <[email protected]> wrote: > Here is a summary of the problems with RDFa 1.0 and 1.1 in official test > suite in > https://github.com/rdfa/rdfa.github.io/blob/master/test-suite/test-cases/ > and > http://rdfa.info/test-suite/test-cases/rdfa1.0/xml/0001.xml > ( the later does not display directory content :( ) > > https://github.com/jmvanel/java-rdfa/blob/master/TODO.md#summary > > Summary of the summary: > > - 5 problems common to RDFa 1.0 and 1.1 > - 6 unique problems in RDFa 1.1 , including a big case > > > Only problems with XML wrapping are analyzed here; XHML(1 or 5), XHML(4 or > 5), and SVG wrapping were not analyzed; they are likely to be much the > same. > > My opinion is that with the recent upgrades, *java-rdfa is good enough for > a release*. > The current version 4.2 is unusable, because it relies on old Jena API with > hp.hpl prefix in classes. > The failures in tests involve subtle features in RDFa, a complex spec. ; > the vast majority of tests pass. > > A release will allow RDFa to be actually used, and then the users will be > able to tell their priorities regarding the failing tests. > On my side, I will try it in Semantic_forms, which might reveal runtime > problems. > > I add in CC the maintainer of *java-rdfa* (shellac does not seems to have > an email available )*.* > > > 2018-01-15 0:14 GMT+01:00 Jean-Marc Vanel <[email protected]>: > > > I paste latest commit: > > > > Add all tests in http://rdfa.info/test-suite/test-cases > > > > - check results by RDF graph comparison > > - add 10 new test classes > > - old test classes should be FIXED or removed > > - results are green in majority, but lot of red ! :( > > > > > > 2018-01-14 11:58 GMT+01:00 Jean-Marc Vanel <[email protected]>: > > > >> > >> > >> 2018-01-14 0:10 GMT+01:00 Martynas Jusevičius <[email protected]>: > >> > >>> Does it support RDFa 1.1? > >>> > >> > >> Couldn't get it to return a triple from the RDFa 1.1 tests. > >> Tried with class rdfa.simpleparse, > >> and URL's : > >> http://rawgit.com/rdfa/rdfa.github.io/master/test-suite/test > >> -cases/rdfa1.1/html4/0001.html > >> http://rawgit.com/rdfa/rdfa.github.io/master/test-suite/test > >> -cases/rdfa1.1/xhtml5/0001.xhtml > >> https://raw.githubusercontent.com/rdfa/rdfa.github.io/master > >> /test-suite/test-cases/rdfa1.1/xhtml5/0334.xhtml > >> > >> with and without > >> --format XHTML > >> or > >> --format HTML > >> > >> The tests are in a github.io project: > >> https://github.com/rdfa/rdfa.github.io/tree/master/test- > suite/test-cases > >> > >> I prefer to use the rawgit.com service, that allows to test both HTTP > >> and HTTPS. Note that HTTPS is not a problem for Java-RDFa . > >> > >> The tests have changed 7 months ago, there are 334 each for most > >> combinations between ( 1.0, 1.1 ) and (HTML,XHTML, HTML5). > >> Currently only 19 tests pass: > >> > >> Tests run: 28, Failures: 3, Errors: 6, Skipped: 0 > >> > >> I have the impression that developments were stopped in 2016 in the > >> middle of implementing RDFa 1.1 . > >> If Maven experts could review the pom.xml that would help !!!!!!!!! > >> > >> > >>> Can it read both XHTML and HTML(5)? > >>> > >> > >> Yes , with RDFa 1.0. > >> Tried URL's : > >> https://rawgit.com/rdfa/rdfa.github.io/master/test-suite/tes > >> t-cases/rdfa1.0/xhtml1/0001.xhtml > >> https://rawgit.com/rdfa/rdfa.github.io/master/test-suite/tes > >> t-cases/rdfa1.0/html4/0001.html > >> which both return: > >> <https://rawgit.com/rdfa/rdfa.github.io/master/test-suite/te > >> st-cases/rdfa1.0/xhtml1/photo1.jpg> > >> <http://purl.org/dc/elements/1.1/creator> > >> "Mark Birbeck" . > >> > >> > >> > >>> On Sat, Jan 13, 2018 at 8:47 PM, Jean-Marc Vanel < > >>> [email protected]> > >>> wrote: > >>> > >>> > Yes, > >>> > it's already possible if you use my fork from source. > >>> > It will be easier when there will be a new release of Java-RDFa in > >>> Maven > >>> > Central Repository. > >>> > The current release of Java-RDFa (old) in Maven is not compatible > with > >>> > current Jena API. > >>> > And even easier if Java-RDFa is integrated in RDFDataMgr . > >>> > > >>> > > >>> > 2018-01-13 19:56 GMT+01:00 Laura Morales <[email protected]>: > >>> > > >>> > > What does this mean for Jena/Fuseki? That it's possible to > download a > >>> > HTML > >>> > > page and add RDF information to a graph? > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > Sent: Saturday, January 13, 2018 at 6:42 PM > >>> > > From: "Jean-Marc Vanel" <[email protected]> > >>> > > To: "Jena users" <[email protected]> > >>> > > Subject: RDFa ... > >>> > > Hi > >>> > > > >>> > > Good news! > >>> > > I started upgrading the project java-rdfa . > >>> > > Here is my fork: > >>> > > https://github.com/jmvanel/java-rdfa/commits?author=jmvanel > >>> > > > >>> > > -- > >>> > > Jean-Marc Vanel > >>> > > http://www.semantic-forms.cc:9111/display?displayuri=http:/ > >>> > > /jmvanel.free.fr/jmv.rdf%23me#subject[http://www.semantic- > >>> > > forms.cc:9111/display?displayuri=http://jmvanel. > >>> > > free.fr/jmv.rdf%23me#subject] > >>> > > <http://www.semantic-forms.cc:9111/display?displayuri=http:/ > >>> > > /jmvanel.free.fr/jmv.rdf%23me[http://www.semantic-forms.cc > >>> <http://jmvanel.free.fr/jmv.rdf%23me%5Bhttp://www.semantic-forms.cc>: > >>> > > 9111/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me]> > >>> > > Déductions SARL - Consulting, services, training, > >>> > > Rule-based programming, Semantic Web > >>> > > +33 (0)6 89 16 29 52 > >>> > > Twitter: @jmvanel , @jmvanel_fr ; chat: irc:// > >>> irc.freenode.net#eulergui > >>> > > > >>> > > >>> > > >>> > > >>> > -- > >>> > Jean-Marc Vanel > >>> > http://www.semantic-forms.cc:9111/display?displayuri=http:/ > >>> > /jmvanel.free.fr/jmv.rdf%23me#subject > >>> > <http://www.semantic-forms.cc:9111/display?displayuri=http:/ > >>> > /jmvanel.free.fr/jmv.rdf%23me> > >>> > Déductions SARL - Consulting, services, training, > >>> > Rule-based programming, Semantic Web > >>> > +33 (0)6 89 16 29 52 > >>> > Twitter: @jmvanel , @jmvanel_fr ; chat: irc:// > irc.freenode.net#eulergu > >>> i > >>> > > >>> > >> > >> > >> > >> -- > >> Jean-Marc Vanel > >> http://www.semantic-forms.cc:9111/display?displayuri=http:// > >> jmvanel.free.fr/jmv.rdf%23me#subject > >> <http://www.semantic-forms.cc:9111/display?displayuri=http:/ > /jmvanel.free.fr/jmv.rdf%23me> > >> Déductions SARL - Consulting, services, training, > >> Rule-based programming, Semantic Web > >> +33 (0)6 89 16 29 52 <+33%206%2089%2016%2029%2052> > >> Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui > >> > > > > > > > > -- > > Jean-Marc Vanel > > http://www.semantic-forms.cc:9111/display?displayuri=http:/ > > /jmvanel.free.fr/jmv.rdf%23me#subject > > <http://www.semantic-forms.cc:9111/display?displayuri=http:/ > /jmvanel.free.fr/jmv.rdf%23me> > > Déductions SARL - Consulting, services, training, > > Rule-based programming, Semantic Web > > +33 (0)6 89 16 29 52 <+33%206%2089%2016%2029%2052> > > Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui > > > > > > -- > Jean-Marc Vanel > http://www.semantic-forms.cc:9111/display?displayuri=http:/ > /jmvanel.free.fr/jmv.rdf%23me#subject > <http://www.semantic-forms.cc:9111/display?displayuri=http:/ > /jmvanel.free.fr/jmv.rdf%23me> > Déductions SARL - Consulting, services, training, > Rule-based programming, Semantic Web > +33 (0)6 89 16 29 52 > Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui >
