Hit send too soon! When the list is serialized back to String again, I get
[[ inheritance: (?template rdf:type http://graphity.org/gp#Template) (?template ?p ?o) (?p rdf:type owl:AnnotationProperty) (?p rdfs:isDefinedBy http://graphity.org/gp#) (?subClass rdfs:subClassOf ?template) noValue(?subClass ?p) -> (?subClass ?p ?o) ]] Notice the missing < > brackets on URIs. Reparsing the string gives an exception: com.hp.hpl.jena.reasoner.rulesys.Rule$ParserException: Malformed rule At 'http://graphity.org/gp# ) ( ?subClass rdfs:subClassOf ?template ) noValue ( ?subClass ?p ) -> ( ?subClass ?p ?o ) ] ] ' Can you confirm this is a bug? I need to roundtrip Rules from Strings to objects and back. Martynas graphityhq.com On Fri, Sep 18, 2015 at 12:34 AM, Martynas Jusevičius <[email protected]> wrote: > Hey, > > I have a List<Rule> created using Rule.parseRules from a String: > > [inheritance: (?template rdf:type <http://graphity.org/gp#Template>), > (?template ?p ?o), (?p rdf:type owl:AnnotationProperty), (?p > rdfs:isDefinedBy <http://graphity.org/gp#>), (?subClass > rdfs:subClassOf ?template), noValue(?subClass ?p) -> (?subClass ?p ?o) > ] > > When the list is serialized back to String again, I get
