query-eeeead82e7b9ad2e63e63a58ecd5b449
Finds items with the anti-pattern of:
described by source=article
reference: inferred by=article
described by source=DNB
statement is subject of=article
which duplicates (triplicates) and self-references the article link.
SELECT DISTINCT ?item ?article WHERE { ?item p:P1343 ?articleURI; p:P1343 ?sourceURI.
?articleURI ps:P1343 ?article; prov:wasDerivedFrom ?articleRef. ?articleRef pr:P3452 ?article.
?sourceURI ps:P1343 ?source; pq:P805 ?article. }
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
# Finds items with the anti-pattern of:
# described by source=article
# reference: inferred by=article
# described by source=DNB
# statement is subject of=article
# which duplicates (triplicates) and self-references the article link.
SELECT DISTINCT ?item ?article WHERE {
?item p:P1343 ?articleURI;
p:P1343 ?sourceURI.
?articleURI ps:P1343 ?article;
prov:wasDerivedFrom ?articleRef.
?articleRef pr:P3452 ?article.
?sourceURI ps:P1343 ?source;
pq:P805 ?article.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article"):::projected
v5("?articleRef")
v2("?articleURI")
v1("?item"):::projected
v6("?source")
v3("?sourceURI")
v1 --"p:P1343"--> v2
v1 --"p:P1343"--> v3
v2 --"p:statement/P1343"--> v4
v2 --"prov:wasDerivedFrom"--> v5
v5 --"p:reference/P3452"--> v4
v3 --"p:statement/P1343"--> v6
v3 --"p:qualifier/P805"--> v4