query-51084f2ddd09e5647536f6697f925c82
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
SELECT ?item {
?item wikibase:sitelinks 0; wikibase:statements 0 . # no sitelinks, no statements; buggy!
MINUS { # not in use as value in another item
?mainsnakProperty wikibase:propertyType wikibase:WikibaseItem; wikibase:claim ?claim; wikibase:statementProperty ?statementProperty .
[] ?claim [ ?statementProperty ?item ]
}
MINUS { # not in use as qualifier in another item
?qualifierProperty wikibase:propertyType wikibase:WikibaseItem; wikibase:qualifier ?qualifier .
[] ?qualifier ?item
}
MINUS { # not in use as reference in another item
?referenceProperty wikibase:propertyType wikibase:WikibaseItem; wikibase:reference ?reference .
[] ?reference ?item
}
MINUS { # 2nd check: no sitelinks
?sitelink schema:about ?item
}
MINUS { # 2nd check: no statements
?anyProperty a wikibase:Property; wikibase:claim ?anyClaim .
?item ?anyClaim []
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v11("?anyClaim")
v10("?anyProperty")
v3("?claim")
v1("?item"):::projected
v2("?mainsnakProperty")
v6("?qualifier")
v5("?qualifierProperty")
v8("?reference")
v7("?referenceProperty")
v9("?sitelink")
v4("?statementProperty")
a2((" "))
a3((" "))
a4((" "))
a1((" "))
a5((" "))
c2(["0^^xsd:integer"]):::literal
c12(["wikibase:Property"]):::iri
c5(["wikibase:WikibaseItem"]):::iri
v1 --"wikibase:sitelinks"--> c2
v1 --"wikibase:statements"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wikibase:propertyType"--> c5
v2 --"wikibase:claim"--> v3
v2 --"wikibase:statementProperty"--> v4
a1 -->v4--> v1
a2 -->v3--> a1
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v5 --"wikibase:propertyType"--> c5
v5 --"wikibase:qualifier"--> v6
a3 -->v6--> v1
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v7 --"wikibase:propertyType"--> c5
v7 --"wikibase:reference"--> v8
a4 -->v8--> v1
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v9 --"schema:about"--> v1
end
subgraph minus4["MINUS"]
style minus4 stroke-width:6px,fill:pink,stroke:red;
v10 --"a"--> c12
v10 --"wikibase:claim"--> v11
v1 -->v11--> a5
end