public class Ontology
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
maxNewPropertiesByClass
Determine the maximal data properties number which can be added on the
same concept in one processing
|
static double |
multiPropertyProbability
Probability used to randomly determine if a new data property will be
added to a concept in the ontology, if one or many properties as already
been added on this specific concept
|
static double |
newPropertyProbability
Probability used to randomly determine if a new data property will be
added to a concept in the ontology
|
static java.lang.String |
R_BOOLEAN_PROPERTY
Key words used to identify a boolean as data property
|
static java.lang.String |
R_DOUBLE_PROPERTY
Key words used to identify a double as data property
|
static java.lang.String |
R_FLOAT_PROPERTY
Key words used to identify a float as data property
|
static java.lang.String |
R_INTEGER_PROPERTY
Key words used to identify an integer as data property
|
static java.lang.String |
R_STRING_PROPERTY
Key words used to identify a string as data property
|
| Constructor and Description |
|---|
Ontology() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,TClass> |
getClasses()
GETTER : classes
|
int |
getNbBooleanProperty()
GETTER : nbBooleanProperty
|
int |
getNbDoubleProperty()
GETTER : nbDoubleProperty
|
int |
getNbFloatProperty()
GETTER : nbFloatProperty
|
int |
getNbIntegerProperty()
GETTER : nbIntegerProperty
|
int |
getNbStringProperty()
GETTER : nbStringProperty
|
java.lang.String |
getOntologyFilePath()
GETTER : ontologyFilePath
|
OWL |
getOwl()
GETTER : owl
|
long |
instanceGeneratorProcedure(java.io.File inputFile,
java.io.File outputFile,
long minInstances,
long maxInstances,
boolean useMaterialization,
int numberOfThread)
Launch the Generation of the instances, by taking into account the
different parameters.
|
void |
loadOntologyFromFile(java.io.File f)
This function uses OWLAPI to load an ontology from a specified file
|
void |
setClasses(java.util.Map<java.lang.String,TClass> classes)
SETTER : classes
|
void |
setNbBooleanProperty(int nbBooleanProperty)
SETTER: nbBooleanProperty
|
void |
setNbDoubleProperty(int nbDoubleProperty)
SETTER: nbDoubleProperty
|
void |
setNbFloatProperty(int nbFloatProperty)
SETTER: nbFloatProperty
|
void |
setNbIntegerProperty(int nbIntegerProperty)
SETTER: nbIntegerProperty
|
void |
setNbStringProperty(int nbStringProperty)
SETTER: nbStringProperty
|
void |
setOntologyFilePath(java.lang.String ontologyFilePath)
SETTER : ontologyFilePath
|
void |
setOwl(OWL owl)
SETTER : owl
|
public static final java.lang.String R_STRING_PROPERTY
public static final java.lang.String R_BOOLEAN_PROPERTY
public static final java.lang.String R_DOUBLE_PROPERTY
public static final java.lang.String R_FLOAT_PROPERTY
public static final java.lang.String R_INTEGER_PROPERTY
public static final double newPropertyProbability
public static final double multiPropertyProbability
public static final int maxNewPropertiesByClass
public long instanceGeneratorProcedure(java.io.File inputFile,
java.io.File outputFile,
long minInstances,
long maxInstances,
boolean useMaterialization,
int numberOfThread)
throws java.io.IOException,
AnonymousOnthologyException,
org.semanticweb.owlapi.model.OWLOntologyCreationException
inputFile - (File) input ontology file (must exist)outputFile - (File) Output instances file, will be created if not
exists, replaced elseminInstances - The number of instances per class to generatemaxInstances - The maximal number of instances per class to
generate. If more than minInstances, a random number between both
will be chosenuseMaterialization - (bool) Determine if the materialization will be
used during the generation numberOfThread - 1 will launch the treatment in a single thread, but
all other numbers will start the default multithreading treatmentjava.io.IOException - if an error occurs while reading or writing in a fileAnonymousOnthologyException - if the ontology is anonymous (no
XLMNS)org.semanticweb.owlapi.model.OWLOntologyCreationException - if an OWLAPI internal error occurs
wile reading the ontology filepublic void loadOntologyFromFile(java.io.File f)
throws AnonymousOnthologyException,
org.semanticweb.owlapi.model.OWLOntologyCreationException
f - (File) The path to the ontology file to loadAnonymousOnthologyException - if the ontology is anonymous (no
XLMNS)org.semanticweb.owlapi.model.OWLOntologyCreationException - if an OWLAPI internal error occurs
wile reading the ontology filepublic java.util.Map<java.lang.String,TClass> getClasses()
classespublic void setClasses(java.util.Map<java.lang.String,TClass> classes)
classes - classespublic java.lang.String getOntologyFilePath()
ontologyFilePathpublic void setOntologyFilePath(java.lang.String ontologyFilePath)
ontologyFilePath - ontologyFilePathpublic int getNbStringProperty()
nbStringPropertypublic void setNbStringProperty(int nbStringProperty)
nbStringProperty - nbStringPropertypublic int getNbBooleanProperty()
nbBooleanPropertypublic void setNbBooleanProperty(int nbBooleanProperty)
nbBooleanProperty - nbBooleanPropertypublic int getNbFloatProperty()
nbFloatPropertypublic void setNbFloatProperty(int nbFloatProperty)
nbFloatProperty - nbFloatPropertypublic int getNbDoubleProperty()
nbDoublePropertypublic void setNbDoubleProperty(int nbDoubleProperty)
nbDoubleProperty - nbDoublePropertypublic int getNbIntegerProperty()
nbIntegerPropertypublic void setNbIntegerProperty(int nbIntegerProperty)
nbIntegerProperty - nbIntegerProperty