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

--
The Open University is incorporated by Royal Charter (RC 000391), an exempt charity 
in England & Wales and a charity registered in Scotland (SC 038302).


Reply via email to