query-08632ac02a73c3e44cbf79baaed11678
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX bio: <http://purl.org/vocab/bio/0.1/>
PREFIX blt: <http://www.bl.uk/schemas/bibliographic/blterms#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?itemLabel ?event ?author ?ID
WHERE
{
OPTIONAL
{
SERVICE <http://bnb.data.bl.uk/sparql>
{
?event a bio:Birth;
bio:date "1945"^^<http://www.w3.org/2001/XMLSchema#gYear>.
?author bio:event ?event;
foaf:name ?name. # ?name is not used
}
BIND(STRAFTER(STR(?author),"person/") AS ?ID1)
}
?item wdt:P5361 ?ID1.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?ID1")
v2("?author"):::projected
v1("?event"):::projected
v5("?item"):::projected
v3("?name")
c10(["bd:serviceParam"]):::iri
c12(["en"]):::literal
c5(["1945^^xsd:gYear"]):::literal
c3([http://purl.org/vocab/bio/0.1/Birth]):::iri
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph s1["http://bnb.data.bl.uk/sparql"]
style s1 stroke-width:4px;
v1 -."a".-> c3
v1 --http://purl.org/vocab/bio/0.1/date--> c5
v2 --http://purl.org/vocab/bio/0.1/event--> v1
v2 --http://xmlns.com/foaf/0.1/name--> v3
end
bind0[/"substring-after(str(?author),'person/')"/]
v2 --o bind0
bind0 --as--o v4
end
v5 --"wdt:P5361"--> v4
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c10 --"wikibase:language"--> c12
end