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
------------------------------------------------------------------------------
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