query-2ae198826e98bb2dd8d84a29e1643380
Royal Navy ship classes after 1707 without country of origin
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
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 ?P729_1 WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en-gb,en,mul". }
{
SELECT DISTINCT ?item ?P729_1 WHERE {
?item p:P137 ?statement0.
?statement0 (ps:P137/(wdt:P279*)) wd:Q172771.
?item p:P729 ?statement_1.
?statement_1 psv:P729 ?statementValue_1.
?statementValue_1 wikibase:timePrecision ?precision_1.
FILTER(?precision_1 >= 9 )
?statementValue_1 wikibase:timeValue ?P729_1.
FILTER(?P729_1 >= "+1707-00-00T00:00:00Z"^^xsd:dateTime)
?item p:P31 ?statement2.
?statement2 (ps:P31/(wdt:P279*)) wd:Q19832479.
MINUS {
?item p:P137 ?statement3.
?statement3 (ps:P137/(wdt:P279*)) wd:Q11220.
}
MINUS {
?item p:P495 ?statement4.
?statement4 (ps:P495/(wdt:P279*)) _:anyValueP495.
}
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?P729_1"):::projected
v3("?item"):::projected
v2("?precision_1")
v4("?statement0")
v7("?statement2")
v8("?statement3")
v9("?statement4")
v6("?statementValue_1")
v5("?statement_1")
a5((" "))
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c4(["en-gb,en,mul"]):::literal
c17(["wd:Q19832479"]):::iri
c2(["bd:serviceParam"]):::iri
c18(["wd:Q11220"]):::iri
c10(["wd:Q172771"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
f0[["?P729_1 >= '+1707-00-00T00:00:00Z^^xsd:dateTime'"]]
f0 --> v1
f1[["?precision_1 >= '9^^xsd:integer'"]]
f1 --> v2
v3 --"p:P137"--> v4
v4 --"p:statement/P137"--> a1
a1 --"p:direct/P279"--> c10
v3 --"p:P729"--> v5
v5 --"p:statement/value/P729"--> v6
v6 --"wikibase:timePrecision"--> v2
v6 --"wikibase:timeValue"--> v1
v3 --"p:P31"--> v7
v7 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c17
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:P137"--> v8
v8 --"p:statement/P137"--> a3
a3 --"p:direct/P279"--> c18
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:P495"--> v9
v9 --"p:statement/P495"--> a4
a4 --"p:direct/P279"--> a5
end