2016-06-23 4 views

답변

4

사용

Set<OWLClass> classes = ontology.getClassesInSignature(); 
+0

감사 :

OWLOntologyManager manager = WLManager.createOWLOntologyManager(); OWLOntology ontology = manager.loadOntology(IRI.create(fileURI)); OWLDataFactory owlDF = manager.getOWLDataFactory(); //Example to get ONE class, but I want ALL! OWLClass stringDocuClass = owlDF.getOWLClass(IRI.create("http://example.com/my_ontology.owl#StringDocu")); 

나는 자바 owlapi 4.2.3 (http://owlapi.sourceforge.net/javadoc/ API를 참조)와 함께 일하고 있어요. – tremendows