Created
March 19, 2013 14:10
-
-
Save tatiana/5196401 to your computer and use it in GitHub Desktop.
Can I build a single SPARQL query for listing items and counting them?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEFINE input:inference <http://tatipedia.org/property_ruleset> | |
SELECT DISTINCT ?subject ?label count(distinct ?subject) as ?total | |
WHERE { | |
?subject a <http://tatipedia.org/Place>; | |
rdfs:label ?label . | |
FILTER (langMatches(lang(?label), "pt")) | |
} | |
LIMIT 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like a SINGLE query that would:
Provided:
Would respond:
However, the query above returns: