query-94dd5a6ae953cfdd088f37eea8bda08c

rq turtle/ttl

Searches super-classes (non-truthy instance of), checks for non-existence, must have enwiki linkBridges in USA w/o crosses.

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?s ?sLabel WHERE {
  ?s wdt:P17 wd:Q30 .
  ?s p:P31 ?stmt .
  ?stmt ps:P31/wdt:P279* wd:Q12280 .
  OPTIONAL {
    ?s p:P177 ?dummy # includes novalue statements
  }
  FILTER ( !bound(?dummy) ) .
  FILTER EXISTS {
    ?article schema:about ?s .
    ?article schema:inLanguage "en" .
    ?article schema:isPartOf <https://en.wikipedia.org/>
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr,es,it,pl,nl,pt,sv,no,ar,cs,ca,ml,ms,az,ru" }
 }
 ORDER BY ?sLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article") v4("?dummy") v3("?s"):::projected v1("?sLabel"):::projected v5("?stmt") a1((" ")) c11(["wd:Q12280"]):::iri c3(["en"]):::literal c7(["wd:Q30"]):::iri c5([https://en.wikipedia.org/]):::iri c14(["bd:serviceParam"]):::iri c16(["en,de,fr,es,it,pl,nl,pt,sv,no,ar,cs,ca,ml,ms,az,ru"]):::literal f0[[" "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:inLanguage"--> e0c3 e0v1 --"schema:isPartOf"--> e0c5 e0v1("?article"):::projected e0v2("?s"):::projected e0c5([https://en.wikipedia.org/]):::iri e0c3(["en"]):::literal end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> v3 f0 --> c2 f0 --> c3 f0 --> c4 f0 --> c5 v2 --"schema:about"--> v3 v2 --"schema:inLanguage"--> c3 v2 --"schema:isPartOf"--> c5 f1[["not bound(?dummy)"]] f1 --> v4 v3 --"p:direct/P17"--> c7 v3 --"p:P31"--> v5 v5 --"p:statement/P31"--> a1 a1 --"p:direct/P279"--> c11 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:P177".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end