query-f36166ac7c6103e7ce6eac8e0883c777
by Csisc, 2019-06-27 SELECT DISTINCT ?item ?prop WHERE { ?item ?prop ?statement . FILTER(!(regex(str(?prop), "http://www.wikidata.org/prop/direct/" ) )) FILTER(regex(str(?prop), "http://www.wikidata.org/prop/" ) ) FILTER NOT EXISTS { ?item ?prop ?statement . ?statement prov:wasDerivedFrom ?derivedFrom .} } LIMIT 100
Use at
- https://query.wikidata.org/sparql
PREFIX prov: <http://www.w3.org/ns/prov#>
#by Csisc, 2019-06-27
SELECT DISTINCT ?item ?prop WHERE {
?item ?prop ?statement .
FILTER(!(regex(str(?prop), "http://www.wikidata.org/prop/direct/" ) ))
FILTER(regex(str(?prop), "http://www.wikidata.org/prop/" ) )
FILTER NOT EXISTS {
?item ?prop ?statement .
?statement prov:wasDerivedFrom ?derivedFrom .}
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?derivedFrom")
v1("?item"):::projected
v2("?prop"):::projected
v3("?statement")
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 -->e0v2--> e0v3
e0v3 --"prov:wasDerivedFrom"--> e0v4
e0v4("?derivedFrom"):::projected
e0v1("?item"):::projected
e0v2("?prop"):::projected
e0v3("?statement"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> c1
f0 --> v4
v1 -->v2--> v3
v3 --"prov:wasDerivedFrom"--> v4
f1[["regex(str(?prop),'http://www.wikidata.org/prop/')"]]
f1 --> v2
f2[["not regex(str(?prop),'http://www.wikidata.org/prop/direct/')"]]
f2 --> v2
v1 -->v2--> v3