On Mon, Jun 21, 2010 at 2:53 PM, Paul Houle <[email protected]> wrote:
> Benjamin Good wrote:
>> Cassio,
>>
>>  The short answer to your question (as I understood it) is that you could 
>> not issue such a query to the dbpedia sparql endpoint by itself.  Somehow 
>> you would need to get access to an endpoint that contains both the freebase 
>> data as RDF and the mappings that Paul discusses here in order to run your 
>> query.
>>
>>  Please correct me if I am wrong!
>>
>> -Ben
>>
>    Ok,  actually it is a bit more complex thant this.  Both my and the
> mapping files contain fbase URIs like
>
> http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000ac9819
>
>    If you go to ~that~ URL you get redirected to
>
> http://www.freebase.com/view/en/uab_hospital
>
>    Now,  if you follow a few links you'll eventually find
>
> http://rdf.freebase.com/rdf/en.uab_hospital
>
>    which contains the facts that you probably want about this subject
> in NT format.

A more direct way to do this is just ask for RDF instead of HTML with
your first request:

curl -L -H 'Accept: application/rdf+xml'
http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000ac9819

which will redirect you to
http://rdf.freebase.com/rdf/guid.9202a8c04000641f8000000000ac9819

Beware though that there's currently a bug in Freebase which truncates
the results to the first 100 triples.  For the vast majority of the
topics this isn't an issue, but if you receive exactly 100 triples,
you should probably assume that you don't have them all.

Tom

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to