Answer a view of this resource as a data range
238239240241242243244245246247248
while (it.hasNext()) { OntResource resource = (OntResource) it.next(); if (resource.isDataRange()) { DataRange dr = resource.asDataRange(); Iterator itoof = dr.listOneOf(); while (itoof.hasNext()) { Literal literal = (Literal) itoof.next(); declaredValues.add(literal); }