public static class MORAxioms.DataSemantic extends java.lang.Object implements Semantic.SemanticAxiom<org.semanticweb.owlapi.model.OWLDataProperty,org.semanticweb.owlapi.model.OWLLiteral>
Semantic.SemanticAxiom
for ontological data properties.
This class is a container for all the same data properties applied to an individual
(with related values). In particular, the getSemantic()
is a specific
property, while getValues()
represents a set of values linked with the
above property to a Semantic.Ground
, not specified here.
For this class, the literals (getValues()
) are of the MORAxioms.Literals
type.
Constructor and Description |
---|
DataSemantic()
|
DataSemantic(int initialCapacity)
Initialise this object to have
null getSemantic() and set of literals getValues()
with specified size and load factory. |
DataSemantic(int initialCapacity,
float loadFactor)
Initialise this object to have
null getSemantic() and set of literals getValues()
with specified size and load factory. |
DataSemantic(java.util.Collection<? extends org.semanticweb.owlapi.model.OWLLiteral> c)
|
DataSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic)
Initialise this object to a specific
getSemantic() and empty getValues() . |
DataSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic,
int initialCapacity)
Initialise this object to have a specific
getSemantic() and set of literals getValues()
with specified size and load factory. |
DataSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic,
int initialCapacity,
float loadFactor)
Initialise this object to have a specific
getSemantic() and set of literals getValues()
with specified size and load factory. |
DataSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic,
java.util.Collection<? extends org.semanticweb.owlapi.model.OWLLiteral> c)
Initialise this object to have a specific
getSemantic() and a given set of literal (getValues() ). |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
MORAxioms.DataSemantic |
getNewData(java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> values)
It should create a new instance of this object that preserve
the
semantic but assign new values to it. |
org.semanticweb.owlapi.model.OWLDataProperty |
getSemantic()
Represents the semantic (i.e.: data or object property)
that aggregates all
Semantic.SemanticAxiom.getValues() (i.e.: Semantic.Axioms ). |
MORAxioms.Literals |
getValues()
Represents the
Semantic.Axioms of this container. |
int |
hashCode() |
void |
setSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic)
Set the semantic (i.e.: data property) for all the
getValues() |
java.lang.String |
toString() |
public DataSemantic()
public DataSemantic(int initialCapacity)
null
getSemantic()
and set of literals getValues()
with specified size and load factory.initialCapacity
- the initial size of the literals HashSet
.public DataSemantic(int initialCapacity, float loadFactor)
null
getSemantic()
and set of literals getValues()
with specified size and load factory.initialCapacity
- the initial size of the literals HashSet
.loadFactor
- the load factor of the literals HashSet
.public DataSemantic(java.util.Collection<? extends org.semanticweb.owlapi.model.OWLLiteral> c)
c
- the initial set of literals to assign to this
Semantic.SemanticAxiom
.public DataSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic)
getSemantic()
and empty getValues()
.semantic
- the initial semantic of this Semantic.SemanticAxiom
.public DataSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic, int initialCapacity)
getSemantic()
and set of literals getValues()
with specified size and load factory.semantic
- the initial semantic of this Semantic.SemanticAxiom
.initialCapacity
- the initial size of the literals HashSet
.public DataSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic, int initialCapacity, float loadFactor)
getSemantic()
and set of literals getValues()
with specified size and load factory.semantic
- the initial semantic of this Semantic.SemanticAxiom
.initialCapacity
- the initial size of the literals HashSet
.loadFactor
- the load factor of the literals HashSet
.public DataSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic, java.util.Collection<? extends org.semanticweb.owlapi.model.OWLLiteral> c)
getSemantic()
and a given set of literal (getValues()
).semantic
- the initial semantic of this Semantic.SemanticAxiom
.c
- the initial set of literals to assign to this
Semantic.SemanticAxiom
.public org.semanticweb.owlapi.model.OWLDataProperty getSemantic()
Semantic.SemanticAxiom
Semantic.SemanticAxiom.getValues()
(i.e.: Semantic.Axioms
).getSemantic
in interface Semantic.SemanticAxiom<org.semanticweb.owlapi.model.OWLDataProperty,org.semanticweb.owlapi.model.OWLLiteral>
Semantic.Axioms
described in this
container.public void setSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic)
getValues()
semantic
- the semantic described by this
container.public MORAxioms.Literals getValues()
Semantic.SemanticAxiom
Semantic.Axioms
of this container.
All those values are described by the same Semantic.SemanticAxiom.getSemantic()
.getValues
in interface Semantic.SemanticAxiom<org.semanticweb.owlapi.model.OWLDataProperty,org.semanticweb.owlapi.model.OWLLiteral>
this
container.public MORAxioms.DataSemantic getNewData(java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> values)
Semantic.SemanticAxiom
semantic
but assign new values to it.
It is used during synchronisation by Semantic.SemanticAxioms.SynchronisationMultiIntent
.getNewData
in interface Semantic.SemanticAxiom<org.semanticweb.owlapi.model.OWLDataProperty,org.semanticweb.owlapi.model.OWLLiteral>
values
- the new data to be assigned to the same semantic.Semantic.SemanticAxiom.getSemantic()
but new values.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object