query-9dfdf6d1d9ec55267cdf5984bd0eb8a2

rq turtle/ttl

Obter aliases

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?label ?alias WHERE {
  {?item wdt:P131/wdt:P279? wd:Q36433 .} 
  {?item wdt:P1702 ?omim }

  ?item rdfs:label ?label . FILTER(lang(?label) = 'pt' )

  OPTIONAL {
     ?item skos:altLabel ?alias . FILTER(lang(?alias) = 'pt' )
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?alias"):::projected v3("?item"):::projected v1("?label"):::projected v4("?omim") a1((" ")) c3(["wd:Q36433"]):::iri f0[["?label = 'pt'"]] f0 --> v1 v3 --"wdt:P131"--> a1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P279"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; end union0r <== or ==> union0l end v3 --"wdt:P1702"--> v4 v3 --"rdfs:label"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."skos:altLabel".-> v2 end