Hey,

I think https://issues.apache.org/jira/browse/JENA-1030 fix does not
work for List<Rule>.

I tried roundtripping
Rule.parseRules(GenericRuleReasoner.getRules().toString()) and what I
get is:

org.apache.jena.reasoner.rulesys.Rule$ParserException: Malformed rule
At '[ rdfs9: ( ?x rdfs:subClassOf ?y ) ( ?a rdf:type ?x ) -> ( ?a
rdf:type ?y ) ] ] '

Not sure exactly what the cause is, but I have a RulePrinter that
roundtrips successfully:
https://github.com/AtomGraph/Processor/blob/master/src/main/java/com/atomgraph/processor/util/RulePrinter.java


Martynas
atomgraph.com

Reply via email to