I have the following code in python using RDFLib and I want to translate it into JAVA using Sesame libraries.
Python
restrictionNode= BNode()
g.add((nodeIndividualName,rdftype,restrictionNode))
g.add((restrictionNode, rdftype, OWL.Restriction))
g.add((restrictionNode, OWL.onProperty, rno.is_extent_of))
listClassNode = BNode()
g.add((restrictionNode, OWL.allValuesFrom, listClassNode))
g.add((listClassNode, rdftype, OWL.Class))
arcListNode = BNode()
g.add((listClassNode, OWL.oneOf,arcListNode ))
Collection(g, arcListNode,arcIndividualList)
In the above code, g is a graph.
the above code creates the following assertion:
is_extent_of only ({arc_1,arc_2,arc_4})
I was able to create the same code but the last line. Does anyone know if there is the same notion as Collection in Sesame APIs or I should manually create the list using first and rest?