public class Individual
extends java.lang.Object
| Constructor and Description |
|---|
Individual(java.lang.String onthology_iri,
java.lang.String class_name,
java.lang.String instance_name)
CONSTRUCTOR : Initiate a new individual
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBooleanAttribute(java.lang.String name,
java.lang.Boolean value)
Add a new boolean data property in the data properties array
|
void |
addDoubleAttribute(java.lang.String name,
java.lang.Double value)
Add a new double data property in the data properties array
|
void |
addFloatAttribute(java.lang.String name,
java.lang.Float value)
Add a new float data property in the data properties array
|
void |
addIntegerAttribute(java.lang.String name,
java.lang.Integer value)
Add a new integer data property in the data properties array
|
void |
addObjectProperty(java.lang.String name,
java.lang.String targetIRI)
Add a new object property in the object properties array of this
individual
|
void |
addRandomBooleanAttribute(java.lang.String name)
Add a new boolean data property in the data properties array, and
automatically gives a random value to this property
|
void |
addRandomDoubleAttribute(java.lang.String name)
Add a new double data property in the data properties array, and
automatically gives a full random value to this property
|
void |
addRandomDoubleAttribute(java.lang.String name,
double min,
double max)
Add a new double data property in the data properties array
The value will be randomly determined by using few predefined parameters |
void |
addRandomFloatAttribute(java.lang.String name)
Add a new float data property in the data properties array, and
automatically gives a full random value to this property
|
void |
addRandomFloatAttribute(java.lang.String name,
float min,
float max)
Add a new string data property in the data properties array
The value will be randomly determined by using few predefined parameters |
void |
addRandomIntegerAttribute(java.lang.String name)
Add a new integer data property in the data properties array, and
automatically gives a full random value to this property
|
void |
addRandomIntegerAttribute(java.lang.String name,
int min,
int max)
Add a new Integer data property in the data properties array
The value will be randomly determined by using few predefined parameters |
void |
addRandomStringAttribute(java.lang.String name)
Add a new string data property in the data properties array, and
automatically gives a full random value to this property
|
void |
addRandomStringAttribute(java.lang.String name,
int minlength,
int maxlength,
boolean useUpperCase,
boolean useNumbers,
boolean firstCharIsAnUpperCase)
Add a new string data property in the data properties array
The value will be randomly determined by using few predefined parameters |
void |
addRandomTypedAttribute(java.lang.String name,
DataType type)
Add a new data property in the data properties array
The value will be randomly determined, depending of the property type |
void |
addStringAttribute(java.lang.String name,
java.lang.String value)
Add a new string data property in the data properties array
|
java.lang.String |
getClass_name()
GETTER: class_name
|
java.lang.String |
getInstance_name()
GETTER: instance_name
|
java.lang.String |
getOnthology_iri()
GETTER: onthology_iri
|
java.lang.String |
getRDFValue(boolean useMaterialization)
Get the RDF syntax corresponding to this Individual
|
void |
setSuperClassesIRI(java.util.Set<org.semanticweb.owlapi.model.IRI> superClassesIRI)
SETTER: superClassesIRI
|
public Individual(java.lang.String onthology_iri,
java.lang.String class_name,
java.lang.String instance_name)
onthology_iri - the name of the IRIclass_name - the name of the conceptinstance_name - the identifier of the individualpublic void addStringAttribute(java.lang.String name,
java.lang.String value)
name - the name of the propertyvalue - the value of the propertydataPropertiespublic void addIntegerAttribute(java.lang.String name,
java.lang.Integer value)
name - the name of the propertyvalue - the value of the propertydataPropertiespublic void addBooleanAttribute(java.lang.String name,
java.lang.Boolean value)
name - the name of the propertyvalue - the value of the propertydataPropertiespublic void addDoubleAttribute(java.lang.String name,
java.lang.Double value)
name - the name of the propertyvalue - the value of the propertydataPropertiespublic void addFloatAttribute(java.lang.String name,
java.lang.Float value)
name - the name of the propertyvalue - the value of the propertydataPropertiespublic void addRandomStringAttribute(java.lang.String name)
name - the name of the propertydataPropertiespublic void addRandomStringAttribute(java.lang.String name,
int minlength,
int maxlength,
boolean useUpperCase,
boolean useNumbers,
boolean firstCharIsAnUpperCase)
name - the name of the propertyminlength - the minimum size of the string to generatemaxlength - the maximal size of the string to generateuseUpperCase - determines if the String can contain Uppercase
characters or notuseNumbers - determines if the string can contain numbers or nofirstCharIsAnUpperCase - determine if the first character must be in
uppercase or notdataPropertiespublic void addRandomIntegerAttribute(java.lang.String name)
name - the name of the propertydataPropertiespublic void addRandomIntegerAttribute(java.lang.String name,
int min,
int max)
name - the name of the propertymin - minimal range of the integermax - maximal range of the integerdataPropertiespublic void addRandomBooleanAttribute(java.lang.String name)
name - the name of the propertydataPropertiespublic void addRandomDoubleAttribute(java.lang.String name)
name - the name of the propertydataPropertiespublic void addRandomDoubleAttribute(java.lang.String name,
double min,
double max)
name - the name of the propertymin - the minimal range of the doublemax - the maximal range of the doubledataPropertiespublic void addRandomFloatAttribute(java.lang.String name)
name - the name of the propertydataPropertiespublic void addRandomFloatAttribute(java.lang.String name,
float min,
float max)
name - the name of the propertymin - the minimal range of the floatmax - the maximal range of the floatdataPropertiespublic void addRandomTypedAttribute(java.lang.String name,
DataType type)
name - the name of the propertytype - (DataType) the type of the propertyDataType,
dataPropertiespublic void addObjectProperty(java.lang.String name,
java.lang.String targetIRI)
name - the name of the propertytargetIRI - objectPropertiespublic java.lang.String getOnthology_iri()
onthology_iripublic java.lang.String getInstance_name()
instance_namepublic java.lang.String getClass_name()
class_namepublic void setSuperClassesIRI(java.util.Set<org.semanticweb.owlapi.model.IRI> superClassesIRI)
superClassesIRI - superClassesIRIpublic java.lang.String getRDFValue(boolean useMaterialization)
useMaterialization - determines if the references to super classes
must appear in the RDf output