Help

Difference between revisions of "SPARQL/test"

< Help:SPARQL

Line 21: Line 21:
 
   ?statement0 (ps:P31/(wdt:P279*)) wd:Q34228.
 
   ?statement0 (ps:P31/(wdt:P279*)) wd:Q34228.
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
 +
}
 +
</query>
 +
|}
 +
 +
== Commons ==
 +
{| style="width:100%"
 +
|- style="vertical-align:top;"
 +
|style="padding: 0 3em;width:60%"|
 +
<syntaxhighlight lang="sparql">
 +
#defaultEndpoint:Commons
 +
SELECT ?item
 +
WHERE {
 +
  ?item wdt:P31 wd:Q108167708 . # Filter: P31 'instance of' Q108167708 'record'
 +
  ?item wdt:P407 wd:Q1860 .    # Filter: P407 'language' is Q1860 'English'
 +
  ?item wdt:P9533 "apple"@en.  # Filter: P9533 'transcription' is "apple"
 +
}
 +
</syntaxhighlight>
 +
||
 +
<query _pagination="10">
 +
#defaultEndpoint:Commons
 +
SELECT ?item
 +
WHERE {
 +
  ?item wdt:P31 wd:Q108167708 . # Filter: P31 'instance of' Q108167708 'record'
 +
  ?item wdt:P407 wd:Q1860 .    # Filter: P407 'language' is Q1860 'English'
 +
  ?item wdt:P9533 "apple"@en.  # Filter: P9533 'transcription' is "apple"
 
}
 
}
 
</query>
 
</query>
 
|}
 
|}

Revision as of 09:59, 22 March 2023

✅ Languages → List of Sign languages on wikidata

To run on WDQS.[1]

#defaultEndpoint:Wikidata
SELECT DISTINCT ?item ?itemLabel
WHERE {
  ?item p:P31 ?statement0.
  ?statement0 (ps:P31/(wdt:P279*)) wd:Q34228.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
... Loading ...

Commons

#defaultEndpoint:Commons
SELECT ?item
WHERE { 
  ?item wdt:P31 wd:Q108167708 . # Filter: P31 'instance of' Q108167708 'record'
  ?item wdt:P407 wd:Q1860 .     # Filter: P407 'language' is Q1860 'English'
  ?item wdt:P9533 "apple"@en.   # Filter: P9533 'transcription' is "apple"
}
... Loading ...