Yup,
I also did it locally (from inside the server) to test this
once I close the server I get this
curl "
http://localhost:2222/rest/annotate?text=President%20Obama.&confidence=0.2&support=20"
-ILH "Accept:application/json"
curl: (7) couldn't connect to host
So it has to do something with spotlight
>From outside I have an apache proxy from localhost:2222/rest to
nl.dbpedia.org/spotlght/rest
but it was working before so this should be fine
On Thu, Mar 14, 2013 at 11:14 AM, Joachim Daiber
<[email protected]>wrote:
> Are you sure you connect to the right URL? Once the log looks like this,
> it should work. You changed "var server = " in index.html of my demo?
>
> Best,
> Jo
>
>
> On Thu, Mar 14, 2013 at 9:38 AM, Dimitris Kontokostas
> <[email protected]>wrote:
>
>> Hi again,
>> You were right, I did only mvn clean and thought mvn package would do
>> install behind the scenes :)
>>
>> I managed to run the server but it doesn't work.
>> I used your demo (https://github.com/jodaiber/demo) but I get 404 not
>> found in all requests
>> (even from localhost)
>>
>> $ curl "
>> http://localhost:2222/rest/annotate?text=President%20Obama.&confidence=0.2&support=20"
>> -ILH "Accept:application/json"
>> HTTP/1.1 404 Not Found
>> server: grizzly/1.9.48
>> Content-Type: text/plain; charset=iso-8859-1
>> Transfer-Encoding: chunked
>> Date: Thu, 14 Mar 2013 10:30:31 GMT
>>
>> This is the server log, but didn't throw any exception
>>
>> Mar 14, 2013 11:24:34 AM org.dbpedia.spotlight.db.memory.MemoryStore$ load
>> INFO: Loading MemorySurfaceFormStore...
>> Mar 14, 2013 11:24:35 AM
>> org.dbpedia.spotlight.db.memory.MemorySurfaceFormStore createReverseLookup
>> INFO: Summing total SF counts.
>> Mar 14, 2013 11:24:36 AM
>> org.dbpedia.spotlight.db.memory.MemorySurfaceFormStore createReverseLookup
>> INFO: Creating reverse-lookup for surface forms, adding normalized
>> surface forms.
>> Mar 14, 2013 11:24:52 AM org.dbpedia.spotlight.db.memory.MemoryStore$ load
>> INFO: Done (18155 ms)
>> Mar 14, 2013 11:24:52 AM org.dbpedia.spotlight.db.memory.MemoryStore$ load
>> INFO: Loading MemoryResourceStore...
>> Mar 14, 2013 11:24:53 AM
>> org.dbpedia.spotlight.db.memory.MemoryResourceStore createReverseLookup
>> INFO: Creating reverse-lookup for DBpedia resources.
>> Mar 14, 2013 11:24:54 AM
>> org.dbpedia.spotlight.db.memory.MemoryResourceStore loaded
>> INFO: Counting total support...
>> Mar 14, 2013 11:24:54 AM
>> org.dbpedia.spotlight.db.memory.MemoryResourceStore loaded
>> INFO: Done.
>> Mar 14, 2013 11:24:54 AM org.dbpedia.spotlight.db.memory.MemoryStore$ load
>> INFO: Done (2397 ms)
>> Mar 14, 2013 11:24:54 AM org.dbpedia.spotlight.db.memory.MemoryStore$ load
>> INFO: Loading MemoryCandidateMapStore...
>> Mar 14, 2013 11:24:56 AM org.dbpedia.spotlight.db.memory.MemoryStore$ load
>> INFO: Done (1642 ms)
>> Mar 14, 2013 11:24:56 AM org.dbpedia.spotlight.db.memory.MemoryStore$ load
>> INFO: Loading MemoryContextStore...
>> Mar 14, 2013 11:25:00 AM org.dbpedia.spotlight.db.memory.MemoryStore$ load
>> INFO: Done (3686 ms)
>> Mar 14, 2013 11:25:16 AM org.dbpedia.spotlight.web.rest.Server main
>> INFO: Initiated 1 disambiguators.
>> Mar 14, 2013 11:25:16 AM org.dbpedia.spotlight.web.rest.Server main
>> INFO: Initiated 2 spotters.
>> Mar 14, 2013 11:25:16 AM com.sun.grizzly.Controller logVersion
>> INFO: GRIZZLY0001: Starting Grizzly Framework 1.9.48 - 3/14/13 11:25 AM
>> Server started in /opt/dbpedia-spotlight listening on
>> http://localhost:2222/
>> Could not open browser. java.awt.HeadlessException:
>> No X11 DISPLAY variable was set, but this program performed an operation
>> which requires it.
>> Mar 14, 2013 11:28:32 AM com.sun.grizzly.http.servlet.ServletContextImpl
>> log
>> INFO: null: init
>> Mar 14, 2013 11:28:32 AM com.sun.jersey.api.core.PackagesResourceConfig
>> init
>>
>> INFO: Scanning for root resource and provider classes in the packages:
>> org.dbpedia.spotlight.web.rest.resources
>> Mar 14, 2013 11:28:41 AM com.sun.jersey.api.core.ScanningResourceConfig
>> logClasses
>>
>> INFO: Root resource classes found:
>> class org.dbpedia.spotlight.web.rest.resources.Feedback
>> class org.dbpedia.spotlight.web.rest.resources.Annotate
>> class org.dbpedia.spotlight.web.rest.resources.Candidates
>> class org.dbpedia.spotlight.web.rest.resources.Disambiguate
>> class org.dbpedia.spotlight.web.rest.resources.Spot
>> Mar 14, 2013 11:28:41 AM com.sun.jersey.api.core.ScanningResourceConfig
>> init
>>
>> INFO: No provider classes found.
>> Mar 14, 2013 11:28:41 AM
>> com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
>>
>> INFO: Initiating Jersey application, version 'Jersey: 1.10 11/02/2011
>> 04:41 PM'
>> Mar 14, 2013 11:28:43 AM
>> com.sun.jersey.api.wadl.config.WadlGeneratorLoader loadWadlGenerator
>> INFO: Loading wadlGenerator
>> org.dbpedia.spotlight.web.rest.wadl.ExternalUriWadlGenerator
>>
>> Any ideas?
>>
>> Dimiris
>>
>>
>>
>> On Thu, Mar 14, 2013 at 12:00 AM, Joachim Daiber <
>> [email protected]> wrote:
>>
>>> Ah, sorry, I missed that. That's weird, try calling "mvn clean install"
>>> in the main folder first.
>>>
>>>
>>> On Wed, Mar 13, 2013 at 10:36 PM, Dimitris Kontokostas <
>>> [email protected]> wrote:
>>>
>>>> I updated my repo but this is what I thought too.
>>>> So I deleted the ~/m2 folder and re-cloned the repo but then I got the
>>>> second maven error.
>>>>
>>>> ----
>>>> Send from my mobile
>>>> Στις 13 Μαρ 2013 11:27 μ.μ., ο χρήστης "Joachim Daiber" <
>>>> [email protected]> έγραψε:
>>>>
>>>> Did you create the JAR from the latest trunk? This looks like an
>>>>> older version.
>>>>>
>>>>> Best,
>>>>> Jo
>>>>>
>>>>>
>>>>> On Wed, Mar 13, 2013 at 9:52 PM, Dimitris Kontokostas <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> I tried to deploy this to nl.dbpedia.org but I get the following
>>>>>> error
>>>>>> $ java -jar
>>>>>> /opt/dbpedia-spotlight/code/dist/target/dbpedia-spotlight-0.6-jar-with-dependencies.jar
>>>>>> /opt/dbpedia-spotlight/model http://localhost:2222/
>>>>>> org.dbpedia.spotlight.exceptions.ConfigurationException: Cannot find
>>>>>> configuration file /opt/dbpedia-spotlight/model
>>>>>> at
>>>>>> org.dbpedia.spotlight.model.SpotlightConfiguration.<init>(SpotlightConfiguration.java:200)
>>>>>> at org.dbpedia.spotlight.web.rest.Server.main(Server.java:75)
>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>> /opt/dbpedia-spotlight/model (Is a directory)
>>>>>> at java.io.FileInputStream.open(Native Method)
>>>>>> at java.io.FileInputStream.<init>(FileInputStream.java:138)
>>>>>> at
>>>>>> org.dbpedia.spotlight.model.SpotlightConfiguration.<init>(SpotlightConfiguration.java:198)
>>>>>> ... 1 more
>>>>>>
>>>>>> usage: java -jar dbpedia-spotlight.jar
>>>>>> org.dbpedia.spotlight.web.rest.Server [config file] or: mvn scala:run
>>>>>> "-DaddArgs=[config file]"
>>>>>>
>>>>>> I thought that this should be an old build cache error so I deleted
>>>>>> the /org/spotlight folder from maven but now I get this
>>>>>>
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Building DBpedia Spotlight Distribution Packaging 0.6
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [WARNING] The POM for org.dbpedia.spotlight:core:jar:0.6 is missing,
>>>>>> no dependency information available
>>>>>> [WARNING] The POM for org.dbpedia.spotlight:rest:jar:0.6 is missing,
>>>>>> no dependency information available
>>>>>> [WARNING] The POM for org.dbpedia.spotlight:index:jar:0.6 is missing,
>>>>>> no dependency information available
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] BUILD FAILURE
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Total time: 4.536s
>>>>>> [INFO] Finished at: Wed Mar 13 23:51:26 CET 2013
>>>>>> [INFO] Final Memory: 15M/964M
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [ERROR] Failed to execute goal on project dist: Could not resolve
>>>>>> dependencies for project org.dbpedia.spotlight:dist:pom:0.6: The
>>>>>> following
>>>>>> artifacts could not be resolved: org.dbpedia.spotlight:core:jar:0.6,
>>>>>> org.dbpedia.spotlight:rest:jar:0.6, org.dbpedia.spotlight:index:jar:0.6:
>>>>>> Failure to find org.dbpedia.spotlight:core:jar:0.6 in
>>>>>> http://download.java.net/maven/2/ was cached in the local
>>>>>> repository, resolution will not be reattempted until the update interval
>>>>>> of
>>>>>> maven2-repository.dev.java.net has elapsed or updates are forced ->
>>>>>> [Help 1]
>>>>>> [ERROR]
>>>>>>
>>>>>> Any help?
>>>>>> Thanks :)
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 13, 2013 at 9:57 PM, Joachim Daiber <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> They are linear weights for the spot score. Every spot with a score
>>>>>>> >= 0.5 is annotated. See here:
>>>>>>>
>>>>>>>
>>>>>>> https://github.com/dbpedia-spotlight/dbpedia-spotlight/blob/master/core/src/main/scala/org/dbpedia/spotlight/db/DBSpotter.scala#L184
>>>>>>>
>>>>>>> If you want more results, you have to increase the last value.
>>>>>>>
>>>>>>> Best,
>>>>>>> Jo
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Mar 13, 2013 at 8:50 PM, Tom De Caluwé <[email protected]
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> What is the meaning of the four numbers in that file?
>>>>>>>>
>>>>>>>> 2013/3/13 Joachim Daiber <[email protected]>:
>>>>>>>> > The goal of this version is to provide results with best
>>>>>>>> precision _and_
>>>>>>>> > recall, so that there are few false positives. You can also
>>>>>>>> decrease the
>>>>>>>> > annotation threshhold to get more results (you would have to do
>>>>>>>> this via the
>>>>>>>> > spotter_thresh...txt) at the moment. But we will add a nicer way
>>>>>>>> of doing
>>>>>>>> > that in the future.
>>>>>>>> >
>>>>>>>> > Jo
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > On Wed, Mar 13, 2013 at 8:39 PM, Tom De Caluwé <
>>>>>>>> [email protected]> wrote:
>>>>>>>> >>
>>>>>>>> >> It's just that I'm getting much less results which is a bit
>>>>>>>> strange
>>>>>>>> >> considering it's a newer version. However I'm also getting much
>>>>>>>> less
>>>>>>>> >> false positives.
>>>>>>>> >>
>>>>>>>> >> 2013/3/13 Joachim Daiber <[email protected]>:
>>>>>>>> >> > Yes, what you are using is the new version that is not yet
>>>>>>>> deployed to
>>>>>>>> >> > nl.dbpedia.org/spotlight
>>>>>>>> >> >
>>>>>>>> >> > Best,
>>>>>>>> >> > Jo
>>>>>>>> >> >
>>>>>>>> >> >
>>>>>>>> >> > On Wed, Mar 13, 2013 at 8:30 PM, Tom De Caluwé <
>>>>>>>> [email protected]>
>>>>>>>> >> > wrote:
>>>>>>>> >> >>
>>>>>>>> >> >> One more thing, the results I obtain locally are quite
>>>>>>>> different than
>>>>>>>> >> >> the results from nl.dbpedia.org. Is there a reason for this?
>>>>>>>> >> >>
>>>>>>>> >> >> 2013/3/13 Joachim Daiber <[email protected]>:
>>>>>>>> >> >> > Hey Dimitris,
>>>>>>>> >> >> >
>>>>>>>> >> >> > I used this one: 20121003. Deploying that model on
>>>>>>>> nl.dbepdia.org
>>>>>>>> >> >> > would
>>>>>>>> >> >> > be
>>>>>>>> >> >> > great. Otherwise, we have to wait until the next indexing.
>>>>>>>> The
>>>>>>>> >> >> > DB-backed
>>>>>>>> >> >> > indexing is pretty much fully automated now, so we just
>>>>>>>> need to run
>>>>>>>> >> >> > it
>>>>>>>> >> >> > on a
>>>>>>>> >> >> > cluster/AWS.
>>>>>>>> >> >> >
>>>>>>>> >> >> > Best,
>>>>>>>> >> >> > Joachim
>>>>>>>> >> >> >
>>>>>>>> >> >> >
>>>>>>>> >> >> >
>>>>>>>> >> >> > On Wed, Mar 13, 2013 at 7:53 PM, Dimitris Kontokostas
>>>>>>>> >> >> > <[email protected]>
>>>>>>>> >> >> > wrote:
>>>>>>>> >> >> >>
>>>>>>>> >> >> >> Hi Joachim,
>>>>>>>> >> >> >>
>>>>>>>> >> >> >> What dump did you use for the pre-built model?
>>>>>>>> >> >> >> I created a new dump last month[1] but didn't have time
>>>>>>>> to update
>>>>>>>> >> >> >> the
>>>>>>>> >> >> >> spotlight
>>>>>>>> >> >> >> So I was thinking I could use this one :)
>>>>>>>> >> >> >>
>>>>>>>> >> >> >> The new dump however is way better than the previous since
>>>>>>>> a lot of
>>>>>>>> >> >> >> mappings have been added and instance times got from 550KB
>>>>>>>> to 17MB
>>>>>>>> >> >> >>
>>>>>>>> >> >> >> Cheers,
>>>>>>>> >> >> >> Dimitris
>>>>>>>> >> >> >>
>>>>>>>> >> >> >> [1] http://nl.dbpedia.org/downloads/nlwiki/20130205/
>>>>>>>> >> >> >>
>>>>>>>> >> >> >>
>>>>>>>> >> >> >> On Wed, Mar 13, 2013 at 7:45 PM, Tom De Caluwé
>>>>>>>> >> >> >> <[email protected]>
>>>>>>>> >> >> >> wrote:
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>> With this script I can get it up and running all at once:
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>> apt-get install maven
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>> PREFIX=/opt
>>>>>>>> >> >> >>> MODEL_PATH=/opt/dbpedia-spotlight/var/spotlight/data
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>> cd $PREFIX
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>> git clone
>>>>>>>> >> >> >>>
>>>>>>>> https://github.com/dbpedia-spotlight/dbpedia-spotlight.git
>>>>>>>> >> >> >>> cd dbpedia-spotlight
>>>>>>>> >> >> >>> mkdir -p $MODEL_PATH
>>>>>>>> >> >> >>> curl http://spotlight.sztaki.hu:2226/nl.tar.gz | tar
>>>>>>>> >> >> >>> --strip-components=1 -C $MODEL_PATH -xzf -
>>>>>>>> >> >> >>> echo "1.0 0.2 -0.2 0.1" >
>>>>>>>> $MODEL_PATH/spotter_thresholds.txt
>>>>>>>> >> >> >>> cd dist
>>>>>>>> >> >> >>> mvn package
>>>>>>>> >> >> >>> apt-get update
>>>>>>>> >> >> >>> dpkg -i dbpedia-spotlight-*.deb || apt-get -fy install
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>> java -jar
>>>>>>>> >> >> >>>
>>>>>>>> /usr/share/java/dbpedia-spotlight-0.6-jar-with-dependencies.jar
>>>>>>>> >> >> >>> $MODEL_PATH http://localhost:2222/ &
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>> And you don't need to add the additional
>>>>>>>> >> >> >>> &spotter=Default&disambiguator=Default.
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>> 2013/3/13 Tom De Caluwé <[email protected]>:
>>>>>>>> >> >> >>> > This works! Thanks!
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>>
>>>>>>>> >> >> >>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> >> >> >>> Everyone hates slow websites. So do we.
>>>>>>>> >> >> >>> Make your web apps faster with AppDynamics
>>>>>>>> >> >> >>> Download AppDynamics Lite for free today:
>>>>>>>> >> >> >>> http://p.sf.net/sfu/appdyn_d2d_mar
>>>>>>>> >> >> >>> _______________________________________________
>>>>>>>> >> >> >>> Dbp-spotlight-users mailing list
>>>>>>>> >> >> >>> [email protected]
>>>>>>>> >> >> >>>
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
>>>>>>>> >> >> >>
>>>>>>>> >> >> >>
>>>>>>>> >> >> >>
>>>>>>>> >> >> >>
>>>>>>>> >> >> >> --
>>>>>>>> >> >> >> Kontokostas Dimitris
>>>>>>>> >> >> >
>>>>>>>> >> >> >
>>>>>>>> >> >
>>>>>>>> >> >
>>>>>>>> >
>>>>>>>> >
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Kontokostas Dimitris
>>>>>>
>>>>>
>>>>>
>>>
>>
>>
>> --
>> Kontokostas Dimitris
>>
>
>
--
Kontokostas Dimitris
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users