String rule = "PREFIX var http://kres.iksproject.eu/rules# ."
+ "PREFIX dbs http://andriry.altervista.org/tesiSpecialistica/dbs_l1.owl# ."
+ "PREFIX lmm http://www.ontologydesignpatterns.org/ont/lmm/LMM_L1.owl# ."
+ "rule1[dbs:Table(?x) -> lmm:Meaning(?x)]";
OWLNamedIndividual ontoind = factory.getOWLNamedIndividual(IRI.create(ID + "MyRuleX"));
OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom(ontocls, ontoind);
owlmanager.addAxiom(owlmodel, classAssertion);
OWLDataProperty dataprop = factory.getOWLDataProperty(IRI.create(ID + "hasDescription"));
OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(dataprop,
ontoind, "My comment to the rule X");
owlmanager.addAxiom(owlmodel, dataPropAssertion);