Package it.poliba.sisinflab.tinyme
Class DataFactory
java.lang.Object
it.poliba.sisinflab.tinyme.DataFactory
public final class DataFactory extends Object
Point to create instances of model classes referenced throughout the API.
-
Method Summary
Modifier and Type Method Description AtomicConcept
copy(AtomicConcept concept)
Copies the specified atomic concept.CardinalityRole
copy(CardinalityRole role)
Copies the specified cardinality role.<T extends OWLEntity>
EntityDescription<T>copy(EntityDescription<T> desc)
Copies the specified entity description.SemanticDescription
copy(SemanticDescription desc)
Copies the specified semantic description.UniversalRole
copy(UniversalRole role)
Copies the specified value restriction.OWLClass
getOWLClass(IRI iri)
Gets an OWL class that has the specified IRI.OWLNamedIndividual
getOWLNamedIndividual(IRI iri)
Gets an OWL individual that has the specified IRI.OWLObjectProperty
getOWLObjectProperty(IRI iri)
Gets an OWL object property that has the specified IRI.AtomicConcept
newAtomicConcept(IRI iri)
Refer tonewAtomicConcept(OWLClass)
.AtomicConcept
newAtomicConcept(OWLClass owlClass)
Creates a new atomic concept that represents the specified OWL class.CardinalityRole
newCardinalityRole(IRI iri, long cardinality)
CardinalityRole
newCardinalityRole(OWLObjectProperty property, long cardinality)
Creates a new cardinality role.EntityDescription<OWLClass>
newClassDescription(IRI iri)
Refer tonewDescription(OWLEntity)
.SemanticDescription
newDescription()
Creates a new semantic description.<T extends OWLEntity>
EntityDescription<T>newDescription(T entity)
Creates a new entity description.EntityDescription<OWLNamedIndividual>
newIndividualDescription(IRI iri)
Refer tonewDescription(OWLEntity)
.UniversalRole
newUniversalRole(IRI iri, SemanticDescription filler)
UniversalRole
newUniversalRole(OWLObjectProperty property, SemanticDescription filler)
Creates a new value restriction.
-
Method Details
-
getOWLClass
Gets an OWL class that has the specified IRI.- Parameters:
iri
- IRI of the class.- Returns:
- Class that has the specified IRI.
-
getOWLObjectProperty
Gets an OWL object property that has the specified IRI.- Parameters:
iri
- IRI of the object property.- Returns:
- Property that has the specified IRI.
-
getOWLNamedIndividual
Gets an OWL individual that has the specified IRI.- Parameters:
iri
- IRI of the individual.- Returns:
- Individual that has the specified IRI.
-
newAtomicConcept
Creates a new atomic concept that represents the specified OWL class.- Parameters:
owlClass
- OWL class.- Returns:
- New atomic concept instance.
-
newAtomicConcept
Refer tonewAtomicConcept(OWLClass)
.- Parameters:
iri
- IRI of the OWL class.- Returns:
- New atomic concept instance.
-
newCardinalityRole
Creates a new cardinality role.- Parameters:
property
- Object property.cardinality
- Cardinality.- Returns:
- New cardinality role instance.
-
newCardinalityRole
- Parameters:
iri
- IRI of the object property.cardinality
- Cardinality.- Returns:
- New cardinality role instance.
-
newUniversalRole
Creates a new value restriction.- Parameters:
property
- Object property.filler
- Filler of the value restriction.- Returns:
- New value restriction instance.
-
newUniversalRole
- Parameters:
iri
- IRI of the object property.filler
- Filler of the value restriction.- Returns:
- New value restriction instance.
-
newDescription
Creates a new semantic description.- Returns:
- New semantic description instance.
-
newDescription
Creates a new entity description.- Type Parameters:
T
- Specific OWLEntity type.- Parameters:
entity
- Entity the description should refer to.- Returns:
- New entity description instance.
-
newIndividualDescription
Refer tonewDescription(OWLEntity)
.- Parameters:
iri
- IRI of the individual.- Returns:
- New entity description instance.
-
newClassDescription
Refer tonewDescription(OWLEntity)
.- Parameters:
iri
- IRI of the class.- Returns:
- New entity description instance.
-
copy
Copies the specified atomic concept.- Parameters:
concept
- Concept to copy.- Returns:
- Copy of the atomic concept.
-
copy
Copies the specified cardinality role.- Parameters:
role
- Cardinality role to copy.- Returns:
- Copy of the cardinality role.
-
copy
Copies the specified value restriction.- Parameters:
role
- Value restriction to copy.- Returns:
- Copy of the value restriction.
-
copy
Copies the specified semantic description.- Parameters:
desc
- Semantic description to copy.- Returns:
- Copy of the semantic description.
-
copy
Copies the specified entity description.- Type Parameters:
T
- Specific OWLEntity type.- Parameters:
desc
- Entity description to copy.- Returns:
- Copy of the entity description.
-