query-0a4a82b215cd65357f84d18db53f70b7
Synia: actor
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
PREFIX target: <http://www.wikidata.org/entity/Q294647>
SELECT
?description ?descriptionLabel
?value ?valueLabel ?valueUrl ?valueDescription
?wikidata ?wikidataUrl
WHERE {
{
BIND(1 AS ?order)
BIND(wd:Q82799 AS ?description)
BIND(target: AS ?value)
BIND("Wikidata ↗" AS ?wikidata)
BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(?value), 32)) AS ?wikidataUrl)
}
UNION
{
BIND(2 AS ?order)
BIND(wd:Q47223 AS ?description)
target: wdt:P569 ?birthday_time .
BIND(xsd:date(?birthday_time) AS ?value)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?order
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?birthday_time")
v6("?description"):::projected
v6("?order")
v7("?value"):::projected
v4("?wikidata"):::projected
v5("?wikidataUrl"):::projected
c4(["bd:serviceParam"]):::iri
c1(["wd:Q294647"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
bind0[/"'2^^xsd:integer'"/]
bind0 --as--o v6
bind1[/"'wd:Q47223'"/]
bind1 --as--o v6
c1 --"wdt:P569"--> v6
bind2[/"http://www.w3.org/2001/XMLSchema#date(?birthday_time)"/]
v6 --o bind2
bind2 --as--o v7
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind3[/"'1^^xsd:integer'"/]
bind3 --as--o v6
bind4[/"'wd:Q82799'"/]
bind4 --as--o v6
bind5[/"'wd:Q294647'"/]
bind5 --as--o v7
bind6[/"'Wikidata ↗'"/]
bind6 --as--o v4
bind7[/"concat('https://www.wikidata.org/wiki/',substring(str(?value),'32^^xsd:integer'))"/]
v7 --o bind7
bind7 --as--o v5
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end