query-feb15fbe055ed7047509a97ad68f819b

rq turtle/ttl

Royal Navy ships with no launch date

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 ?item ?itemLabel ?article WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en-gb,en,mul". }
  {
    SELECT DISTINCT ?item ?article WHERE {
      ?item p:P137 ?statement0.
      ?statement0 (ps:P137/(wdt:P279*)) wd:Q172771.
      MINUS {
        ?item p:P793 ?statement1.
        ?statement1 (ps:P793/(wdt:P279*)) wd:Q596643.
      }
      ?item p:P31 ?statement2.
      ?statement2 (ps:P31/(wdt:P279*)) wd:Q11446.
      ?article schema:about ?item .
      ?article schema:isPartOf <https://en.wikipedia.org/>.
    }
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?article"):::projected v1("?item"):::projected v2("?statement0") v3("?statement1") v4("?statement2") a1((" ")) a2((" ")) a3((" ")) c4(["en-gb,en,mul"]):::literal c11(["wd:Q596643"]):::iri c17([https://en.wikipedia.org/]):::iri c2(["bd:serviceParam"]):::iri c14(["wd:Q11446"]):::iri c8(["wd:Q172771"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"p:P137"--> v2 v2 --"p:statement/P137"--> a1 a1 --"p:direct/P279"--> c8 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"p:P793"--> v3 v3 --"p:statement/P793"--> a2 a2 --"p:direct/P279"--> c11 end v1 --"p:P31"--> v4 v4 --"p:statement/P31"--> a3 a3 --"p:direct/P279"--> c14 v5 --"schema:about"--> v1 v5 --"schema:isPartOf"--> c17