DS Catalog:SPARQL Query Service/example queries: Difference between revisions

Line 112: Line 112:
==Statement Count Generator==
==Statement Count Generator==
This query generates a count of the number of statements (triples) in the DS Wikibase matching a particular pattern.
This query generates a count of the number of statements (triples) in the DS Wikibase matching a particular pattern.
<syntaxhighlight lang="SPARQL">
SELECT (COUNT(?string) AS ?stringCount)
WHERE {
  ?stringStatement ps:P10 ?string . # use "as recorded" property P-value for the data you want to count
 
    SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" .
  }
}
GROUP BY (?stringCount)
</syntaxhighlight>


==Unenriched Strings Generator==
==Unenriched Strings Generator==
Bots, Bureaucrats, emailconfirmed, Administrators
30,537

edits