swrlapi

SWRL rules creation in OWLAPI ontology

萝らか妹 提交于 2019-12-23 05:08:48
问题 I have run (in Neatbeans 8.2) the following simple java code, in order to experiment with SWRL language: String base = "http://www.prova/testont.owl"; IRI ontologyIRI = IRI.create(base); OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); OWLOntology ontology = manager.createOntology(ontologyIRI); OWLDataFactory factory = manager.getOWLDataFactory(); OWLClass adult = factory.getOWLClass(IRI.create(ontologyIRI + "#Adult")); OWLClass person = factory.getOWLClass(IRI.create