Open Yotlan opened 1 year ago
How to reproduce this bug ?
You need to go in engines/semagrow and enter this command :
java -classpath rdf4j/target/semagrow-rdf4j-2.2.1-jar-with-dependencies.jar:rdf4j/target/* org.semagrow.cli.CliMain repository.ttl http://localhost:34209/sparql ../../experiments/bsbm/benchmark/evaluation/semagrow/q07/instance_7/batch_0/attempt_0/results.txt ../../experiments/bsbm/benchmark/evaluation/semagrow/q07/instance_7/batch_0/attempt_0/source_selection.txt ../../experiments/bsbm/benchmark/evaluation/semagrow/q07/instance_7/batch_0/attempt_0/query_plan.txt ../../experiments/bsbm/benchmark/evaluation/semagrow/q07/instance_7/batch_0/attempt_0/stats.csv 120 metadata.ttl ../../experiments/bsbm/benchmark/generation/q07/instance_7/injected.sparql http://www.ratingsite0.fr/ http://www.ratingsite1.fr/ http://www.ratingsite2.fr/ http://www.ratingsite3.fr/ http://www.ratingsite4.fr/ http://www.ratingsite5.fr/ http://www.ratingsite6.fr/ http://www.ratingsite7.fr/ http://www.ratingsite8.fr/ http://www.ratingsite9.fr/ http://www.vendor0.fr/ http://www.vendor1.fr/ http://www.vendor2.fr/ http://www.vendor3.fr/ http://www.vendor4.fr/ http://www.vendor5.fr/ http://www.vendor6.fr/ http://www.vendor7.fr/ http://www.vendor8.fr/ http://www.vendor9.fr/
Further debug indicates that getInstance()
only return a single-item list [RDFBinary]
as fileFormats
.
I suspect that something is not right with your classpath. After all, same code, same commands, same arguments.
I manage to execute with mvn
:
mvn exec:java -pl "rdf4j/" -Dexec.mainClass="org.semagrow.cli.CliMain" -Dexec.args="./repository.ttl http://localhost:34201/sparql ../../experiments/bsbm/benchmark/evaluation/semagrow/q07/instance_7/batch_0/attempt_0/results.txt ../../experiments/bsbm/benchmark/evaluation/semagrow/q07/instance_7/batch_0/attempt_0/source_selection.txt ../../experiments/bsbm/benchmark/evaluation/semagrow/q07/instance_7/batch_0/attempt_0/query_plan.txt ../../experiments/bsbm/benchmark/evaluation/semagrow/q07/instance_7/batch_0/attempt_0/stats.csv 120 ./metadata.ttl ../../experiments/bsbm/benchmark/generation/q07/instance_7/injected.sparql http://www.ratingsite0.fr/ http://www.ratingsite1.fr/ http://www.ratingsite2.fr/ http://www.ratingsite3.fr/ http://www.ratingsite4.fr/ http://www.ratingsite5.fr/ http://www.ratingsite6.fr/ http://www.ratingsite7.fr/ http://www.ratingsite8.fr/ http://www.ratingsite9.fr/ http://www.vendor0.fr/ http://www.vendor1.fr/ http://www.vendor2.fr/ http://www.vendor3.fr/ http://www.vendor4.fr/ http://www.vendor5.fr/ http://www.vendor6.fr/ http://www.vendor7.fr/ http://www.vendor8.fr/ http://www.vendor9.fr/"
This bug is about this line in
engines/semagrow/rdf4j/src/main/java/org/semagrow/repository/SemagrowRepositoryResolver.java
(line 80) :When we use the debug mode of Visual Studio Code, we get the following content:
But with the execution mode, we get the following content: