@Test
public void testAxiomConverterRules3() {
KnowledgeBase kb = new KnowledgeBase();
OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
OWLDataFactory df = manager.getOWLDataFactory();
AxiomConverter converter = new AxiomConverter( kb, df );
ATermAppl p = ATermUtils.makeTermAppl( "p" );
ATermAppl q = ATermUtils.makeTermAppl( "q" );
ATermAppl x = ATermUtils.makeVar( "x" );
ATermAppl y = ATermUtils.makeVar( "y" );
kb.addObjectProperty( p );
kb.addObjectProperty( q );
ATermAppl[] head = new ATermAppl[] { ATermUtils.makePropAtom( q, x, y ) };
ATermAppl[] body = new ATermAppl[] { ATermUtils.makePropAtom( p, x, y ) };
ATermAppl rule = ATermUtils.makeRule( head, body );
OWLAxiom actual = converter.convert( rule );
Set<SWRLAtom<?>> antecedent = new HashSet<SWRLAtom<?>>();
Set<SWRLAtom<?>> consequent = new HashSet<SWRLAtom<?>>();
antecedent.add( propertyAtom( ObjectProperty( "p" ), iVariable( "x" ), iVariable( "y" ) ) );