query-05f287d2f2d9ed915023c06eab23fd83

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?ws ?wsLabel ?wsDescription ?statementcount
WHERE {
?article schema:about ?ws;
    schema:isPartOf <https://en.wikisource.org/>.
?ws wikibase:statements ?statementcount
MINUS {?ws wdt:P31 [] } # No "instance of" property
MINUS {?ws wdt:P279 [] } # No "subclass of" property
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
} ORDER BY DESC(?statementcount)
LIMIT 200

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article") v1("?statementcount"):::projected v3("?ws"):::projected a1((" ")) a2((" ")) c8(["bd:serviceParam"]):::iri c3([https://en.wikisource.org/]):::iri c10(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c3 v3 --"wikibase:statements"--> v1 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P31"--> a1 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P279"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end