Hey,

sorry for abusing this thread, but somehow it belongs to it. I also discovered 
some problems concerning, IRI/URI escaping/non escaping Thing.

Querying returns "correct and expected" result, but retrieved IRIs aren't 
valid. By changing authority Part from dbpedia.org to live.dbpedia.org results 
get valid.
It looks like dbpedia.org is already using correct updated IRI version, but 
cannot cope with special chars. Where as live.dbpedia.org can but escaped Data 
is this still present. Is this a assumption correct, or is there a mistake in 
my approach? 


Query:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT distinct *  WHERE {
{ ?s rdfs:label 'Alzheimer\'s disease'@en}
} limit 250

Result from live.dbpedia.org [1]:
s
http://dbpedia.org/resource/Alzheimer%27s_disease
http://dbpedia.org/resource/Alzheimer's_disease
http://dbpedia.org/resource/Category%3AAlzheimer%27s_disease
http://dbpedia.org/class/yago/Alzheimer'sDisease

Result from dbpedia.org [2]:
s
http://dbpedia.org/resource/Alzheimer's_disease
http://dbpedia.org/class/yago/Alzheimer'sDisease
http://dbpedia.org/resource/Category:Alzheimer's_disease


Example:
bash-4.1$ curl -v "http://dbpedia.org/resource/Alzheimer's_disease"
<....
< Location: http://dbpedia.org/page/Alzheimer's_disease
< ...
bash-4.1$ curl -v "http://dbpedia.org/page/Alzheimer's_disease"
< ...
< HTTP/1.1 404 Not found
< ...
bash-4.1$ curl -v "http://dbpedia.org/page/Alzheimer%27s_disease";
< ...
< HTTP/1.1 404 Not found
< ...

Changing Server to "live.dbpedia.org"
curl -v "http://live.dbpedia.org/page/Alzheimer's_disease"
< ...
< HTTP/1.1 200 OK
< ...
curl -v "http://live.dbpedia.org/page/Alzheimer%27s_disease";
< ...
< HTTP/1.1 200 OK
< ...

[1]http://live.dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=PREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0ASELECT+distinct+*++WHERE+{%0D%0A{+%3Fs+rdfs%3Alabel+%27Alzheimer\%27s+disease%27%40en}%0D%0A}+limit+250%0D%0A&should-sponge=&format=text%2Fhtml&timeout=0&debug=on

[2]http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=PREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0ASELECT+distinct+*++WHERE+{%0D%0A{+%3Fs+rdfs%3Alabel+%27Alzheimer\%27s+disease%27%40en}%0D%0A}+limit+250%0D%0A&format=text%2Fhtml&timeout=30000&debug=on

Cheers
 Johannes

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to