public class OWL
extends java.lang.Object
| Constructor and Description |
|---|
OWL()
CONSTRUCTOR : initiate a new OWL
|
OWL(java.lang.String iri,
java.lang.String name)
CONSTRUCTOR : initiate a new OWL
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
boolean b)
AXIOM : Fill a boolean data property of an individual
|
void |
addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
double d)
AXIOM : Fill a double data property of an individual
|
void |
addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
float f)
AXIOM : Fill a float data property of an individual
|
void |
addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
int i)
AXIOM : Fill an integer data property of an individual
|
void |
addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
java.lang.String data)
AXIOM : Fill a string data property of an individual
|
void |
addAxiom(org.semanticweb.owlapi.model.OWLObjectProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
org.semanticweb.owlapi.model.OWLIndividual individual2)
AXIOM: add an object property relation between two individuals
|
void |
addClassBooleanDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
Link an existing OWLAPI data property as boolean attribute with a class
of the ontology
|
void |
addClassDoubleDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
Link an existing OWLAPI data property as double attribute with a class of
the ontology
|
void |
addClassFloatDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
Link an existing OWLAPI data property as float attribute with a class of
the ontology
|
void |
addClassIntegerDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
Link an existing OWLAPI data property as integer attribute with a class
of the ontology
|
void |
addClassObjectProperty(org.semanticweb.owlapi.model.OWLObjectPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass,
org.semanticweb.owlapi.model.OWLClassExpression oTarget)
Link an existing object property with a class of the ontology
|
void |
addClassStringDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
Link an existing OWLAPI data property as string attribute with a class of
the ontology
|
void |
addIndividualToClass(org.semanticweb.owlapi.model.OWLClassExpression oClass,
org.semanticweb.owlapi.model.OWLIndividual oIndividual)
Link an existing OWLAPI individual as instance of a class of the ontology
|
org.semanticweb.owlapi.model.OWLClass |
addOwlClass(java.lang.String className)
Add a new class in the ontology
|
org.semanticweb.owlapi.model.OWLDataProperty |
addOwlDataProperty(java.lang.String propertyName)
Add a new data property in the ontology
|
org.semanticweb.owlapi.model.OWLIndividual |
addOwlIndividual(java.lang.String name)
Add a new individual in the ontology
|
org.semanticweb.owlapi.model.OWLObjectProperty |
addOwlObjectProperty(java.lang.String propertyName)
add a new object property in the ontology
|
void |
addSubClass(org.semanticweb.owlapi.model.OWLClassExpression subClass,
org.semanticweb.owlapi.model.OWLClassExpression parent)
Link two existing OWLAPI classes with a parent-child relation
|
void |
exportOntologyToOWL(java.io.File f)
OWL: write the current ontology is the specified file
|
void |
exportOntologyToOWL(java.io.OutputStream os)
OWL: write the current ontology is the specified stream
|
void |
exportOntologyToOWL(java.lang.String filePath)
OWL: write the current ontology is the specified file
|
void |
exportOntologyToRDF(java.io.File f)
RDF: write the current ontology is the specified file
|
void |
exportOntologyToRDF(java.io.OutputStream os)
RDF: write the current ontology is the specified stream
|
void |
exportOntologyToRDF(java.lang.String filePath)
RDF: write the current ontology is the specified file
|
org.semanticweb.owlapi.model.OWLDataFactory |
getFactory()
GETTER: factory
|
org.semanticweb.owlapi.model.OWLOntologyManager |
getManager()
GETTER: manager
|
org.semanticweb.owlapi.model.OWLOntology |
getOntology()
GETTER: ont
|
org.semanticweb.owlapi.model.IRI |
getOntologyIRI()
GETTER: ontologyIRI
|
void |
loadOntologyFomDocument(java.io.InputStream is)
Load an ontology from the specified stream
|
void |
loadOntologyFromDocument(java.io.File f)
Load an ontology from the specified file
|
void |
loadOntologyFromDocument(org.semanticweb.owlapi.model.IRI iri)
Load an ontology from the specified IRI
|
public OWL(java.lang.String iri,
java.lang.String name)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException
name - the ontology nameorg.semanticweb.owlapi.model.OWLOntologyCreationException - if the ontology cannot be paresd, or
if another problem occurs during the creation on the OWLAPi sidepublic OWL()
public org.semanticweb.owlapi.model.OWLIndividual addOwlIndividual(java.lang.String name)
name - the name of the individualpublic org.semanticweb.owlapi.model.OWLObjectProperty addOwlObjectProperty(java.lang.String propertyName)
propertyName - the name of the propertypublic org.semanticweb.owlapi.model.OWLDataProperty addOwlDataProperty(java.lang.String propertyName)
propertyName - name of the data propertypublic org.semanticweb.owlapi.model.OWLClass addOwlClass(java.lang.String className)
className - name of the conceptpublic void addClassObjectProperty(org.semanticweb.owlapi.model.OWLObjectPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass,
org.semanticweb.owlapi.model.OWLClassExpression oTarget)
oProperty - the OWLAPI object properyyoClass - the OWLAPI class used as domainoTarget - the OWLAPI class used as rangepublic void addClassStringDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
oProperty - the OWLAPI propertyoClass - the OWLAPI class used as domainpublic void addClassIntegerDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
oProperty - the OWLAPI propertyoClass - the OWLAPI class used as domainpublic void addClassBooleanDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
oProperty - the OWLAPI propertyoClass - the OWLAPI class used as domainpublic void addClassDoubleDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
oProperty - the OWLAPI propertyoClass - the OWLAPI class used as domainpublic void addClassFloatDataProperty(org.semanticweb.owlapi.model.OWLDataPropertyExpression oProperty,
org.semanticweb.owlapi.model.OWLClassExpression oClass)
oProperty - the OWLAPI propertyoClass - the OWLAPI class used as domainpublic void addIndividualToClass(org.semanticweb.owlapi.model.OWLClassExpression oClass,
org.semanticweb.owlapi.model.OWLIndividual oIndividual)
oClass - the OWLAPI class used as domainoIndividual - the OWLAPI individualpublic void addSubClass(org.semanticweb.owlapi.model.OWLClassExpression subClass,
org.semanticweb.owlapi.model.OWLClassExpression parent)
subClass - the OWLAPI class used as childparent - the OWLAPI class used as parentpublic void addAxiom(org.semanticweb.owlapi.model.OWLObjectProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
org.semanticweb.owlapi.model.OWLIndividual individual2)
property - The OWLAPI object propertyindividual1 - the OWLAPI individual used as domainindividual2 - the OWLAPI individual used as rangepublic void addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
java.lang.String data)
property - the OWLAPI data property to fillindividual1 - the OWLAPI individual used as domaindata - the value of the string property (range)public void addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
int i)
property - the OWLAPI data property to fillindividual1 - the OWLAPI individual used as domaini - the value of the integer property (range)public void addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
boolean b)
property - the OWLAPI data property to fillindividual1 - the OWLAPI individual used as domainb - the value of the boolean property (range)public void addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
double d)
property - the OWLAPI data property to fillindividual1 - the OWLAPI individual used as domaind - the value of the double property (range)public void addAxiom(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLIndividual individual1,
float f)
property - the OWLAPI data property to fillindividual1 - the OWLAPI individual used as domainf - the value of the float property (range)public void exportOntologyToRDF(java.lang.String filePath)
throws java.io.FileNotFoundException,
org.semanticweb.owlapi.model.OWLOntologyStorageException
filePath - the path of the filejava.io.FileNotFoundException - if an error occurs when accessing the fileorg.semanticweb.owlapi.model.OWLOntologyStorageException - if an error occurs during ontology
export on the OWLAPI sidepublic void exportOntologyToRDF(java.io.File f)
throws java.io.FileNotFoundException,
org.semanticweb.owlapi.model.OWLOntologyStorageException
f - the descriptor of the filejava.io.FileNotFoundException - if an error occurs when accessing the fileorg.semanticweb.owlapi.model.OWLOntologyStorageException - if an error occurs during ontology
export on the OWLAPI sidepublic void exportOntologyToRDF(java.io.OutputStream os)
throws org.semanticweb.owlapi.model.OWLOntologyStorageException
os - the descriptor of the streamorg.semanticweb.owlapi.model.OWLOntologyStorageException - if an error occurs during ontology
export on the OWLAPI sidepublic void exportOntologyToOWL(java.lang.String filePath)
throws java.io.FileNotFoundException,
org.semanticweb.owlapi.model.OWLOntologyStorageException
filePath - the path of the filejava.io.FileNotFoundException - if an error occurs when accessing the fileorg.semanticweb.owlapi.model.OWLOntologyStorageException - if an error occurs during ontology
export on the OWLAPI sidepublic void exportOntologyToOWL(java.io.File f)
throws java.io.FileNotFoundException,
org.semanticweb.owlapi.model.OWLOntologyStorageException
f - the descriptor of the filejava.io.FileNotFoundException - if an error occurs when accessing the fileorg.semanticweb.owlapi.model.OWLOntologyStorageException - if an error occurs during ontology
export on the OWLAPI sidepublic void exportOntologyToOWL(java.io.OutputStream os)
throws org.semanticweb.owlapi.model.OWLOntologyStorageException
os - the descriptor of the streamorg.semanticweb.owlapi.model.OWLOntologyStorageException - if an error occurs during ontology
export on the OWLAPI sidepublic void loadOntologyFromDocument(java.io.File f)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException,
AnonymousOnthologyException
f - the descriptor of the file to loadorg.semanticweb.owlapi.model.OWLOntologyCreationException - if an error occurs when loading the
ontology on OWLAPO sideAnonymousOnthologyException - if an the ontology is
anonymous (no XLMNS tag)AnonymousOnthologyExceptionpublic void loadOntologyFromDocument(org.semanticweb.owlapi.model.IRI iri)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException,
AnonymousOnthologyException
iri - the ontology IRIorg.semanticweb.owlapi.model.OWLOntologyCreationException - if an error occurs when loading the
ontology on OWLAPO sideAnonymousOnthologyException - if an the ontology is
anonymous (no XLMNS tag)AnonymousOnthologyExceptionpublic void loadOntologyFomDocument(java.io.InputStream is)
throws org.semanticweb.owlapi.model.OWLOntologyCreationException,
AnonymousOnthologyException
is - the descriptor of the input streamorg.semanticweb.owlapi.model.OWLOntologyCreationException - if an error occurs when loading the
ontology on OWLAPO sideAnonymousOnthologyException - if an the ontology is
anonymous (no XLMNS tag)AnonymousOnthologyExceptionpublic org.semanticweb.owlapi.model.OWLOntology getOntology()
ontpublic org.semanticweb.owlapi.model.IRI getOntologyIRI()
ontologyIRIpublic org.semanticweb.owlapi.model.OWLDataFactory getFactory()
factorypublic org.semanticweb.owlapi.model.OWLOntologyManager getManager()
manager