query-0457509aa699cae86e94eb7d270f38de
Property constraints
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?propertyLabel WHERE {
{
SELECT DISTINCT ?property WHERE {
?property wikibase:propertyType wikibase:WikibaseItem .
FILTER(NOT EXISTS {?property p:P2302 ?sstmt .
?sstmt ps:P2302 wd:Q21503250 .})
FILTER(NOT EXISTS {?property p:P2302 ?vstmt .
?vstmt ps:P2302 wd:Q21510865 .})
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?property"):::projected
v3("?sstmt")
v2("?vstmt")
c8(["bd:serviceParam"]):::iri
c4(["wd:Q21503250"]):::iri
c3(["wd:Q21510865"]):::iri
c10(["en"]):::literal
c6(["wikibase:WikibaseItem"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:P2302"--> e0v2
e0v2 --"p:statement/P2302"--> e0c3
e0v1("?property"):::projected
e0v2("?vstmt"):::projected
e0c3(["wd:Q21510865"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"p:P2302"--> v2
v2 --"p:statement/P2302"--> c3
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"p:P2302"--> e1v2
e1v2 --"p:statement/P2302"--> e1c3
e1v1("?property"):::projected
e1v2("?sstmt"):::projected
e1c3(["wd:Q21503250"]):::iri
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c1
f1 --> v3
f1 --> c2
f1 --> c4
v1 --"p:P2302"--> v3
v3 --"p:statement/P2302"--> c4
v1 --"wikibase:propertyType"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end