query-8bc19ef8caffeb3c92852149b9db9c93
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
SELECT DISTINCT ?item {
# Any claim
?item ?prop ?claim .
# With a reference
?claim prov:wasDerivedFrom ?ref.
# That has "imported from" "English Wikipedia" in it
?ref pr:P143 wd:Q328.
# Without
MINUS {
# a sitelink
?siteLink schema:about ?item .
# to the english wiki
FILTER(regex(str(?siteLink), "https://en.wikipedia.org/wiki/"))
}
}
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?claim")
v1("?item"):::projected
v2("?prop")
v4("?ref")
v5("?siteLink")
c3(["wd:Q328"]):::iri
v1 -->v2--> v3
v3 --"prov:wasDerivedFrom"--> v4
v4 --"pr:P143"--> c3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["regex(str(?siteLink),'https://en.wikipedia.org/wiki/')"]]
f1 --> v5
v5 --"schema:about"--> v1
end