Kingsley Idehen <[email protected]> writes:
>Finn Aarup Nielsen wrote:
>>
>>
>>
>>
>> On Wed, 10 Feb 2010, Kingsley Idehen wrote:
>>
>>> Johannes Wehner wrote:
>>>> Hey again
>>>>
>>>> This is a follow-up on my post here:
>>>>
>>>>
>http://sourceforge.net/mailarchive/message.php?msg_name=fc.000f7d4b01ce7a37000f7d4b01ce779b.1ce7a3a%40fcis.information.dk
>
>>>>
>>>>
>>>> Another way to get the Danish person-data, would be dbpedia-live with
>>>> lang=da
>>>>
>>>> http://dbpedia-live.openlinksw.com/page/Anders_Fogh_Rasmussen?lang=da
>>>>
>>>> but there doesn't seem to be a json or xml version of the danish 
>>>> page, so
>>>> I'm back to screenscraping.
>>>>
>>>> Can you point me in the right direction?
>>>>
>>> You don't see the links for other representations in the page footer?
>>>
>>> Ditto when you use content negotiation to explicitly request a specific
>>> representation?
>>
>> I get an almost empty JSON from this link:
>>
>> http://dbpedia-live.openlinksw.com/data/Anders_Fogh_Rasmussen.json
>>
>> N3 seems to be ok:
>>
>> http://dbpedia-live.openlinksw.com/data/Anders_Fogh_Rasmussen.n3
>
>Fixed.

Cool.

I still can't get a Danish abstract, though. I tried both content
negotiation (I might have done it wrong though - see php-code below) and
?lang=da - still no Danish abstract.

...and there seems to be an issue here:
http://dbpedia-live.openlinksw.com/data/Anne_Linnet.json or is it ok with
the document.write calls?

<code>
    $opts = array(
       'http'=>array(
         'method'=>"GET",
         'header'=>"Accept-language: da\r\n",
       )
     );

     $context = stream_context_create($opts);
     
     $json = file_get_contents($json_url, false, $context);
</code>

Thanks for helping me out!!!! Really. Thanks.

Best,
/Johs.


>
>
>Kingsley
>>
>>
>> mvh
>> Finn
>>
>>
>> ___________________________________________________________________
>>
>>          Finn Aarup Nielsen, DTU Informatics, Denmark
>>  Lundbeck Foundation Center for Integrated Molecular Brain Imaging
>>    http://www.imm.dtu.dk/~fn/      http://nru.dk/staff/fnielsen/
>> ___________________________________________________________________
>>
>>
>>
>>
>>
>>
>>> Kingsley
>>>> MVH
>>>> /Johs. W.
>>>> -----
>>>> W: http://www.information.dk
>>>> @: [email protected]
>>> Kingsley Idehen
>>> President & CEO
>>> OpenLink Software
>>> Web: http://www.openlinksw.com
>>> Weblog: http://www.openlinksw.com/blog/~kidehen
>>> Twitter/Identi.ca: kidehen
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>------------------------------------------------------------------------------
>
>>>
>>> SOLARIS 10 is the OS for Data Centers - provides features such as 
>>> DTrace,
>>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>>> http://p.sf.net/sfu/solaris-dev2dev
>>> _______________________________________________
>>> Dbpedia-discussion mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>>
>>
>
>
>-- 
>
>Regards,
>
>Kingsley Idehen              
>President & CEO 
>OpenLink Software     
>Web: http://www.openlinksw.com
>Weblog: http://www.openlinksw.com/blog/~kidehen
>Twitter/Identi.ca: kidehen 
>
>
>
>
>



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to