For example, i have a jena OntModel, with many classes, individuals and properties. I want to konw how many datatypeProperty and objectProperty are set for an specific individual.
I have code below, given an Individual, ind.listProperties() will list all properties, while i dont konw how to judge if it is a datatypeProperty or objectProperty
static void statInstance(Individual ind, Node node) {
for (StmtIterator j = ind.listProperties(); j.hasNext(); ) {
Statement s = j.next();
// how to judge if s is a datatypeProperty or objectProperty
}
}