I get some images from Wikidata, but I would like to get more information about the image.
By example, I get the image from Paris (Try it!):
SELECT ?itemLabel ?wdLabel ?ps_Label ?wdpqLabel ?pq_Label WHERE {
VALUES ?item { wd:Q90 }
?item p:P18 ?statement.
?statement ?ps ?ps_.
?wd wikibase:claim ?p;
wikibase:statementProperty ?ps.
OPTIONAL {
?statement ?pq ?pq_.
?wdpq wikibase:qualifier ?pq.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Giving me the following result:
But I would like to retrieve additional data, as we can see on Wikidata page:
And also data from the File summary:
Is any way to do that with SPARQL?
There are three aproaches:
Unfortunately, WDQS doesn't allow federation to WCQS, but the opposite is possible.