sparql wikidata question : how to get several labels?

25 views Asked by At

I want to get the xLabel and the nodeLabel at the same time...

SELECT ?x ?xLabel ?dn ?dd ?de ?df ?nodetext
WHERE {
?x p:P39 ?node.
?node ps:P39 wd:Q70495953.    #on sélectionne les éléments qui sont membres Academie francaise
OPTIONAL {?node pq:P580 ?de.}
OPTIONAL {?node pq:P582 ?df.}
OPTIONAL {?x wdt:P569 ?dn.}
OPTIONAL {?x wdt:P570 ?dd.}
SERVICE wikibase:label { 
 bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". 
 wd:Q70495953 rdfs:label ?nodetext .}
}

but with this query, I can get the node Label but not the item Label (the name of the Seat holder)...

https://w.wiki/7Kvn

0

There are 0 answers