query-39f7b0fb02f27856004eaeba85f54e11

rq turtle/ttl

Querying multiple SPARQL endpoints for enhanced results (*for items both in Wikidata and Wikipedia), and DBpedia abstracts.Wikimedia Commons to produce a known-person search using a VIAF identifier in conjunction with an English rdfs:label to produce a result that merges a Wikidata item with additional information such as optional hyperlinks to an image in DBpedia endpoint and the Wikidata Query ServiceThis query uses the

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX dbo: <http://dbpedia.org/ontology/>

SELECT DISTINCT ?item ?itemLabel ?itemDescription ?abstract (SAMPLE(?image) AS ?imageLink)

WHERE 
{
 SERVICE <https://query.wikidata.org/sparql>
  {
   ?item wdt:P214 "85312226".
   OPTIONAL { ?item wdt:P18 ?image. }
  }
 SERVICE <http://dbpedia.org/sparql>
  {
   ?name rdfs:label "Tim Berners-Lee"@en ;
         dbo:abstract ?abstract.
   FILTER (LANG(?abstract) = "en" )
  }
 SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}GROUP BY ?item ?imageLink ?itemLabel ?itemDescription ?abstract

Query found at