query-596cebd46536dae8091738137e86261d
Items without P31 or P279
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?item ?itemLabel {
?article schema:about ?item ; schema:inLanguage "ru" .
filter (substr(str(?article), 1, 16) = "https://ru.wikip")
minus { ?item wdt:P31 [] . }
minus { ?item wdt:P279 [] . }
minus { ?item wdt:P361 [] . }
optional {
?item rdfs:label ?itemLabel .
filter (lang(?itemLabel) = "ru")
}
} limit 200
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article")
v3("?item"):::projected
v1("?itemLabel"):::projected
a1((" "))
a2((" "))
a3((" "))
c1(["ru"]):::literal
f0[["substring(str(?article),'1^^xsd:integer','16^^xsd:integer') = 'https://ru.wikip'"]]
f0 --> v2
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> c1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P31"--> a1
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P279"--> a2
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P361"--> a3
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end