Hi Kingsley, the thing is that I actually have no problems with my local version of Virtuoso, the query

SELECT DISTINCT ?s ?o FROM <http://dbpedia.org> WHERE {{?s rdfs:label
?o.[] a ?s .FILTER( bif:contains(?o, "film" ) )}}LIMIT 36

returns to me Film ( http://dbpedia.org/ontology/Film ) in the first position ...
E.g.:
 http://dbpedia.org/ontology/Film film
  http://dbpedia.org/ontology/FilmFestival film festival
http://dbpedia.org/class/yago/300s 300
  http://dbpedia.org/class/yago/1996Films film
  http://dbpedia.org/class/yago/DramaFilms film
  http://dbpedia.org/class/yago/SpanishFilms film
  http://dbpedia.org/class/yago/Catalan-languageFilms film
  http://dbpedia.org/class/yago/1979Films film

Using the latest version of DBpedia ... Thus, I can not figure it out why is different with the SPARQL end point ..

Thanks anyway!
Vanessa

On 7 Dec 2010, at 17:53, Kingsley Idehen wrote:

On 12/7/10 11:59 AM, Vanessa Lopez wrote:

Hi all !

I have tried to get the resource http://dbpedia.org/resource/Film
when asking for "film" in the indexes in http://dbpedia.org/sparql, in
several ways:


SELECT DISTINCT ?s ?o FROM <http://dbpedia.org> WHERE {{?s rdfs:label
  ?o.[] a ?s .FILTER( bif:contains(?o, "film" ) )}}LIMIT 36

SELECT DISTINCT ?s ?o ?type FROM <http://dbpedia.org> WHERE {{?s
rdfs:label
?o. ?s rdf:type ?type .FILTER( bif:contains(?o, "film" ) )}}LIMIT 36

And even:

SELECT ?s ?page ?label
   ?textScore AS ?Text_Score_Rank
   ( <LONG::IRI_RANK> (?s) ) AS ?Entity_Rank
WHERE
   {
     ?s foaf:page ?page ;
      rdfs:label ?label .
     FILTER( lang( ?label ) = "en" ) .
     ?label bif:contains 'film'
     OPTION (score ?textScore ) .
   }
ORDER BY ASC ( <LONG::IRI_RANK> (?s) )


But with no success so far.

I also tried:
SELECT DISTINCT ?s ?o ?type FROM <http://dbpedia.org> WHERE {{?s
rdfs:label
  ?o. ?s rdf:type ?type .FILTER( str(?o) = "Film" ) }}

But it gives an out of time error ..

Any idea how can I get http://dbpedia.org/resource/Film from the
keyword "film"?

Thanks a lot
Vanessa

Vanessa,

These pages should help you understand why you are having troubles:

1. http://dbpedia.org/describe/?url=http%3A%2F%2Fdbpedia.org%2Fresource%2FFilm -- Descriptor Page for <http://dbpedia.org/resource/Film> 3. http://dbpedia.org/fct/facet.vsp?cmd=load&fsq_id=6 -- DBpedia DB Entities associated with pattern: Film.

--

Regards,

Kingsley Idehen 
President & CEO
OpenLink Software
Web: http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca: kidehen




<ATT00001..txt><ATT00002..txt>


--
The Open University is incorporated by Royal Charter (RC 000391), an exempt charity 
in England & Wales and a charity registered in Scotland (SC 038302).
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to