Open Emma123456 opened 6 years ago
Hello @Emma123456, unfortunately this project hasn't been maintained for a long time. I think we should archive it to signal users that it is not in a usable state anymore but when I find the time, I will check if it is possible to correct the biggest errors quickly. Seeing as this issue is already more than 4 years old I don't know if that is relevant for you anymore anyways, but easy to setup portable open source linked data question answering systems are still an active topic of research after all these years. While it is closed source, we have good experiences with QAnswer.
These days , I have compiled and ran AutoSPARQL-develop on my Ubuntu system,but it didn't work.and I got these Exceptions. My runtime enviroment is JDK1.8,Maven 3.5.2. PS:I also ran on windows. And It didn't work too. Thanks for your time.
AutoSPARQL TBSL compile log for error reporting\n<><><> module autosparql <><><> [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building autosparql-parent 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ autosparql-parent --- [INFO] Installing /home/cuixy/tbsl/AutoSPARQL-develop/pom.xml to /home/cuixy/.m2/repository/org/aksw/autosparql/autosparql-parent/1.0-SNAPSHOT/autosparql-parent-1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.076 s [INFO] Finished at: 2018-02-16T11:14:39+08:00 [INFO] Final Memory: 9M/85M [INFO] ------------------------------------------------------------------------ <><><> module commons <><><> [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building commons 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ commons --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 54 resources [INFO] [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ commons --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 66 source files to /home/cuixy/tbsl/AutoSPARQL-develop/commons/target/classes [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/commons/src/main/java/org/aksw/autosparql/commons/diadem/WordFrequencyCounter.java: Some input files use or override a deprecated API. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/commons/src/main/java/org/aksw/autosparql/commons/diadem/WordFrequencyCounter.java: Recompile with -Xlint:deprecation for details. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/commons/src/main/java/org/aksw/autosparql/commons/uri/UriDisambiguation.java: Some input files use unchecked or unsafe operations. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/commons/src/main/java/org/aksw/autosparql/commons/uri/UriDisambiguation.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ commons --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ commons --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 7 source files to /home/cuixy/tbsl/AutoSPARQL-develop/commons/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ commons --- [INFO] Surefire report directory: /home/cuixy/tbsl/AutoSPARQL-develop/commons/target/surefire-reports
T E S T S
Running LoggerTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.271 sec - in LoggerTest Running org.aksw.autosparql.commons.metric.DatabaseBackedSPARQLEndpointMetricsTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 33.471 sec <<< FAILURE! - in org.aksw.autosparql.commons.metric.DatabaseBackedSPARQLEndpointMetricsTest testPmiMetric(org.aksw.autosparql.commons.metric.DatabaseBackedSPARQLEndpointMetricsTest) Time elapsed: 33.465 sec <<< ERROR! java.lang.RuntimeException: connection could not be initialized. at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.(Socket.java:434)
at java.net.Socket.(Socket.java:244)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:258)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:306)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2504)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:832)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:344)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDefaultReadOnlyConnection(SPARQLEndpointMetrics.java:94)
at org.aksw.autosparql.commons.metric.SPARQLEndpointMetrics.getDbpediaMetrics(SPARQLEndpointMetrics.java:68)
at org.aksw.autosparql.commons.metric.DatabaseBackedSPARQLEndpointMetricsTest.testPmiMetric(DatabaseBackedSPARQLEndpointMetricsTest.java:32)
Running org.aksw.autosparql.commons.nlp.pos.StanfordPartOfSpeechTaggerTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.243 sec - in org.aksw.autosparql.commons.nlp.pos.StanfordPartOfSpeechTaggerTest Running org.aksw.autosparql.commons.nlp.wordnet.WordNetUnpackerTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.aksw.autosparql.commons.nlp.wordnet.WordNetUnpackerTest Running org.aksw.autosparql.commons.nlp.wordnet.WordNetTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 sec - in org.aksw.autosparql.commons.nlp.wordnet.WordNetTest Running org.aksw.autosparql.commons.uri.UriDisambiguationTest Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.056 sec <<< FAILURE! - in org.aksw.autosparql.commons.uri.UriDisambiguationTest testGetUriCandidates(org.aksw.autosparql.commons.uri.UriDisambiguationTest) Time elapsed: 1.659 sec <<< ERROR! java.lang.RuntimeException: exception with query: q=surfaceForms%3A%22Leipzig%22&sort=disambiguationScore+desc&fl=surfaceForms%2Curi%2Clabel%2Ccomment%2Ctypes%2CdbpediaUri%2CdisambiguationScore&rows=100 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.autosparql.commons.uri.UriDisambiguation.query(UriDisambiguation.java:188) at org.aksw.autosparql.commons.uri.UriDisambiguation.getUriCandidates(UriDisambiguation.java:152) at org.aksw.autosparql.commons.uri.UriDisambiguationTest.testGetUriCandidates(UriDisambiguationTest.java:12)
testGetUriListOfResourceStringString(org.aksw.autosparql.commons.uri.UriDisambiguationTest) Time elapsed: 0.396 sec <<< ERROR! java.lang.RuntimeException: exception with query: q=surfaceForms%3A%22Leipzig%22&sort=disambiguationScore+desc&fl=surfaceForms%2Curi%2Clabel%2Ccomment%2Ctypes%2CdbpediaUri%2CdisambiguationScore&rows=100 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.autosparql.commons.uri.UriDisambiguation.query(UriDisambiguation.java:188) at org.aksw.autosparql.commons.uri.UriDisambiguation.getUriCandidates(UriDisambiguation.java:152) at org.aksw.autosparql.commons.uri.UriDisambiguationTest.testGetUriListOfResourceStringString(UriDisambiguationTest.java:19)
Running org.aksw.autosparql.commons.index.LemmatizedIndexTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.099 sec - in org.aksw.autosparql.commons.index.LemmatizedIndexTest
Results :
Tests in error: DatabaseBackedSPARQLEndpointMetricsTest.testPmiMetric:32 » Runtime connection ... UriDisambiguationTest.testGetUriCandidates:12 » Runtime exception with query: ... UriDisambiguationTest.testGetUriListOfResourceStringString:19 » Runtime except...
Tests run: 9, Failures: 0, Errors: 3, Skipped: 0
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 54.167 s [INFO] Finished at: 2018-02-16T11:15:35+08:00 [INFO] Final Memory: 42M/312M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project commons: There are test failures. [ERROR] [ERROR] Please refer to /home/cuixy/tbsl/AutoSPARQL-develop/commons/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException <><><> module algorithm-tbsl <><><> [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building algorithm-tbsl 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for jwnl:jwnl:jar:1.3.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ algorithm-tbsl --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 32 resources [INFO] [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ algorithm-tbsl --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 202 source files to /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/target/classes [WARNING] error reading /home/cuixy/.m2/repository/jwnl/jwnl/1.3.3/jwnl-1.3.3.jar; error in opening zip file [WARNING] error reading /home/cuixy/.m2/repository/jwnl/jwnl/1.3.3/jwnl-1.3.3.jar; error in opening zip file [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/converter/DRS2BasicSPARQL_Converter.java: Some input files use or override a deprecated API. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/converter/DRS2BasicSPARQL_Converter.java: Recompile with -Xlint:deprecation for details. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/util/MultithreadedSPARQLQueryExecutor.java: Some input files use unchecked or unsafe operations. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/util/MultithreadedSPARQLQueryExecutor.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ algorithm-tbsl --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 29 resources [INFO] [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ algorithm-tbsl --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/target/test-classes [WARNING] error reading /home/cuixy/.m2/repository/jwnl/jwnl/1.3.3/jwnl-1.3.3.jar; error in opening zip file [WARNING] error reading /home/cuixy/.m2/repository/jwnl/jwnl/1.3.3/jwnl-1.3.3.jar; error in opening zip file [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/IndexEvaluation.java: Some input files use or override a deprecated API. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/IndexEvaluation.java: Recompile with -Xlint:deprecation for details. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/TemplateSerializationTest.java: /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/TemplateSerializationTest.java uses unchecked or unsafe operations. [WARNING] /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/src/test/java/org/aksw/autosparql/tbsl/algorithm/TemplateSerializationTest.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ algorithm-tbsl --- [INFO] Surefire report directory: /home/cuixy/tbsl/AutoSPARQL-develop/algorithm-tbsl/target/surefire-reports
T E S T S
Running org.aksw.autosparql.tbsl.algorithm.util.SolrServerTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.319 sec <<< FAILURE! - in org.aksw.autosparql.tbsl.algorithm.util.SolrServerTest testDBpediaIndices(org.aksw.autosparql.tbsl.algorithm.util.SolrServerTest) Time elapsed: 11.277 sec <<< ERROR! org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/html. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Resource not found
The resource
http://linkedspending.aksw.org/solr/en_dbpedia_resources/select?q=label%3A%22Premier+League%22%5E2++OR+%28label%3APremier+AND+label%3ALeague%29&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.
Running org.aksw.autosparql.tbsl.algorithm.knowledgebase.DBpediaKnowledgebaseTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.654 sec <<< FAILURE! - in org.aksw.autosparql.tbsl.algorithm.knowledgebase.DBpediaKnowledgebaseTest test(org.aksw.autosparql.tbsl.algorithm.knowledgebase.DBpediaKnowledgebaseTest) Time elapsed: 1.654 sec <<< ERROR! com.hp.hpl.jena.sparql.engine.http.QueryExceptionHTTP: Unexpected error making the query: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:210) at java.net.SocketInputStream.read(SocketInputStream.java:141) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84) at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:92) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:61) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260) at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283) at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252) at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137) at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:118) at org.apache.jena.riot.web.HttpOp.exec(HttpOp.java:1108) at org.apache.jena.riot.web.HttpOp.execHttpGet(HttpOp.java:385) at org.apache.jena.riot.web.HttpOp.execHttpGet(HttpOp.java:447) at com.hp.hpl.jena.sparql.engine.http.HttpQuery.execGet(HttpQuery.java:346) at com.hp.hpl.jena.sparql.engine.http.HttpQuery.exec(HttpQuery.java:295) at com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execResultSetInner(QueryEngineHTTP.java:346) at com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execSelect(QueryEngineHTTP.java:338) at org.aksw.autosparql.commons.knowledgebase.RemoteKnowledgebase.querySelectNoCache(RemoteKnowledgebase.java:39) at org.aksw.autosparql.tbsl.algorithm.knowledgebase.DBpediaKnowledgebaseTest.test(DBpediaKnowledgebaseTest.java:15)
Running org.aksw.autosparql.tbsl.algorithm.knowledgebase.OxfordKnowledgebaseTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.472 sec - in org.aksw.autosparql.tbsl.algorithm.knowledgebase.OxfordKnowledgebaseTest Running org.aksw.autosparql.tbsl.algorithm.TBSLTest WordNetUnpacker.getUnpackedWordNetDir: using code source /home/cuixy/.m2/repository/org/aksw/autosparql/commons/1.0-SNAPSHOT/commons-1.0-SNAPSHOT.jar unpacking jarfile /home/cuixy/.m2/repository/org/aksw/autosparql/commons/1.0-SNAPSHOT/commons-1.0-SNAPSHOT.jar loading wordnet from /tmp/wordnet178558556719 Running template generation... Generated 2 templates: