Sören Brunk wrote:
> Hi all,
>
> Has anyone an idea how to optimize a query like this one:
>
> SELECT DISTINCT ?order ?label WHERE
> {
> ?species rdf:type dbpedia-owl:Species .
> ?species dbpedia-owl:order ?order .
> ?order rdfs:label ?label FILTER(LANG(?label) = "en") .
> }
>
> I'm trying to get the order attribute of all species but the query always 
> times out at the dbpedia SPARQL endpoint. Removing the FILTER constraint or 
> DISTINCT makes the query work but also retrieves a lot of (in my case) 
> irrelevant results.
>
> Thanks for help.
>
> Regards,
> Sören
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Dbpedia-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>   

Add OFFSET and LIMIT to the query so that you can operate within the 
server side restrictions of the service via a data window.

-- 

Regards,

Kingsley Idehen       
President & CEO 
OpenLink Software     
Web: http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca: kidehen 






------------------------------------------------------------------------------

_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to