}
public void run() {
propertyName = options.getOption( "property" ).getValueAsString();
OWLAPILoader loader = new OWLAPILoader();
KnowledgeBase kb = loader.createKB( getInputFiles() );
OWLEntity entity = OntologyUtils.findEntity( propertyName, loader.getAllOntologies() );
if( entity == null )
throw new PelletCmdException( "Property not found: " + propertyName );
if( !(entity instanceof OWLObjectProperty) )
throw new PelletCmdException( "Not an object property: " + propertyName );
if( !((OWLObjectProperty) entity).isTransitive( loader.getAllOntologies() ) )
throw new PelletCmdException( "Not a transitive property: " + propertyName );
ATermAppl p = ATermUtils.makeTermAppl( entity.getIRI().toString() );
ATermAppl c = null;
boolean filter = false;
if(options.getOption( "filter" ).exists())
{
String filterName = options.getOption( "filter" ).getValueAsString();
OWLEntity filterClass = OntologyUtils.findEntity( filterName, loader.getAllOntologies() );
if(filterClass == null)
throw new PelletCmdException( "Filter class not found: " + filterName );
if(!(filterClass instanceof OWLClass))
throw new PelletCmdException( "Not a class: " + filterName );