query-6d324d7344e888b298c07fb620128d55

rq turtle/ttl

Island-class patrol boats

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?item_en ?instance_of_en ?manufacturer_en ?operator_en ?pennant_number ?country_of_registry_en ?country ?mmsi ?service_entry ?named_after_en
WHERE  {
  ?item wdt:P289 wd:Q6082954
  OPTIONAL { ?item wdt:P176 ?manufacturer. }
  OPTIONAL { ?item wdt:P137 ?operator. }
  OPTIONAL { ?item wdt:P617 ?yard_number. }
  OPTIONAL { ?item wdt:P31 ?instance_of. }
    FILTER(?instance_of != wd:Q559026).
  OPTIONAL { ?item wdt:P587 ?mmsi. }
  OPTIONAL { ?item wdt:P8047 ?country_of_registry. }  
  OPTIONAL { ?item wdt:P17 ?country. }  
  OPTIONAL { ?item wdt:P879 ?pennant_number. }
  OPTIONAL { ?item wdt:P138 ?named_after. }
  OPTIONAL { ?item wdt:P729 ?service_entry. }
  OPTIONAL { ?item wdt:P504 ?shipping_port. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
    ?item rdfs:label ?item_en .
    ?manufacturer rdfs:label ?manufacturer_en .
    ?operator rdfs:label ?operator_en .
    ?country_of_registry rdfs:label ?country_of_registry_en .
    ?named_after rdfs:label ?named_after_en .
    ?instance_of rdfs:label ?instance_of_en .
  }
}
ORDER BY ?pennant_number

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?country"):::projected v8("?country_of_registry") v16("?country_of_registry_en"):::projected v2("?instance_of") v18("?instance_of_en"):::projected v3("?item"):::projected v13("?item_en"):::projected v4("?manufacturer") v14("?manufacturer_en"):::projected v7("?mmsi"):::projected v10("?named_after") v17("?named_after_en"):::projected v5("?operator") v15("?operator_en"):::projected v1("?pennant_number"):::projected v11("?service_entry"):::projected v12("?shipping_port") v6("?yard_number") c3(["wd:Q6082954"]):::iri c18(["en"]):::literal c16(["bd:serviceParam"]):::iri f0[["?instance_of != 'wd:Q559026'"]] f0 --> v2 v3 --"wdt:P289"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P176".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P137".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P617".-> v6 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P31".-> v2 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P587".-> v7 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P8047".-> v8 end subgraph optional6["(optional)"] style optional6 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P17".-> v9 end subgraph optional7["(optional)"] style optional7 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P879".-> v1 end subgraph optional8["(optional)"] style optional8 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P138".-> v10 end subgraph optional9["(optional)"] style optional9 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P729".-> v11 end subgraph optional10["(optional)"] style optional10 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P504".-> v12 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c16 --"wikibase:language"--> c18 v3 --"rdfs:label"--> v13 v4 --"rdfs:label"--> v14 v5 --"rdfs:label"--> v15 v8 --"rdfs:label"--> v16 v10 --"rdfs:label"--> v17 v2 --"rdfs:label"--> v18 end