query-e54641269c2e809269cc3914e3e58aaa

rq turtle/ttl

title:VIAF unique value violations (recent items with GND) SELECT DISTINCT ?item1 ?item1Label ?item2 ?item2Label ?value { ?item1 wdt:P214 ?value . ?item2 wdt:P214 ?value . ?item1 wdt:P31 wd:Q5 . ?item2 wdt:P227 [] . FILTER ((xsd:integer(SUBSTR(STR(?item2),33))) > 90000000) . FILTER( ?item1 != ?item2 && STR( ?item1 ) < STR( ?item2 ) ) . SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" } . } ORDER BY ?item2

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:VIAF unique value violations (recent items with GND)
SELECT DISTINCT ?item1 ?item1Label ?item2 ?item2Label ?value 
{
    ?item1 wdt:P214 ?value .
    ?item2 wdt:P214 ?value .
    ?item1 wdt:P31 wd:Q5 .
    ?item2 wdt:P227 [] .
    FILTER ((xsd:integer(SUBSTR(STR(?item2),33))) > 90000000) .
    FILTER( ?item1 != ?item2 && STR( ?item1 ) < STR( ?item2 ) ) .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" } .
}
ORDER BY ?item2

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item1"):::projected v1("?item2"):::projected v3("?value"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c10(["it,en"]):::literal c5(["wd:Q5"]):::iri f0[["?item1 != ?item2str(?item1) < str(?item2)"]] f0 --> v2 f0 --> v1 f1[["http://www.w3.org/2001/XMLSchema#integer(substring(str(?item2),'33^^xsd:integer')) > '90000000^^xsd:integer'"]] f1 --> v1 v2 --"wdt:P214"--> v3 v1 --"wdt:P214"--> v3 v2 --"wdt:P31"--> c5 v1 --"wdt:P227"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end