Hi Cassio,

You could try the following query, but it won't 
work because DBpedia and Freebase don't use the same URIs for Freebase. 
The document you get by resolving 
http://dbpedia.org/resource/E.T._the_Extra-Terrestrial links to 
http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000085a85 but the 
freebase graph on lod.openlinksw.com/sparql contains 
information about http://freebase.com/guid/9202a8c04000641f8000000000085a85 .

In addition, the Freebase mapping is not included in either of the graphs for 
DBpedia or Freebase, so just putting 
http://dbpedia.org/resource/E.T._the_Extra-Terrestrial into the SPARQL query 
below without the freebase part, won't return any links to either 
http://freebase.com/guid/9202a8c04000641f8000000000085a85 or 
http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000085a85

The mapping may be in another graph, but currently you can't get the 
mapping between dbpedia and freebase with the query below, that should 
ideally work if both of these issues are fixed.

PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX fb-film: <http://rdf.freebase.com/ns/film.film.>
SELECT ?uriFB WHERE { 
GRAPH <http://dbpedia.org>
{
<http://dbpedia.org/resource/E.T._the_Extra-Terrestrial> owl:sameAs ?uriFB .
}
GRAPH <http://freebase.com> 
{
?uriFB fb-film:tagline ?tagL
}
}
LIMIT 100

 
Cheers,

Peter



>
>From: cassio steel <[email protected]>
>To: [email protected]
>Sent: Mon, 21 June, 2010 5:48:56 AM
>Subject: [Virtuoso-devel] Is freebase included in Virtuoso SPARQL endpoint?
>
> > >
>Hello everyone
>>how you know you can write a query on LOD using the openLink Virtuoso SPARQL 
>>end-point ( http://lod.openlinksw.com/sparql ).
>>My question is: Does this end-point support freebase? 
>>I tried to run this query:
>> 
>>PREFIX owl: <http://www.w3.org/2002/07/owl#> 
>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>PREFIX fb-film: <http://rdf.freebase.com/ns/film.film.> 
>>SELECT ?uriFB WHERE {  
><http://dbpedia.org/resource/E.T._the_Extra-Terrestrial> owl:sameAs ?uriFB . 
>?uriFB fb-film:tagline ?tagL
>FILTER regex(str(?uriFB),"freebase")
>}
>>LIMIT 100
>> 
>>but I have an empty result set, just like running any query which involves 
>>freebase. Is there any way to interrogate freebase from an end-point?
>>Thank you for your answers.
>
>________________________________
nome.cognome @... Verifica la disponibilità sui NUOVI domini


      

Reply via email to