How to determine the subject and object of an object property assertion?

In OWLAPI, when you get the signature of an OWLAxiom of type AxiomType.OBJECT_PROPERTY_ASSERTION, how to know which of its entities is the subject and which is the object?

Answers


Don't try to do it from the signature. The signature is just a set, and doesn't have the information that you want. Instead, treat it as an OWLPropertyAssertionAxiom and use the getSubject() and getObject() methods.


Need Your Help

Site in maintenance. How to redirect visitors?

php apache redirect maintenance

My PHP site in maintenance. How to redirect visitors to a "site in maintenance" single page?

What is the correct way to configure custom mapper for WebApplicationException?

exception-handling jersey dropwizard

I've created class that implements implements ExceptionMapper<WebApplicationException> and registered it by environment.addProvider(new WebApplicationExceptionMapper());. My custom mapper wor...