SWRL rules creation in OWLAPI ontology
问题 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