Open marmhm opened 2 years ago
Can you try with (notice the <> around the URL):
Query q = QueryFactory.create("SELECT * WHERE { <http://test.com/subject> ?p "Hello" . }");
Still getting the same error. I am running 'MainStatistics.java' line 124: Query q = QueryFactory.create(query) raise this error
Can you try creating a new class with this method? This runs fine for me. I changed my jena version to the one you are using.
import org.apache.jena.query.Query;
import org.apache.jena.query.QueryFactory;
public class TestingSomething {
public static void main(String[] args) {
Query q = QueryFactory.create("SELECT * WHERE { <http://test.com/subject> ?p \"Hello\" }");
System.out.println(q);
}
}
If that gives the same error, can you add the following call at the start of the code:
org.apache.jena.query.ARQ.init();
Thanks, after adding the following line it is working.
org.apache.jena.query.ARQ.init();
Hi,
Running this code:
Getting this error stack trace:
Using Java 11 and maven 3.8.5 And this properties/dependency in pom.xml: