On 8/20/12 12:08 PM, Rob Stewart wrote:
Hi,

I am having trouble parsing the response I get from the DBpedia sparql
endpoint. The HTTP header I am using is "text/n3".

I have isolated a few lines from the response that according to an
RDF/N3 validator [1] is not valid syntax. Here are the lines:

1    @prefix dbpedia:   <http://dbpedia.org/resource/> .
2    @prefix owl:       <http://www.w3.org/2002/07/owl#> .
3    @prefix ns10:      <http://fr.dbpedia.org/resource/> .
4    dbpedia:Edinburgh  owl:sameAs      ns10:Édimbourg ,
5               <http://sws.geonames.org/2650225/> .

Error message:
"Validation failed: Expecting a period, semicolon, comma,
close-bracket, or close-brace but found '‰', line 4 col 35."

This is an exert from the SPARQL response for the query:
DESCRIBE <http://dbpedia.org/resource/Edinburgh>

Request URI: 
http://dbpedia.org/sparql?query=PREFIX%20dbpedia%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F%3E%20DESCRIBE%20dbpedia%3AEdinburgh%20WHERE%20%7B%7D
Header: Accept "text/n3"
Method: GET

Feeding the response through [1] tells me that the syntax is not
valid. I have pasted the entire HTTP response:
http://pastebin.com/xAvvMcjY . Could someone comment?

[1] - http://www.rdfabout.com/demo/validator/

--
Rob Stewart

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
Here's a SPARQL protocol URL for text/n3:
http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=PREFIX+dbpedia%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F%3E+DESCRIBE+dbpedia%3AEdinburgh+&format=text%2Frdf%2Bn3&timeout=0&debug=on


URL for text/turtle:
http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=PREFIX+dbpedia%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F%3E+DESCRIBE+dbpedia%3AEdinburgh+&format=text%2Fturtle&timeout=0&debug=on

--

Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca handle: @kidehen
Google+ Profile: https://plus.google.com/112399767740508618350/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen





Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to