Hi all,
I am trying the SHACL rule example fromwith the SHACL API fromVersion 1.3.2.With the attached file, I get the following error message:
"Exception in thread "main" org.apache.jena.query.QueryParseException: Line 3, column 39: Unresolved prefixed name: ex:area"
Is this a bug in the SPARQL implementation, or is the example from the spec wrong?
The example as printed in the spec is incomplete, because it does not sh:declare the prefix.
To make it complete, either
add
ex:
sh:declare [
sh:prefix "ex" ;
sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
] .
or put the prefix into the beginning of the query string and delete the sh:prefixes link:
sh:construct """
PREFIX ex: "http://example.com/ns#"
CONSTRUCT ...
See https://www.w3.org/TR/shacl/#sparql-prefixes for the general
topic.
Unrelated to this specific feature: I tried to install the latest version of the SHACL API and then get an error"org/topbraid/shacl/tools/Infer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0"I am using on mac os x the latest JRE from OracleJava(TM) SE Runtime Environment (build 1.8.0_311-b11)Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)
Is there a way to work with the latest SHACL API, maybe by working with a different JRE?
Yes, you need to upgrade your Java version because the Jena API that we use requires Java 11.
https://openjdk.java.net/projects/jdk/11/
HTH
Holger
--
Regards
Felix
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/cd7598fb-cb75-4bea-832b-f18dbcaa8fe1n%40googlegroups.com.