query-5a29383b198f8564e34501b45aa775fa
Árbol geneálogico de los ancestros de Atahualpa Árbol geneálogico de los ancestros de Atahualpa Árbol geneálogico de los ancestros de Atahualpa Genealogische stam van de voorouders van Atahualpa
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
SELECT
?nodo
?nodoLabel
?enlaceCon
?enlaceConLabel
(?propiedadLabel AS ?edgeLabel)
{
wd:Q179577 (wdt:P22|wdt:P25)* ?nodo.
{?nodo p:P22 [ps:P22 ?enlaceCon; ?ps []].}
UNION
{?nodo p:P25 [ps:P25 ?enlaceCon; ?ps []].}
?property wikibase:statementProperty ?ps.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "es".
?nodo rdfs:label ?nodoLabel.
?enlaceCon rdfs:label ?enlaceConLabel.
?property rdfs:label ?propiedadLabel.
}
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/Peru
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/Peru/de
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/Peru/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/Peru/nl
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?edgeLabel")
v2("?enlaceCon"):::projected
v6("?enlaceConLabel"):::projected
v1("?nodo"):::projected
v5("?nodoLabel"):::projected
v4("?property")
v7("?propiedadLabel"):::projected
v3("?ps")
a2((" "))
a4((" "))
a1((" "))
a3((" "))
c12(["es"]):::literal
c10(["bd:serviceParam"]):::iri
c1(["wd:Q179577"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
c1 --"p:direct/P25"--> v1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
c1 --"p:direct/P22"--> v1
end
union0r <== or ==> union0l
end
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
a3 --"p:statement/P25"--> v2
a3 -->v3--> a4
v1 --"p:P25"--> a3
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
a1 --"p:statement/P22"--> v2
a1 -->v3--> a2
v1 --"p:P22"--> a1
end
union1r <== or ==> union1l
end
v4 --"wikibase:statementProperty"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
v1 --"rdfs:label"--> v5
v2 --"rdfs:label"--> v6
v4 --"rdfs:label"--> v7
end
bind0[/"?propiedadLabel"/]
v7 --o bind0
bind0 --as--o v8