query-ca55eb0a4942a6c31135f452fc6876b0
Personajes del Universo de la Fundación de Isaac Asimov con etiquetas
y descripciones en inglés y en español (opcional)
Characters from the Foundation Universe by Isaac Asimov with labels
and descriptions in English and in Spanish (opcional)
SELECT ?item ?itemLabelEn ?itemDescEn ?itemLabelEs ?itemDescEs WHERE { ?item wdt:P31 wd:Q3658341 . ?item wdt:P1080 wd:Q3551232 .
?item rdfs:label ?itemLabelEn filter (lang(?itemLabelEn) = "en"). ?item schema:description ?itemDescEn filter(lang(?itemDescEn) = "en").
OPTIONAL { ?item rdfs:label ?itemLabelEs filter (lang(?itemLabelEs) = "es"). } OPTIONAL { ?item schema:description ?itemDescEs filter (lang(?itemDescEs) = "es"). } }
Use at
- https://query.wikidata.org/sparql
 
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Personajes del Universo de la Fundación de Isaac Asimov con etiquetas
# y descripciones en inglés y en español (opcional)
# Characters from the Foundation Universe by Isaac Asimov with labels
# and descriptions in English and in Spanish (opcional)
SELECT ?item ?itemLabelEn ?itemDescEn ?itemLabelEs ?itemDescEs WHERE {
  ?item wdt:P31 wd:Q3658341 .
  ?item wdt:P1080 wd:Q3551232 .
  ?item rdfs:label ?itemLabelEn filter (lang(?itemLabelEn) = "en").
  ?item schema:description ?itemDescEn filter(lang(?itemDescEn) = "en").
  OPTIONAL {
    ?item rdfs:label ?itemLabelEs filter (lang(?itemLabelEs) = "es").
  }
  OPTIONAL {
    ?item schema:description ?itemDescEs filter (lang(?itemDescEs) = "es").
  }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v5("?item"):::projected 
  v2("?itemDescEn"):::projected 
  v1("?itemDescEs"):::projected 
  v3("?itemLabelEn"):::projected 
  v4("?itemLabelEs"):::projected 
  c4(["wd:Q3658341"]):::iri 
  c6(["wd:Q3551232"]):::iri 
  f0[["?itemDescEn = 'en'"]]
  f0 --> v2
  f1[["?itemLabelEn = 'en'"]]
  f1 --> v3
  v5 --"wdt:P31"-->  c4
  v5 --"wdt:P1080"-->  c6
  v5 --"rdfs:label"-->  v3
  v5 --"schema:description"-->  v2
  subgraph optional0["(optional)"]
  style optional0 fill:#bbf,stroke-dasharray: 5 5;
    v5 -."rdfs:label".->  v4
  end
  subgraph optional1["(optional)"]
  style optional1 fill:#bbf,stroke-dasharray: 5 5;
    v5 -."schema:description".->  v1
  end