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

Line 1,668: Line 1,668:
</syntaxhighlight>
</syntaxhighlight>


===Places===
===Names===
 
===Personal Names and Corporate Names===
<syntaxhighlight lang="SPARQL">
<syntaxhighlight lang="SPARQL">
# prefixes
# prefixes
Line 1,687: Line 1,685:
WHERE {
WHERE {


# specify authority values to be generated by type by uncommenting
VALUES ?authorityType { wd:Q8 wd:Q9 }
 
#BIND (wd:Q8 as ?authorityType) # personal name authority
#BIND (wd:Q9 as ?authorityType) # corporate name authority


?authorityValue wdt:P16 ?authorityType .
?authorityValue wdt:P16 ?authorityType .
Line 1,709: Line 1,704:
ORDER BY ASC (?authorityValueLabel)
ORDER BY ASC (?authorityValueLabel)
</syntaxhighlight>
</syntaxhighlight>
===Places===


===Standard Titles===
===Standard Titles===
Line 1,739: Line 1,736:
ORDER BY ASC (?authorityValueLabel)
ORDER BY ASC (?authorityValueLabel)
</syntaxhighlight>
</syntaxhighlight>
===Terms (Genres and Subjects)===


==Dated Classification Generator==
==Dated Classification Generator==
Bots, Bureaucrats, emailconfirmed, Administrators
30,537

edits