SELECT ?subject ?label ?nbdoc WHERE { ?subject <http://www.w3.org/2004/02/skos/core#prefLabel> ?label. { SELECT ?subject (count(?s) AS ?nbdoc) WHERE {?s <http://purl.org/dc/terms/subject> <http://rechercheisidore.fr/hdl:10670/1.06l45i>. ?s <http://purl.org/dc/terms/subject> ?subject.} } FILTER (?nbdoc>10) } ORDER BY DESC(?nbdoc) LIMIT 1000
---
The error is: Incomplete or invalid Group Graph pattern. Could not handle " SELECT ?subject count(?s) AS"
Thanks for helping!
Regards,
Laurent
SELECT ?subject ?label (count(?s) AS ?nbdoc) WHERE { ?subject <http://www.w3.org/2004/02/skos/core#prefLabel> ?label. ?s <http://purl.org/dc/terms/subject> <http://rechercheisidore.fr/hdl:10670/1.06l45i>. ?s <http://purl.org/dc/terms/subject> ?subject. } FILTER (?nbdoc>10) } ORDER BY DESC(?nbdoc) LIMIT 1000
--
You received this message because you are subscribed to the Google Groups "arc-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arc-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
looks like 3store does not support subqueries? ... (but don't take my word on that cause I honestly don't know).Wouldnt you be able to do this with one query?something like
SELECT ?subject ?label (count(?s) AS ?nbdoc) WHERE { ?subject <http://www.w3.org/2004/02/skos/core#prefLabel> ?label. ?s <http://purl.org/dc/terms/subject> <http://rechercheisidore.fr/hdl:10670/1.06l45i>. ?s <http://purl.org/dc/terms/subject> ?subject. } FILTER (?nbdoc>10) } ORDER BY DESC(?nbdoc) LIMIT 1000
Both the AS syntax, and subqueries in general, are SPARQL 1.1 Query features, which are not supported in arc2.Barry