use of org.sbpax.util.sets.SetOfThree in project vcell by virtualcell.
the class OntologyInfo method resourcesFromStatement.
public static Set<Resource> resourcesFromStatement(Statement statement) {
Resource subject = statement.getSubject();
URI predicate = statement.getPredicate();
Value object = statement.getObject();
if (object instanceof Resource) {
return new SetOfThree<Resource>(subject, predicate, (Resource) object);
} else {
return new SetOfTwo<Resource>(subject, predicate);
}
}
Aggregations