Package org.openprovenance.prov.model
Interface SpecializationOf
-
- All Superinterfaces:
Relation
,Statement
,StatementOrBundle
,UnqualifiedRelation
- All Known Subinterfaces:
QualifiedSpecializationOf
- All Known Implementing Classes:
QualifiedSpecializationOf
,SpecializationOf
public interface SpecializationOf extends Relation, UnqualifiedRelation
Interface for PROV Specialization association.
PROV-DM Definition for Specialization: An entity that is a specialization ◊ of another shares all aspects of the latter, and additionally presents more specific aspects of the same thing as the latter. In particular, the lifetime of the entity being specialized contains that of any specialization.
Relevant Factory Methods:
-
ProvFactory.newSpecializationOf(QualifiedName, QualifiedName)
-
ObjectFactory.createSpecializationOf()
Schema Definition:
The following schema fragment specifies the expected content contained within this class.
<complexType name="Specialization"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="specificEntity" type="{http://www.w3.org/ns/prov#}IDRef"/> <element name="generalEntity" type="{http://www.w3.org/ns/prov#}IDRef"/> </sequence> </restriction> </complexContent> </complexType>
- Author:
- lavm
- See Also:
- PROV-DM Specialization, PROV-O specializationOf, PROV-N Specialization, PROV-XML Specialization, PROV-JSON Specialization
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind
-
-
Method Summary
Modifier and Type Method Description QualifiedName
getGeneralEntity()
Returns an identifier of the entity that is being specialized.QualifiedName
getSpecificEntity()
Returns an identifier of the entity that is a specialization of the general entity.void
setGeneralEntity(QualifiedName general)
Mutator for the entity that is being specialized.void
setSpecificEntity(QualifiedName specific)
Mutator for the entity that is a specialization of the general entity.-
Methods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind
-
-
-
-
Method Detail
-
setSpecificEntity
void setSpecificEntity(QualifiedName specific)
Mutator for the entity that is a specialization of the general entity.- Parameters:
specific
- the entity that is a specialization of the general one
-
setGeneralEntity
void setGeneralEntity(QualifiedName general)
Mutator for the entity that is being specialized.- Parameters:
general
- the entity that is being specialized.
-
getGeneralEntity
QualifiedName getGeneralEntity()
Returns an identifier of the entity that is being specialized.- Returns:
QualifiedName
of the entity that is being specialized.
-
getSpecificEntity
QualifiedName getSpecificEntity()
Returns an identifier of the entity that is a specialization of the general entity.- Returns:
QualifiedName
of the entity that is a specialization of the general one.
-
-