Here is a simple example of using a Federated SPARQL Query (aka. SPARQL-FED) to generate a rich index of information sources from the LOD Cloud Knowledge Graph about a recent participant in the Australian Open Event.
By joining Wikidata and DBpedia data a richer Knowledge Graph is generated and deployed as an HTML document.
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT DISTINCT
?person
?dbpediaURI
# ?dateOfBirth
# ?countryName
?subject
?subjectLabel
WHERE
{
SERVICE <https://query.wikidata.org/sparql>
{
SELECT *
WHERE
{
?person wdt:P106 wd:Q10833314 ;
rdfs:label 'Nick Kyrgios'@en ;
wdt:P569 ?dateOfBirth ;
wdt:P27 [ rdfs:label ?countryName ] .
filter(lang(?countryName) = "en")
}
}
SERVICE <http://dbpedia.org/sparql>
{
SELECT *
WHERE
{
?dbpediaURI owl:sameAs ?person;
dct:subject ?subject.
?subject rdfs:label ?subjectLabel
}
}
}
- Live Query Result Link
Related Links :