Skip to content

Unable to run main file in tbsl project #36

@suryahub

Description

@suryahub

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions