You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a question about the expected behavior of a shacl processor or an issue (perhaps related to #53 ).
I get an unresolved prefix error if I remove the below line. What the processor is doing is fetching the ontology from the internet instead of using the prefixes that are (already) in the file. At this time, the internet file did not have the prefixes so it was failing..
Here's the minimal shape file but it's not reproducible because of the web address.
shapes.ttl
Exception in thread "main" org.apache.jena.query.QueryParseException: Line 1, column 18: Unresolved prefixed name: rdf:type
at org.apache.jena.sparql.lang.QueryParserBase.throwParseException(QueryParserBase.java:578)
at org.apache.jena.sparql.lang.QueryParserBase.resolvePName(QueryParserBase.java:320)
at org.apache.jena.sparql.lang.arq.ARQParser.PrefixedName(ARQParser.java:6438)
at org.apache.jena.sparql.lang.arq.ARQParser.iri(ARQParser.java:6422)
at org.apache.jena.sparql.lang.arq.ARQParser.VarOrIri(ARQParser.java:4333)
at org.apache.jena.sparql.lang.arq.ARQParser.Verb(ARQParser.java:3296)
at org.apache.jena.sparql.lang.arq.ARQParser.PropertyListNotEmpty(ARQParser.java:3257)
at org.apache.jena.sparql.lang.arq.ARQParser.TriplesSameSubject(ARQParser.java:3221)
at org.apache.jena.sparql.lang.arq.ARQParser.TriplesTemplate(ARQParser.java:2352)
at org.apache.jena.sparql.lang.arq.ARQParser.ConstructQuads(ARQParser.java:2233)
at org.apache.jena.sparql.lang.arq.ARQParser.ConstructTemplate(ARQParser.java:3164)
at org.apache.jena.sparql.lang.arq.ARQParser.ConstructQuery(ARQParser.java:585)
at org.apache.jena.sparql.lang.arq.ARQParser.Query(ARQParser.java:35)
at org.apache.jena.sparql.lang.arq.ARQParser.QueryUnit(ARQParser.java:22)
at org.apache.jena.sparql.lang.ParserARQ$1.exec(ParserARQ.java:48)
at org.apache.jena.sparql.lang.ParserARQ.perform(ParserARQ.java:95)
at org.apache.jena.sparql.lang.ParserARQ.parse$(ParserARQ.java:52)
at org.apache.jena.sparql.lang.SPARQLParser.parse(SPARQLParser.java:33)
at org.apache.jena.query.QueryFactory.parse(QueryFactory.java:144)
at org.topbraid.jenax.util.ARQFactory.doCreateQuery(ARQFactory.java:201)
at org.topbraid.jenax.util.ARQFactory.doCreateQuery(ARQFactory.java:183)
at org.topbraid.jenax.util.ARQFactory.createQuery(ARQFactory.java:173)
at org.topbraid.shacl.rules.SPARQLRule.<init>(SPARQLRule.java:46)
at org.topbraid.shacl.rules.SPARQLRuleLanguage.createRule(SPARQLRuleLanguage.java:25)
at org.topbraid.shacl.rules.RuleEngine.lambda$getShapeRules$2(RuleEngine.java:288)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228)
at org.topbraid.shacl.rules.RuleEngine.getShapeRules(RuleEngine.java:274)
at org.topbraid.shacl.rules.RuleEngine.executeShape(RuleEngine.java:190)
at org.topbraid.shacl.rules.RuleEngine.executeShapes(RuleEngine.java:178)
at org.topbraid.shacl.rules.RuleEngine.executeAll(RuleEngine.java:104)
at org.topbraid.shacl.rules.RuleUtil.executeRulesHelper(RuleUtil.java:129)
at org.topbraid.shacl.rules.RuleUtil.executeRules(RuleUtil.java:64)
at org.topbraid.shacl.tools.Infer.run(Infer.java:54)
at org.topbraid.shacl.tools.Infer.main(Infer.java:44)
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a question about the expected behavior of a shacl processor or an issue (perhaps related to #53 ).
I get an unresolved prefix error if I remove the below line. What the processor is doing is fetching the ontology from the internet instead of using the prefixes that are (already) in the file. At this time, the internet file did not have the prefixes so it was failing..
Here's the minimal shape file but it's not reproducible because of the web address.
shapes.ttl
error if offending line removed.
The text was updated successfully, but these errors were encountered: