public interface OWLHelper extends openllet.shared.tools.Logging, OWLManagementObject
| Modifier and Type | Field and Description |
|---|---|
static String |
_caseSeparator |
static boolean |
_debug |
static String |
_delta |
static String |
_entitySeparator |
static String |
_fileExtention |
static String |
_fileExtentionPart |
static org.semanticweb.owlapi.model.OWLDocumentFormat |
_format |
static org.semanticweb.owlapi.util.OWLDocumentFormatFactoryImpl |
_formatFactory |
static String |
_innerSeparator |
static String |
_localProtocol |
static String |
_prefixSeparator |
static String |
_protocol |
static String |
_secureProtocol |
static String |
_webSeparator |
| Modifier and Type | Method and Description |
|---|---|
static org.semanticweb.owlapi.model.IRI |
buildVersion(org.semanticweb.owlapi.model.IRI ontologyIRI,
double version) |
static OWLHelper |
createLightHelper(InputStream inputStream)
When you have finish use this Helper, you must call {dispose() and eventually getGroup().close()}
|
static OWLHelper |
createLightHelper(OpenlletReasoner reasoner)
When you have finish use this Helper, you must call {dispose() and eventually getGroup().close()}
|
static OWLHelper |
createLightHelper(org.semanticweb.owlapi.model.OWLOntology ontology)
When you have finish use this Helper, you must call {dispose() and eventually getGroup().close()}
|
default OWLHelper |
derivate()
Same as derivate but with a version number based on EPOCH time.
|
default OWLHelper |
derivate(double version)
Clone into another ontology with the same axioms and same manager.
|
default Stream<org.semanticweb.owlapi.model.OWLAxiom> |
deserializeAxioms(String input) |
default void |
deserializeAxiomsInto(String input)
Axiom are parsed from the stream then add into the ontology.
|
void |
dispose()
Dispose the reasoner attached to this helper.
|
default String |
getFragment(org.semanticweb.owlapi.model.IRI iri)
This function exist because the one in IRI is deprecated and will be remove : We want the memory of calling it 'fragment' preserved.
|
default String[] |
getNameSpace(String identifier) |
default Optional<org.semanticweb.owlapi.formats.PrefixDocumentFormat> |
getNamespaces() |
default Optional<org.semanticweb.owlapi.model.OWLOntology> |
getOntology(org.semanticweb.owlapi.model.OWLOntologyID ontologyID)
The standard 'getOntology' from the OWLManager don't really take care of versionning.
|
default org.semanticweb.owlapi.model.IRI |
getRootIri() |
default org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> |
getTypes(org.semanticweb.owlapi.model.OWLIndividual ind)
Compute the types of an individual.
|
default double |
getVersion() |
static org.semanticweb.owlapi.model.OWLOntologyID |
getVersion(org.semanticweb.owlapi.model.IRI ontologyIRI,
double version) |
static String |
iri2filename(org.semanticweb.owlapi.model.IRI iri) |
boolean |
isVolatile() |
default Optional<OWLHelper> |
look(org.semanticweb.owlapi.model.IRI ontology) |
default Optional<OWLHelper> |
look(org.semanticweb.owlapi.model.IRI ontology,
double version) |
static String |
ontology2filename(File directory,
org.semanticweb.owlapi.model.OWLOntology ontology) |
static String |
ontology2filename(File directory,
org.semanticweb.owlapi.model.OWLOntologyID ontId) |
default String |
ontologyToString(String msg) |
default StringBuffer |
ontologyToString(StringBuffer buff,
String msg) |
default String |
path(String[] parts) |
default String |
removeFirstLast(String quoteExpression) |
default String[] |
resolvPrefix(String identifier) |
default String |
serializeAxioms() |
static void |
setFormat(org.semanticweb.owlapi.model.OWLOntology ontology)
Add the export format in the configuration of the provided ontology
|
addAxiom, addAxioms, addClass, addClass, addClassPropertyAxiom, addDataPropertyAxiom, addDataPropertyAxiom, addDataPropertyAxiom, addDataPropertyAxiom, addDataPropertyAxiom, addObject, addObject, addObjectPropertyAxiom, addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, declareClass, declareClassOfIndividual, declareDataProperty, declareIndividual, declareIndividual, declareIndividual, declareIndividual, declareIndividual, declareObjectProperty, getObject, getObject, getObjects, getObjects, getValue, getValue, getValues, getValues, individualHaveFacet, isLiteralIncludeInRange, removeAxiom, removeAxioms, removeDataPropertyAxiom, removeDataPropertyAxiom, removeDataPropertyAxiom, removeObjectPropertyAxiom, removeObjectPropertyAxiom, removeObjectPropertyAxiom, toClass, toDataProperty, toIndividual, toObjectProperty, updateObject, updateObject, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValuegetFactorygetGroup, getManagergetOntologygetReasonerstatic final boolean _debug
static final String _protocol
static final String _secureProtocol
static final String _localProtocol
static final String _webSeparator
static final String _prefixSeparator
static final String _entitySeparator
static final String _innerSeparator
static final String _caseSeparator
static final String _fileExtention
static final String _fileExtentionPart
static final String _delta
static final org.semanticweb.owlapi.util.OWLDocumentFormatFactoryImpl _formatFactory
static final org.semanticweb.owlapi.model.OWLDocumentFormat _format
boolean isVolatile()
static void setFormat(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - you consider.static org.semanticweb.owlapi.model.IRI buildVersion(org.semanticweb.owlapi.model.IRI ontologyIRI,
double version)
ontologyIRI - is the id of the ontology without version. The ontology name.version - is the short representation you want for this ontology.static org.semanticweb.owlapi.model.OWLOntologyID getVersion(org.semanticweb.owlapi.model.IRI ontologyIRI,
double version)
ontologyIRI - is the id of the ontology without version. The ontology name.version - is the short representation you want for this ontology.static String iri2filename(org.semanticweb.owlapi.model.IRI iri)
iri - that should be use to generate a filenamestatic String ontology2filename(File directory, org.semanticweb.owlapi.model.OWLOntologyID ontId)
directory - where the ontology will be putontId - is the id the ontology to convert.static String ontology2filename(File directory, org.semanticweb.owlapi.model.OWLOntology ontology)
directory - where the ontology will be putontology - is the ontology from witch we want a namedefault Optional<org.semanticweb.owlapi.formats.PrefixDocumentFormat> getNamespaces()
default org.semanticweb.owlapi.model.IRI getRootIri()
default String getFragment(org.semanticweb.owlapi.model.IRI iri)
default Optional<org.semanticweb.owlapi.model.OWLOntology> getOntology(org.semanticweb.owlapi.model.OWLOntologyID ontologyID)
ontologyID - with version informationdefault double getVersion()
default OWLHelper derivate(double version) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
version - that will have the new ontology.org.semanticweb.owlapi.model.OWLOntologyCreationException - if we can't create the ontology.default OWLHelper derivate() throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException - if we can't create the ontology.default String removeFirstLast(String quoteExpression)
quoteExpression - an expression with " at begin and end.default String path(String[] parts)
parts - of an uridefault String[] resolvPrefix(String identifier)
identifier - to resolvedefault String[] getNameSpace(String identifier)
identifier - of the data.default void deserializeAxiomsInto(String input) throws org.semanticweb.owlapi.model.OWLOntologyCreationException, IOException
input - is a stream of axiomsorg.semanticweb.owlapi.model.OWLOntologyCreationException - if we can't load the ontology.IOException - if there is an problem when reading.default Stream<org.semanticweb.owlapi.model.OWLAxiom> deserializeAxioms(String input) throws org.semanticweb.owlapi.model.OWLOntologyCreationException, IOException
input - is a stream of axiomsorg.semanticweb.owlapi.model.OWLOntologyCreationException - if we can't load the ontology.IOException - if there is an problem when reading.default String serializeAxioms() throws org.semanticweb.owlapi.model.OWLOntologyStorageException, IOException
org.semanticweb.owlapi.model.OWLOntologyStorageException - if we can't store the ontology.IOException - if there is an problem when reading. * @since 1.2default org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getTypes(org.semanticweb.owlapi.model.OWLIndividual ind)
ind - the individual named _or_ anonymousdefault StringBuffer ontologyToString(StringBuffer buff, String msg)
buff - is the target for the axioms rendered in DL syntaxmsg - is insert before and after the axioms to detach it from its background (use "" if you don't know what to do with that).default String ontologyToString(String msg)
msg - is insert before and after the axioms to detach it from its background (use "" if you don't know what to do with that).void dispose()
static OWLHelper createLightHelper(org.semanticweb.owlapi.model.OWLOntology ontology)
ontology - an already build ontology.static OWLHelper createLightHelper(InputStream inputStream)
ontology - an already build ontology.static OWLHelper createLightHelper(OpenlletReasoner reasoner)
ontology - an already build ontology.Copyright © 2018. All rights reserved.