query-50d7c0257171e4449998eab9233fa9ce
Unique value constraint report for P2639: report listing each item SELECT DISTINCT ?item1 ?item2 ?wde ?item1Label ?item2Label ?gnd1 ?gnd2 ?geb1 ?geb2 ?isni1 ?isni2 ?viaf1 ?viaf2 ?dnb1 ?dnb2 ?filmportal WHERE { ?item1 wdt:P2639 ?filmportal. ?item2 wdt:P2639 ?filmportal. ?wde schema:about ?item1; schema:inLanguage "de". FILTER((?item1 != ?item2) && ((STR(?item1)) < (STR(?item2)))) OPTIONAL { ?item1 wdt:P227 ?gnd1. } OPTIONAL { ?item2 wdt:P227 ?gnd2. } OPTIONAL { ?item1 wdt:P213 ?isni1. } OPTIONAL { ?item2 wdt:P213 ?isni2. } OPTIONAL { ?item1 wdt:P214 ?viaf1. } OPTIONAL { ?item2 wdt:P214 ?viaf2. } OPTIONAL { ?item1 wdt:P7902 ?dnb1. } OPTIONAL { ?item2 wdt:P7902 ?dnb2. } OPTIONAL { ?item1 wdt:P569 ?geb1. } OPTIONAL { ?item2 wdt:P569 ?geb2. } FILTER((xsd:integer(SUBSTR(STR(?item2), 33 ))) >= 95000000 ) SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". } } ORDER BY (xsd:integer(SUBSTR(STR(?item2), 33 )))
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Unique value constraint report for P2639: report listing each item
SELECT DISTINCT ?item1 ?item2 ?wde ?item1Label ?item2Label ?gnd1 ?gnd2 ?geb1 ?geb2 ?isni1 ?isni2 ?viaf1 ?viaf2 ?dnb1 ?dnb2 ?filmportal WHERE {
?item1 wdt:P2639 ?filmportal.
?item2 wdt:P2639 ?filmportal.
?wde schema:about ?item1;
schema:inLanguage "de".
FILTER((?item1 != ?item2) && ((STR(?item1)) < (STR(?item2))))
OPTIONAL { ?item1 wdt:P227 ?gnd1. }
OPTIONAL { ?item2 wdt:P227 ?gnd2. }
OPTIONAL { ?item1 wdt:P213 ?isni1. }
OPTIONAL { ?item2 wdt:P213 ?isni2. }
OPTIONAL { ?item1 wdt:P214 ?viaf1. }
OPTIONAL { ?item2 wdt:P214 ?viaf2. }
OPTIONAL { ?item1 wdt:P7902 ?dnb1. }
OPTIONAL { ?item2 wdt:P7902 ?dnb2. }
OPTIONAL { ?item1 wdt:P569 ?geb1. }
OPTIONAL { ?item2 wdt:P569 ?geb2. }
FILTER((xsd:integer(SUBSTR(STR(?item2), 33 ))) >= 95000000 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
} ORDER BY (xsd:integer(SUBSTR(STR(?item2), 33 )))