Hi Faraz,
URIs need to be enclosed in < > in SPARQL, so the query should be:
SELECT ?x ?y WHERE { ?x ?y
<http://dbpedia.org/resource/Alexander_Grothendieck> .} LIMIT 1000
OFFSET 0
Which returns the expected data:
http://bit.ly/gSf2H3
Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink
On 19 Mar 2011, at 12:27, Faraz Fallahi wrote:
> hi
>
> i have a problem with this query in snorqul
>
> SELECT ?x ?y WHERE { ?x ?y
> http://dbpedia.org/resource/Alexander_Grothendieck .} LIMIT 1000
> OFFSET 0
>
> it throws me this error:
>
> 37000 Error SP030: SPARQL compiler, line 12: Undefined namespace
> prefix at 'http' before '/' SPARQL query: define
> input:default-graph-uri PREFIX owl: PREFIX xsd: PREFIX rdfs: PREFIX
> rdf: PREFIX foaf: PREFIX dc: PREFIX : PREFIX dbpedia2: PREFIX dbpedia:
> PREFIX skos: SELECT ?x ?y WHERE { ?x ?y
> http://dbpedia.org/resource/Alexander_Grothendieck .} LIMIT 1000
> OFFSET 0
>
> what is wrong with the query?
>
> greez
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Dbpedia-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion