- From: Seaborne, Andy <andy.seaborne@hp.com>
- Date: Mon, 9 Jun 2008 14:04:52 +0000
- To: Manu Sporny <msporny@digitalbazaar.com>
- CC: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>, Dave Beckett <dave@dajobe.org>
- Message-ID: <B6CF1054FDC8B845BF93A6645D19BEA33C8C4B9DAE@GVW1118EXC.americas.hpqcorp.net>
> -----Original Message----- > From: Manu Sporny [mailto:msporny@digitalbazaar.com] > Sent: 9 June 2008 14:28 > To: Seaborne, Andy > Cc: RDFa mailing list; Dave Beckett > Subject: Issue with Jena/sparql.org and XML Literals? > > Hi Andy, > > I've hit an issue with Jena/sparql.org... trying to find the root of the > issue. The e-mail thread that kicked off contacting you can be found here: > > http://lists.w3.org/Archives/Public/public-rdf-in-xhtml- > tf/2008Jun/0027.html > http://lists.w3.org/Archives/Public/public-rdf-in-xhtml- > tf/2008Jun/0029.html > http://lists.w3.org/Archives/Public/public-rdf-in-xhtml- > tf/2008Jun/0032.html > http://lists.w3.org/Archives/Public/public-rdf-in-xhtml- > tf/2008Jun/0033.html > > Basically, when @parseType is used to express an XML Literal in RDF/XML > instead of @datatype, the SPARQL query that checks for the typed XML > Literal fails. > > Does Jena add an XML Literal type to data that is read in with a > @parseType of "Literal"? Yes. You have to be carefule with line endings as well - \n vs \n\r etc. The SPARQL parser does not canonicalize XMLLiterals in the query. 2008Jun/0027.html ==> [[ If you look at librdfa's output for TC100: http://rdfa.digitalbazaar.com/librdfa/rdfa2rdf.py?uri=http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0100.xhtml and PyRDFa's output for TC100: http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0100.xhtml ]] If I understand these correctly, these are different. Running CURL on the first I get data with multiple namespaces on each element, and I don't on the second. N-Triples files for each attached (rdfparse run on the CURL results of each link.. You will see they both have XMLLiterals but are different sizes. e.g. on the first: there is xmlns:dc=\"http://purl.org/dc/elements/1.1/\" on the <strong> Is this relevant? Andy > > Dave, I cc'ed you in case you might know of anything that would cause > this graph comparison to not work. > > -- manu > > -- > Manu Sporny > President/CEO - Digital Bazaar, Inc. > blog: DB Launches Medical Record Sales Service with Shepherd Medical > http://blog.digitalbazaar.com/2008/02/24/health2trade/
Attachments
Received on Monday, 9 June 2008 14:06:16 UTC