public class OntologyOwlApi extends Object
| Constructor and Description |
|---|
OntologyOwlApi(org.semanticweb.owlapi.model.OWLOntology ontology,
List<org.semanticweb.owlapi.model.OWLOntology> loadedOntologies,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
Creates a new
OntologyOwlApi instance. |
| Modifier and Type | Method and Description |
|---|---|
List<org.semanticweb.owlapi.model.OWLAnnotationProperty> |
getAllAnnotationProperties()
Get all annotation properties from the ontology
|
List<org.semanticweb.owlapi.model.OWLClass> |
getAllClasses()
Get all classes from the ontology.
|
List<org.semanticweb.owlapi.model.OWLDataProperty> |
getAllDataProperties()
Get all data properties from the ontology
|
List<org.semanticweb.owlapi.model.OWLNamedIndividual> |
getAllIndividuals()
Get all individuals from the ontology
|
List<org.semanticweb.owlapi.model.OWLObjectProperty> |
getAllObjectProperties()
Get all object properties from the ontology
|
List<org.semanticweb.owlapi.model.OWLOntology> |
getLoadedOntologies() |
org.semanticweb.owlapi.model.OWLOntology |
getOntology() |
org.semanticweb.owlapi.model.OWLOntologyManager |
getOntologyManager() |
org.semanticweb.owlapi.reasoner.OWLReasoner |
getReasoner() |
static OntologyOwlApi |
loadOntologies(List<Path> ontologyFiles)
Load the provided ontologies.
|
static OntologyOwlApi |
loadOntologies(String[] ontologyFiles)
Load the provided ontologies.
|
public OntologyOwlApi(org.semanticweb.owlapi.model.OWLOntology ontology,
List<org.semanticweb.owlapi.model.OWLOntology> loadedOntologies,
org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
OntologyOwlApi instance.ontology - The ontology to use.loadedOntologies - All loaded ontologies.ontologyManager - The ontology manager for accessing the ontology.reasoner - A reasoner for the ontology.public static OntologyOwlApi loadOntologies(String[] ontologyFiles) throws OntologyLoadingException
ontologyFiles - The OWL files to load. The files must be in the
correct order so that imports in the OWL files can
be resolved.OntologyOwlApi instance.OntologyLoadingExceptionpublic static OntologyOwlApi loadOntologies(List<Path> ontologyFiles) throws OntologyLoadingException
ontologyFiles - The OWL files to load. The files must be in the
correct order so that imports in the OWL files can
be resolved.OntologyOwlApi instance.OntologyLoadingExceptionpublic org.semanticweb.owlapi.model.OWLOntology getOntology()
public List<org.semanticweb.owlapi.model.OWLOntology> getLoadedOntologies()
public org.semanticweb.owlapi.model.OWLOntologyManager getOntologyManager()
public org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner()
public List<org.semanticweb.owlapi.model.OWLClass> getAllClasses()
public List<org.semanticweb.owlapi.model.OWLObjectProperty> getAllObjectProperties()
public List<org.semanticweb.owlapi.model.OWLDataProperty> getAllDataProperties()
public List<org.semanticweb.owlapi.model.OWLNamedIndividual> getAllIndividuals()
public List<org.semanticweb.owlapi.model.OWLAnnotationProperty> getAllAnnotationProperties()
Copyright © 2020 Jens Pelzetter. All rights reserved.