Statement stmt = rawModel.getProperty(s, OWL.onProperty);
// usedStatements.add(stmt);
Resource p = stmt.getResource();
ATerm pt = node2term(p);
if(s.hasProperty(OWL.hasValue)) {
stmt = rawModel.getProperty(s, OWL.hasValue);
RDFNode o = stmt.getObject();
// usedStatements.add(stmt);
ATerm ot = node2term(o);
aTerm = ATermUtils.makeHasValue(pt, ot);
}
else if(s.hasProperty(OWL.allValuesFrom)) {
stmt = rawModel.getProperty(s, OWL.allValuesFrom);
// usedStatements.add(stmt);
Resource o = stmt.getResource();
ATerm ot = node2term(o);
aTerm = ATermUtils.makeAllValues(pt, ot);
}
else if(s.hasProperty(OWL.someValuesFrom)) {
stmt = rawModel.getProperty(s, OWL.someValuesFrom);
// usedStatements.add(stmt);
Resource o = stmt.getResource();
ATerm ot = node2term(o);
aTerm = ATermUtils.makeSomeValues(pt, ot);
}
else if(s.hasProperty(OWL.minCardinality)) {
stmt = rawModel.getProperty(s, OWL.minCardinality);
// usedStatements.add(stmt);