Kq-hit
Joined 15 February 2015
Babel user information | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
Users by language |
SPARQL queries edit
Vessels edit
Items with an IMO number and their labels in Chinese and English
SELECT ?item ?imo ?itemLabelZH ?itemLabelEN where {
?item wdt:P458 ?imo.
?item rdfs:label ?itemLabelZH.
FILTER(LANG(?itemLabelZH) = 'zh').
OPTIONAL {
?item rdfs:label ?itemLabelEN.
FILTER(LANG(?itemLabelEN) = 'en')
}
}
Ports edit
Related:
Items of type port
SELECT ?wpi ?port ?portLabel ?countryLabel (GROUP_CONCAT(DISTINCT ?unlocode;separator=", ") AS ?unlocodes) ?mt (GROUP_CONCAT(DISTINCT ?website;separator=", ") AS ?websites) (GROUP_CONCAT(DISTINCT ?typeLabel;separator=", ") AS ?types) ?coordinates
WHERE {
?port wdt:P31 wd:Q44782 .
OPTIONAL { ?port wdt:P17 ?country } .
OPTIONAL { ?port wdt:P7625 ?wpi } .
#?port rdf:type wdno:P7625 .
OPTIONAL { ?port wdt:P1937 ?unlocode } .
OPTIONAL { ?port wdt:P856 ?website } .
OPTIONAL { ?port wdt:P625 ?coordinates } .
OPTIONAL { ?port wdt:P1624 ?mt } .
FILTER NOT EXISTS {
?port p:P31 ?instance_of_statement .
?instance_of_statement ps:P31 wd:Q44782 .
?instance_of_statement ?qualifier ?value .
?prop wikibase:qualifier ?qualifier
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr".
?port rdfs:label ?portLabel .
?type rdfs:label ?typeLabel .
?country rdfs:label ?countryLabel .
}
}
GROUP BY ?wpi ?port ?portLabel ?countryLabel ?coordinates ?mt
ORDER BY ASC(?countryLabel) ASC(?portLabel)
World Port Index edit
Items with a World Port Index Number
SELECT ?wpi ?port ?portLabel (GROUP_CONCAT(DISTINCT ?unlocode;separator=", ") AS ?unlocodes) ?mt (GROUP_CONCAT(DISTINCT ?website;separator=", ") AS ?websites) (GROUP_CONCAT(DISTINCT ?typeLabel;separator=", ") AS ?types) ?coordinates
WHERE {
?port wdt:P7625 ?wpi
OPTIONAL { ?port wdt:P31 ?type } .
OPTIONAL { ?port wdt:P7625 ?wpi } .
OPTIONAL { ?port wdt:P1937 ?unlocode } .
OPTIONAL { ?port wdt:P856 ?website } .
OPTIONAL { ?port wdt:P625 ?coordinates } .
OPTIONAL { ?port wdt:P1624 ?mt } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr".
?port rdfs:label ?portLabel .
?type rdfs:label ?typeLabel}
}
GROUP BY ?wpi ?port ?portLabel ?coordinates ?mt
ORDER BY ASC(xsd:integer(?wpi))
Port of Shenzhen map edit
Map of the locations for the port of Shenzhen
#defaultView:Map
SELECT ?part ?partLabel ?coords
WHERE {
{
wd:Q1116518 wdt:P527 ?part.
?part wdt:P625 ?coords
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Ports in Saudi Arabia edit
SELECT ?item ?label ?_coords ?_unlocode ?_wpi ?_mt ?_operator ?_water WHERE {
?item wdt:P31 wd:Q44782.
?item wdt:P17 wd:Q851
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
?item rdfs:label ?label .
?_operatorId rdfs:label ?_operator .
?_waterId rdfs:label ?_water .
}
OPTIONAL { ?item wdt:P625 ?_coords. }
OPTIONAL { ?item wdt:P1937 ?_unlocode. }
OPTIONAL { ?item wdt:P7625 ?_wpi. }
OPTIONAL { ?item wdt:P1624 ?_mt. }
OPTIONAL { ?item wdt:P137 ?_operatorId. }
OPTIONAL { ?item wdt:P206 ?_waterId. }
}