public NodeSet<OWLDataProperty> getSubDataProperties(OWLDataProperty pe, boolean direct) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { refreshCheck(); try { Set<Node<OWLDataProperty>> values = new HashSet<Node<OWLDataProperty>>(); for (Set<ATermAppl> val : kb.getSubProperties(term(pe), direct)) { values.add(toDataPropertyNode(val)); } return new OWLDataPropertyNodeSet(values); } catch (PelletRuntimeException e) { throw convert(e); } }