query-bf56068544d0591bab44966f2a025a69
Canmore shipwrecks with uncertain identificationCanmore (Scottish Heritage register) was imported in Nov 2020, adding 4000odd shipwreck sites round Scotland. They should be merged into the actual ship entries (I might do the warships, not doing the commercial ones). I've done it for the Royal Navy ships, but am not sure how to proceed for the sites with uncertain provenance.
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?label ?description
WHERE
{
?item wdt:P31 wd:Q852190;
schema:description ?description;
rdfs:label ?label.
FILTER(LANG(?description) = "en").
FILTER(CONTAINS(?description, " imported from Canmore")).
FILTER(LANG(?label) = "en").
FILTER(CONTAINS(?label, "HMS")).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?description"):::projected
v3("?item"):::projected
v1("?label"):::projected
c5(["wd:Q852190"]):::iri
f0[["contains(?label,'HMS')"]]
f0 --> v1
f1[["?label = 'en'"]]
f1 --> v1
f2[["contains(?description,' imported from Canmore')"]]
f2 --> v2
f3[["?description = 'en'"]]
f3 --> v2
v3 --"wdt:P31"--> c5
v3 --"schema:description"--> v2
v3 --"rdfs:label"--> v1