Hello Michael,
Actually, both should not work.
The URL should be encoded, so either
http://dbpedia.org/resource/Time_%28magazine%29
or
:Time_%28magazine%29

I was actually surprised to also find

http://dbpedia.org/resource/Time_(magazine)

in DBpedia, so they are different URIs, which is obviously wrong.
I think the yago dataset has bad url encoding and should be fixed.
Regards,
Sebastian, AKSW

Michael Haas schrieb:
> Hello,
>
> I'm trying to run some SPARQL queries. Consider these two queries that 
> should yield the same output:
>
> First query:
> PREFIX dbpedia: <http://dbpedia.org/resource/>  SELECT * WHERE { 
> <http://dbpedia.org/resource/Time_(magazine)>  ?b 
> <http://dbpedia.org/class/yago/AmericanNewsMagazines> }
>
> Second query:
> PREFIX dbpedia: <http://dbpedia.org/resource/>  SELECT * WHERE { 
> dbpedia:Time_(magazine)  ?b 
> <http://dbpedia.org/class/yago/AmericanNewsMagazines> }
>
> The first query will run just fine, the second query will fail with 
> "37000 Error SP030: SPARQL compiler, line 1: syntax error at '(' before 
> 'magazine'".
>
> Any clue as to why this happens? Do I need to encode the parentheses? 
> Queries without parentheses work fine in both cases.
>
>
> Regards,
>
> Michael
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Dbpedia-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>
>   


-- 
Dipl. Inf. Sebastian Hellmann
Department of Computer Science, University of Leipzig
Homepage: http://bis.informatik.uni-leipzig.de/SebastianHellmann
Research Group: http://aksw.org


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to