Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run main file in tbsl project #36

Open
suryahub opened this issue Oct 20, 2016 · 2 comments
Open

Unable to run main file in tbsl project #36

suryahub opened this issue Oct 20, 2016 · 2 comments

Comments

@suryahub
Copy link

Hi,
I cloned OpenQA from the below repository(from developer branch which comes as default when the page loads. https://github.com/AKSW/openqa I build the entire project and when i tried to run the Main.java file in the tbsl project in org.aksw.openqa.component.answerformulation.interpreter.impl package i get the following exception.

String question = "Which caves have more than 3 entrances";
09:23:28,989 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/noun.exc
09:23:28,992 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/frames.vrb
09:23:28,993 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/data.noun
09:23:28,993 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/verb.Framestext
09:23:28,993 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/verb.exc
09:23:28,993 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/data.adv
09:23:28,994 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/cntlist.rev
09:23:28,994 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/Makefile
09:23:28,994 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/lexnames
09:23:28,994 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/sentidx.vrb
09:23:28,994 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/adj.exc
09:23:28,994 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/cntlist
09:23:28,995 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/adv.exc
09:23:28,995 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/Makefile.in
09:23:28,995 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/index.verb
09:23:28,995 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/index.adv
09:23:28,995 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/Makefile.am
09:23:28,996 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/sents.vrb
09:23:28,996 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/index.sense
09:23:28,996 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/data.adj
09:23:28,996 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/index.adj
09:23:28,996 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/data.verb
09:23:28,997 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/log.grind.3.0
09:23:28,997 WordNetUnpacker - file exists already, skipped: /tmp/wordnet178558556719/index.noun
org.json.JSONException: A JSONObject text must begin with '{' at character 1
at org.json.JSONTokener.syntaxError(JSONTokener.java:410)
at org.json.JSONObject.(JSONObject.java:179)
at org.json.JSONObject.(JSONObject.java:402)
at org.aksw.autosparql.commons.nlp.ner.DBpediaSpotlightNER.getNamedEntitites(DBpediaSpotlightNER.java:54)
at org.aksw.autosparql.tbsl.algorithm.ltag.parser.Preprocessor.findNEs(Preprocessor.java:306)
at org.aksw.autosparql.tbsl.algorithm.templator.Templator.buildTemplates(Templator.java:173)
at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:164)
at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)
at org.aksw.openqa.component.answerformulation.interpreter.impl.Main.main(Main.java:26)
Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected content type application/octet-stream but got text/html; charset=UTF-8.

<title>404: Resource not found</title> <style type="text/css"> body { font-family: sans-serif; line-height: 1.5; background-color: #eff9ff; } h1 { font-size: 100% } </style>

Resource not found

The resource http://linkedspending.aksw.org/solr/en_dbpedia_classes/select?q=label%3A%22caves%22%5E2+&rows=10&fl=uri%2Cscore&wt=javabin&version=2 you are trying to reach does not exist.
Do you want to create it?
Otherwise, try to go back.

at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:455)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:197)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
at org.aksw.rdfindex.SOLRIndex.getResourcesWithScores(SOLRIndex.java:82)
at org.aksw.autosparql.commons.search.FilteredIndex.getResourcesWithScores(FilteredIndex.java:18)
at org.aksw.autosparql.tbsl.algorithm.learning.SimpleEntityDisambiguation.getCandidateEntities(SimpleEntityDisambiguation.java:76)
at org.aksw.autosparql.tbsl.algorithm.learning.SimpleEntityDisambiguation.performEntityDisambiguation(SimpleEntityDisambiguation.java:48)
at org.aksw.autosparql.tbsl.algorithm.learning.SimpleEntityDisambiguation.performEntityDisambiguation(SimpleEntityDisambiguation.java:38)
at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:183)
at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)
at org.aksw.openqa.component.answerformulation.interpreter.impl.Main.main(Main.java:26)

When I posted the same in OpenQA the Repoowner suggested to take it up with AutoSPARQL forum.
Please help me in solving this issue.

@songliuchen
Copy link

i have the same problem

at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:512)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
at org.aksw.rdfindex.SOLRIndex.getResourcesWithScores(SOLRIndex.java:82)
at org.aksw.autosparql.commons.search.FilteredIndex.getResourcesWithScores(FilteredIndex.java:18)
at org.aksw.autosparql.tbsl.algorithm.learning.SimpleEntityDisambiguation.getCandidateEntities(SimpleEntityDisambiguation.java:76)
at org.aksw.autosparql.tbsl.algorithm.learning.SimpleEntityDisambiguation.performEntityDisambiguation(SimpleEntityDisambiguation.java:48)
at org.aksw.autosparql.tbsl.algorithm.learning.SimpleEntityDisambiguation.performEntityDisambiguation(SimpleEntityDisambiguation.java:38)
at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:183)
at org.aksw.autosparql.tbsl.algorithm.learning.TBSL.answerQuestion(TBSL.java:156)
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.answerQuestion(TBSLManager.java:340)
at org.aksw.autosparql.tbsl.gui.vaadin.view.MainView$11.run(MainView.java:504)
at java.lang.Thread.run(Thread.java:745)

@KonradHoeffner
Copy link
Contributor

That SOLR Server does not exist anymore, you need to set up your own. However there will probably be further problems, as we don't maintain the project anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants