query-d3b03088fdb4b5d7505e3449d5a2694d
Marinha analisar tudo
SELECT ?item ?itemLabel ?instLabel ?subclaLabel ?vesselLabel ?serv ?incep ?pennant
WHERE
{
?item wdt:P31 ?inst . # instance classe navio e subclasses
OPTIONAL { ?item wdt:P571 ?incep . } #numero vessel class
OPTIONAL { ?item wdt:P18 ?foto . } #numero vessel class
OPTIONAL { ?item wdt:P289 ?vessel . } #numero vessel class
OPTIONAL { ?item wdt:P879 ?pennant . } #numero amura
OPTIONAL { ?item wdt:P279 ?subcla . } #numero subcal
OPTIONAL { ?item wdt:P1813 ?short . } # short
OPTIONAL { ?item wdt:P729 ?serv . } # operator portuguese navy
?item wdt:P137 wd:Q588089 . # operator portuguese navy
FILTER NOT EXISTS { ?item wdt:P18 ?foto . } # operator portuguese navy
?item wdt:P137 ?navy . # Must be of a ca
optional {?comm schema:about ?item ; schema:isPartOf <https://commons.wikimedia.org/> .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Marinha analisar tudo
SELECT ?item ?itemLabel ?instLabel ?subclaLabel ?vesselLabel ?serv ?incep ?pennant
WHERE
{
?item wdt:P31 ?inst . # instance classe navio e subclasses
OPTIONAL { ?item wdt:P571 ?incep . } #numero vessel class
OPTIONAL { ?item wdt:P18 ?foto . } #numero vessel class
OPTIONAL { ?item wdt:P289 ?vessel . } #numero vessel class
OPTIONAL { ?item wdt:P879 ?pennant . } #numero amura
OPTIONAL { ?item wdt:P279 ?subcla . } #numero subcal
OPTIONAL { ?item wdt:P1813 ?short . } # short
OPTIONAL { ?item wdt:P729 ?serv . } # operator portuguese navy
?item wdt:P137 wd:Q588089 . # operator portuguese navy
# FILTER NOT EXISTS { ?item wdt:P18 ?foto . } # operator portuguese navy
?item wdt:P137 ?navy . # Must be of a ca
optional {?comm schema:about ?item ; schema:isPartOf <https://commons.wikimedia.org/> .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}