query-a46182e6cd91b4f33ca1e1826590d69e

rq turtle/ttl

Norske skip (registert eller opererer i Norge) SELECT ?item ?itemLabel ?start ?end ?manufacturer ?manufacturerLabel ?imo ?mmsi ?dnvgl WHERE { ?item (wdt:P31/(wdt:P279*)) wd:Q11446. { ?item wdt:P8047 wd:Q20. } UNION { ?item wdt:P17 wd:Q20. } OPTIONAL { ?item wdt:P729 ?start. } OPTIONAL { ?item wdt:P730 ?end. } OPTIONAL { ?item wdt:P176 ?manufacturer. } OPTIONAL { ?item wdt:P458 ?imo. } OPTIONAL { ?item wdt:P587 ?mmsi. } OPTIONAL { ?item wdt:P5006 ?dnvgl. } SERVICE wikibase:label { bd:serviceParam wikibase:language "nb". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Norske skip (registert eller opererer i Norge)
SELECT ?item ?itemLabel ?start ?end ?manufacturer ?manufacturerLabel ?imo ?mmsi ?dnvgl WHERE {
  ?item (wdt:P31/(wdt:P279*)) wd:Q11446.
  { ?item wdt:P8047 wd:Q20. }
  UNION
  { ?item wdt:P17 wd:Q20. }
  OPTIONAL { ?item wdt:P729 ?start. }
  OPTIONAL { ?item wdt:P730 ?end. }
  OPTIONAL { ?item wdt:P176 ?manufacturer. }
  OPTIONAL { ?item wdt:P458 ?imo. }
  OPTIONAL { ?item wdt:P587 ?mmsi. }
  OPTIONAL { ?item wdt:P5006 ?dnvgl. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "nb". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?dnvgl"):::projected v3("?end"):::projected v5("?imo"):::projected v1("?item"):::projected v4("?manufacturer"):::projected v6("?mmsi"):::projected v2("?start"):::projected a1((" ")) c5(["wd:Q20"]):::iri c14(["bd:serviceParam"]):::iri c16(["nb"]):::literal c3(["wd:Q11446"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P17"--> c5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P8047"--> c5 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P729".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P730".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P176".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P458".-> v5 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P587".-> v6 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P5006".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end