I found another solution for my problem by using a subquery.
The query below seems to produce the same results as the original one, but
executes much faster (making it work at the http://dbpedia.org/sparql
endpoint).
SELECT ?order ?label WHERE {
?order rdfs:label ?label FILTER(lang(?label) = "en") .
{SELECT DISTINCT ?order WHERE {
?species rdf:type dbpedia-owl:Species .
?species dbpedia-owl:order ?order .
}}
} LIMIT 50
Regards,
Sören
------------------------------------------------------------------------------
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion