query-4a15c4a5179414fafd3448be10c70d19
Federated Query it is working fine. Could some one help me? >http://bnb.data.bl.uk/id/person/BeauvoirSimonede1908-1986< directly with the iri ?bnbidformattedHi there, I'm trying to create a federated query which get all book titles written by Simone de Beauvoir from the British National Bibliography. Unfortunately it is not working and I do not know why. If I replace Here is the query:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT ?title ?bnbid ?formatterurl ?bnbidformatted
WHERE
{
wd:Q7197 wdt:P5361 ?bnbid .
wd:P5361 wdt:P1630 ?formatterurl .
BIND(IRI(REPLACE(?bnbid, '^(.+)$', ?formatterurl)) AS ?bnbidformatted) .
SERVICE <http://bnb.data.bl.uk/sparql> {
?book dct:creator ?bnbidformatted;
dct:title ?title;
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?bnbid"):::projected
v3("?bnbidformatted"):::projected
v4("?book")
v2("?formatterurl"):::projected
v5("?title"):::projected
c1(["wd:Q7197"]):::iri
c3(["wd:P5361"]):::iri
c1 --"wdt:P5361"--> v1
c3 --"wdt:P1630"--> v2
bind0[/"replace(?bnbid,'^(.+)$',?formatterurl)"/]
v1 --o bind0
v2 --o bind0
bind0 --as--o v3
subgraph s1["http://bnb.data.bl.uk/sparql"]
style s1 stroke-width:4px;
v4 --"dct:creator"--> v3
v4 --"dct:title"--> v5
end