query-aab6c82bfcdaa3f531262b8dd3696c6c
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
::SELECT DISTINCT ?p_property ?p_propertyLabel ?statementLink ?simplevalue ?simplevalueLabel
::WHERE
::{
::
:: wd:Q1 ?property ?statementLink .
:: ?statementLink ?simplevalueLink ?simplevalue .
:: wd:Q1 ?propdirect ?simplevalue.
::
:: #find property label (thanks to tagishsimon)
:: ?p_property wikibase:claim ?property .
::
:: FILTER(STRSTARTS(STR(?propdirect), "http://www.wikidata.org/prop/direct/"))
:: FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/P"))
:: #BIND(STR(?simplevalueLink) as ?xxx)
:: FILTER(STRSTARTS(STR(?simplevalueLink), "http://www.wikidata.org/prop/statement/"))
:: SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
::}
::