query-c263814f2bb4f1dcde4ac7f377e8b9b3
Databases that are used for references, but not linked as identifier
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?property ?value ?identifier ?id WHERE {
{
SELECT DISTINCT ?item WHERE {
?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
}
}
?property wikibase:claim ?claim; wikibase:statementProperty ?statementProperty .
?identifier wikibase:propertyType wikibase:ExternalId; wikibase:claim ?identifierClaim; wikibase:statementProperty ?identifierStatementProperty; wikibase:reference ?ref .
?item ?claim [ ?statementProperty ?value; prov:wasDerivedFrom [ ?ref ?id ] ] .
MINUS { ?item ?identifierClaim [ ?identifierStatementProperty ?id ] }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?claim")
v10("?id"):::projected
v5("?identifier"):::projected
v6("?identifierClaim")
v7("?identifierStatementProperty")
v1("?item"):::projected
v2("?property"):::projected
v8("?ref")
v4("?statementProperty")
v9("?value"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
c4(["wd:Q26270618"]):::iri
c8(["wikibase:ExternalId"]):::iri
v1 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c4
v2 --"wikibase:claim"--> v3
v2 --"wikibase:statementProperty"--> v4
v5 --"wikibase:propertyType"--> c8
v5 --"wikibase:claim"--> v6
v5 --"wikibase:statementProperty"--> v7
v5 --"wikibase:reference"--> v8
a3 -->v4--> v9
a4 -->v8--> v10
a3 --"prov:wasDerivedFrom"--> a4
v1 -->v3--> a3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
a5 -->v7--> v10
v1 -->v6--> a5
end