package tudelft.healthpsychology.traumaontologies.owltree; import java.util.Collection; import tudelft.healthpsychology.traumaontologies.answerstate.OntologyNode; import tudelft.healthpsychology.traumaontologies.answerstate.Property; import tudelft.utilities.tree.Tree; /** * Mechanism to fetch nodes with given label from the reasoner. */ public class OwlTree implements Tree, OntologyNode> { private final OwlTreeReasoner reasoner; public OwlTree(OwlTreeReasoner reasoner) { this.reasoner = reasoner; } @Override public OntologyNode get(String id) { return new OwlOntologyNode(reasoner.getObject(id), reasoner); } }