Thanks Pablo,

looks like I missed something... :)

Best,
Srecko


On Wed, Apr 17, 2013 at 1:16 AM, Pablo N. Mendes <[email protected]>wrote:

>
> It works for me. This is URL returns a 303 redirect.
>
> $curl -I http://dx.doi.org/10.1109/FOSE.2007.11
> HTTP/1.1 303 See Other
> Server: Apache-Coyote/1.1
> Vary: Accept
> Location:
> http://ieeexplore.ieee.org/lpdocs/epic03/wrapper.htm?arnumber=4221620
> Expires: Wed, 17 Apr 2013 18:08:26 GMT
> Content-Type: text/html;charset=utf-8
> Content-Length: 224
> Date: Wed, 17 Apr 2013 08:10:10 GMT
>
> So I initially thought that BoilerPipe was not resolving it. But it is. To
> make sure, you can always resolve it on your own, and then send the
> resolved URL. Like this:
>
> http://spotlight.dbpedia.org/rest/annotate/?url=http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=4221620
>
> This is the relevant piece of code:
>
> https://github.com/dbpedia-spotlight/dbpedia-spotlight/blob/master/rest/src/main/java/org/dbpedia/spotlight/web/rest/ServerUtils.java#L46
>
> Cheers,
> Pablo
>
>
>
> On Wed, Apr 17, 2013 at 12:30 AM, srecko joksimovic <
> [email protected]> wrote:
>
>> Hi Pablo,
>>
>> Annotating URLs working just fine, and thanks again for help. But there
>> is one "interesting" problem... If I want to annotate URL like this:
>> http://dx.doi.org/10.1109/FOSE.2007.11, and I have an access to this
>> article, I will god the error just like this page doesn't exists. On the
>> other hand, pages like this are very important for what I'm doing, since
>> most of the relevant concepts are there...
>> Is there anything I could do to annotate pages like this one?
>>
>> Thanks,
>> Srecko
>>
>>
>> On Thu, Apr 11, 2013 at 1:13 AM, srecko joksimovic <
>> [email protected]> wrote:
>>
>>> Thanks Pablo,
>>>
>>> actually that was the problem... :) now it works...
>>>
>>> Srecko
>>>
>>>
>>> On Thu, Apr 11, 2013 at 1:02 AM, Pablo N. Mendes 
>>> <[email protected]>wrote:
>>>
>>>> Hi Srecko,
>>>> I have no idea about your Java code, but to annotate a URL all you need
>>>> to do is to pass a "&url=" parameter in the HTTP request instead of a
>>>> "&text=" parameter.
>>>>
>>>> Like this:
>>>>
>>>> http://spotlight.dbpedia.org/rest/annotate?url=https://pypi.python.org/pypi?%3Aaction=list_classifiers
>>>>
>>>> Cheers,
>>>> Pablo
>>>>
>>>>
>>>> On Wed, Apr 10, 2013 at 9:13 PM, srecko joksimovic <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Currently I'm annotating messages using code like this:
>>>>> spotlightClient.DBPediaSpotLightGetRequest(CONFIDENCE, SUPPORT, TYPES,
>>>>> text); from Java application.
>>>>> Maybe I got confused, but how can I annotate URL instead of text?
>>>>>
>>>>> Thanks,
>>>>> Srecko
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>> analytics on semi-structured data. The platform includes APIs for
>>>>> building
>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>> our toolset for easy data analysis & visualization. Get a free account!
>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>> _______________________________________________
>>>>> Dbp-spotlight-users mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Pablo N. Mendes
>>>> http://pablomendes.com
>>>>
>>>
>>>
>>
>
>
> --
>
> Pablo N. Mendes
> http://pablomendes.com
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

Reply via email to