query-d3b03088fdb4b5d7505e3449d5a2694d

rq turtle/ttl

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

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
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v11("?comm") v4("?foto") v3("?incep"):::projected v2("?inst") v1("?item"):::projected v10("?navy") v6("?pennant"):::projected v9("?serv"):::projected v8("?short") v7("?subcla") v5("?vessel") c13([https://commons.wikimedia.org/]):::iri c15(["bd:serviceParam"]):::iri c10(["wd:Q588089"]):::iri c17(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P571".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P289".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P879".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P279".-> v7 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P1813".-> v8 end subgraph optional6["(optional)"] style optional6 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P729".-> v9 end v1 --"wdt:P137"--> c10 v1 --"wdt:P137"--> v10 subgraph optional7["(optional)"] style optional7 fill:#bbf,stroke-dasharray: 5 5; v11 -."schema:about".-> v1 v11 --"schema:isPartOf"--> c13 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c15 --"wikibase:language"--> c17 end