query-934d43f22880ed88dc13ed68ba83e9ca
Group URLs in one cellHi all! I have a doubt. Given this query,
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel (URI(CONCAT("http://www.treccani.it/enciclopedia/",?ei,"_(Enciclopedia-Italiana)")) AS ?eiUrl)
WHERE {
?person wdt:P4223 ?ei .
?person wdt:P31 wd:Q5 .
{ ?person wdt:P27 wd:Q38 . } UNION { ?person wdt:P27 wd:Q172579 . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?ei"):::projected
v3("?eiUrl")
v1("?person"):::projected
c5(["wd:Q38"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["it,en"]):::literal
c3(["wd:Q5"]):::iri
c6(["wd:Q172579"]):::iri
v1 --"wdt:P4223"--> v2
v1 --"wdt:P31"--> c3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P27"--> c6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P27"--> c5
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind0[/"concat('http://www.treccani.it/enciclopedia/',?ei,'_(Enciclopedia-Italiana)')"/]
v2 --o bind0
bind0 --as--o v3