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 );
}
else {