Hi Vanessa,

try http://lookup.dbpedia.org/query.aspx?q=film
(there's a webservice available too )

Or use the Uberblic Search API, which is more powerful and up-to-date:
http://platform.uberblic.org/api/search?query=film&fields=source_uri

Make sure to include the "&fields=source_uri" parameter (because
"source_uri" is an optional response field)

http://uberblic.rog is a service that consolidates data and IDs from several
data sources. 

An example of a more expressive query is
http://platform.uberblic.org/api/search?query=translation%20starring:[Bill%2
0Murray]&fields=source_uri


Cheers,
Georgi

--
Georgi Kobilarov
Uberblic Labs
http://uberblic.com


> -----Original Message-----
> From: Vanessa Lopez [mailto:[email protected]]
> Sent: Tuesday, December 07, 2010 6:00 PM
> To: Virtuoso Users; [email protected]
> Subject: [Dbpedia-discussion] bif:contains and Film
> 
> 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).
> 
> 
>
----------------------------------------------------------------------------
--
> 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


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