Hello,
when using the following query against http://dbpedia.org/sparql or
http://dbpedia-live.openlinksw.com/sparql using RDF/XML as result
format, the result is not well-formed (see the error message below):
CONSTRUCT {
<http://dbpedia.org/resource/Bob_Dylan> ?p0 ?o0.
?o0 ?p1 ?o1.
}
WHERE {
<http://dbpedia.org/resource/Bob_Dylan> ?p0 ?o0.
OPTIONAL{
?o0 ?p1 ?o1.
}}
LIMIT 1000
OFFSET 1000
It looks like the typical "number after prefix" problem in RDF/XML encoding.
Kind regards,
Jens
Firefox:
http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=CONSTRUCT+%7B%0D%0A%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FBob_Dylan%3E+%3Fp0+%3Fo0.%0D%0A%3Fo0+%3Fp1+%3Fo1.%0D%0A%7D%0D%0AWHERE+%7B%0D%0A%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FBob_Dylan%3E+%3Fp0+%3Fo0.%0D%0AOPTIONAL%7B%0D%0A%3Fo0+%3Fp1+%3Fo1.%0D%0A%7D%7D%0D%0ALIMIT+1000%0D%0AOFFSET+1000&format=application%2Frdf%2Bxml&timeout=0&debug=on
XML Parsing Error: not well-formed
Location: file:///home/lorenz/Downloads/sparql%20(10)
Line Number 120, Column 96:<rdf:Description
rdf:about="http://dbpedia.org/resource/Minnesota"><n0pred:Geographic_Location_%288-way%29
xmlns:n0pred="http://dbpedia.org/resource/Template:"
xml:lang="en">North</n0pred:Geographic_Location_%288-way%29></rdf:Description>
JENA:
(line 120 column 96): Element type "n0pred:Geographic_Location_" must be
followed by either attribute specifications, ">" or "/>".
Exception in thread "main" com.hp.hpl.jena.shared.JenaException:
org.xml.sax.SAXParseException: Element type
"n0pred:Geographic_Location_" must be followed by either attribute
specifications, ">" or "/>".
at
com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler.fatalError(RDFDefaultErrorHandler.java:45)
at
com.hp.hpl.jena.rdf.arp.impl.ARPSaxErrorHandler.fatalError(ARPSaxErrorHandler.java:35)
at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.warning(XMLHandler.java:225)
at
com.hp.hpl.jena.rdf.arp.impl.XMLHandler.fatalError(XMLHandler.java:255)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
--
Dr. Jens Lehmann
Head of AKSW/MOLE group, University of Leipzig
Homepage: http://www.jens-lehmann.org
GPG Key: http://jens-lehmann.org/jens_lehmann.asc