public static Set<String> getClsValueObjectProperty(OWLOntology ont, String clsuri, String propuri) {
Set<String> valset = new HashSet<String>();
Set<OWLClassExpression> clsex = factory.getOWLClass(IRI.create(clsuri)).getSuperClasses(ont);
for(OWLClassExpression oneclsex : clsex){
if(oneclsex instanceof OWLObjectSomeValuesFrom){
OWLObjectSomeValuesFrom hasvalex = (OWLObjectSomeValuesFrom)oneclsex;
if(hasvalex.getProperty().asOWLObjectProperty().getIRI().toString().equals(propuri)){
if(hasvalex.isAnonymous()){
//System.out.println("Value for " + hasvalex.toString() + " (" + propuri + ") is anonymous");
// hasvalex.
}
// else{
valset.add(hasvalex.getFiller().asOWLClass().getIRI().toString());
// }
}
}
}
return valset;