.convert( (ATermAppl) term.getArgument( 0 ) );
if( p != null )
axiom = factory.getOWLObjectPropertyRangeAxiom( p, (OWLDescription) e );
}
else {
OWLDataProperty p = (OWLDataProperty) conceptConverter
.convert( (ATermAppl) term.getArgument( 0 ) );
if( p != null )
axiom = factory.getOWLDataPropertyRangeAxiom( p, (OWLDataRange) e );
}
}
}
else if( term.getAFun().equals( ATermUtils.INVPROPFUN ) ) {
OWLObjectProperty p1 = (OWLObjectProperty) conceptConverter.convert( (ATermAppl) term
.getArgument( 0 ) );
OWLObjectProperty p2 = (OWLObjectProperty) conceptConverter.convert( (ATermAppl) term
.getArgument( 1 ) );
if( p1 != null && p2 != null )
axiom = factory.getOWLInverseObjectPropertiesAxiom( p1, p2 );
}
else if( term.getAFun().equals( ATermUtils.TRANSITIVEFUN ) ) {
OWLObjectProperty p = (OWLObjectProperty) conceptConverter.convert( (ATermAppl) term
.getArgument( 0 ) );
if( p != null )
axiom = factory.getOWLTransitiveObjectPropertyAxiom( p );
}
else if( term.getAFun().equals( ATermUtils.FUNCTIONALFUN ) ) {
OWLObject p = conceptConverter.convert( (ATermAppl) term.getArgument( 0 ) );
if( p != null ) {
if( p instanceof OWLObjectProperty )
axiom = factory
.getOWLFunctionalObjectPropertyAxiom( (OWLObjectPropertyExpression) p );
else if( p instanceof OWLDataProperty )
axiom = factory
.getOWLFunctionalDataPropertyAxiom( (OWLDataPropertyExpression) p );
}
}
else if( term.getAFun().equals( ATermUtils.INVFUNCTIONALFUN ) ) {
OWLObjectProperty p = (OWLObjectProperty) conceptConverter.convert( (ATermAppl) term
.getArgument( 0 ) );
if( p != null )
axiom = factory.getOWLInverseFunctionalObjectPropertyAxiom( p );
}
else if( term.getAFun().equals( ATermUtils.SYMMETRICFUN ) ) {
OWLObject p = conceptConverter.convert( (ATermAppl) term.getArgument( 0 ) );
if( p != null && p instanceof OWLObjectPropertyExpression )
axiom = factory
.getOWLSymmetricObjectPropertyAxiom( (OWLObjectPropertyExpression) p );
}
else if( term.getAFun().equals( ATermUtils.ASYMMETRICFUN ) ) {
OWLObject p = conceptConverter.convert( (ATermAppl) term.getArgument( 0 ) );
if( p != null && p instanceof OWLObjectPropertyExpression )
axiom = factory
.getOWLAntiSymmetricObjectPropertyAxiom( (OWLObjectPropertyExpression) p );
}
else if( term.getAFun().equals( ATermUtils.REFLEXIVEFUN ) ) {
OWLObject p = conceptConverter.convert( (ATermAppl) term.getArgument( 0 ) );
if( p != null && p instanceof OWLObjectPropertyExpression )
axiom = factory
.getOWLReflexiveObjectPropertyAxiom( (OWLObjectPropertyExpression) p );
}
else if( term.getAFun().equals( ATermUtils.IRREFLEXIVEFUN ) ) {
OWLObject p = conceptConverter.convert( (ATermAppl) term.getArgument( 0 ) );
if( p != null && p instanceof OWLObjectPropertyExpression )
axiom = factory
.getOWLIrreflexiveObjectPropertyAxiom( (OWLObjectPropertyExpression) p );
}
else if( term.getAFun().equals( ATermUtils.TYPEFUN ) ) {
OWLIndividual i = (OWLIndividual) conceptConverter.convert( (ATermAppl) term
.getArgument( 0 ) );
OWLDescription c = (OWLDescription) conceptConverter.convert( (ATermAppl) term
.getArgument( 1 ) );
if( i != null && c != null )
axiom = factory.getOWLClassAssertionAxiom( i, c );
}
else if( term.getAFun().equals( ATermUtils.PROPFUN ) ) {
OWLIndividual subj = (OWLIndividual) conceptConverter.convert( (ATermAppl) term.getArgument( 1 ) );
if( subj == null )
axiom = null;
else if( ATermUtils.isLiteral( (ATermAppl) term.getArgument( 2 ) ) ) {
OWLDataProperty pred = (OWLDataProperty) conceptConverter.convert( (ATermAppl) term
.getArgument( 0 ) );
OWLConstant obj = (OWLConstant) conceptConverter.convert( (ATermAppl) term
.getArgument( 2 ) );
if( pred != null && obj != null )
axiom = factory.getOWLDataPropertyAssertionAxiom( subj, pred, obj );
}
else {
OWLObjectProperty pred = (OWLObjectProperty) conceptConverter
.convert( (ATermAppl) term.getArgument( 0 ) );
OWLIndividual obj = (OWLIndividual) conceptConverter.convert( (ATermAppl) term.getArgument( 2 ) );
if( pred != null && obj != null )
axiom = factory.getOWLObjectPropertyAssertionAxiom( subj, pred, obj );
}
}
else if( term.getAFun().equals( ATermUtils.NOTFUN )
&& ((ATermAppl) term.getArgument( 0 )).getAFun().equals( ATermUtils.PROPFUN ) ) {
term = (ATermAppl) term.getArgument( 0 );
OWLIndividual subj = (OWLIndividual) conceptConverter.convert( (ATermAppl) term
.getArgument( 1 ) );
if( subj == null )
axiom = null;
else if( ATermUtils.isLiteral( (ATermAppl) term.getArgument( 2 ) ) ) {
OWLDataProperty pred = (OWLDataProperty) conceptConverter.convert( (ATermAppl) term
.getArgument( 0 ) );
OWLConstant obj = (OWLConstant) conceptConverter.convert( (ATermAppl) term
.getArgument( 2 ) );
if( pred != null && obj != null )
axiom = factory.getOWLNegativeDataPropertyAssertionAxiom( subj, pred, obj );