public interface WasDerivedFrom extends Identifiable, HasLabel, HasType, HasOther, Influence
Interface for PROV Derivation association.
PROV-DM Definition for Derivation: A derivation is a transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a pre-existing entity.
The constructor method ProvFactory.newWasDerivedFrom(QualifiedName, QualifiedName, QualifiedName) can be used to create an instance of WasDerivedFrom.
The following code snippet creates a new derivation statement, with a type attribute.
The instance of derivation is given an identifier myId.
QualifiedName myId= ... ; // some qualified name QualifiedName effectId= ... ; // some qualified name QualifiedName causeId= ... ; // some qualified name WasDerivedFrom myWasDerivedFrom=provFactory.newWasDerivedFrom(myId,effectId,causeId) myWasDerivedFrom.getType().add(provFactory.newType(Name.PROV_REVISION))
Relevant Factory Methods:
ProvFactory.newWasDerivedFrom(QualifiedName, QualifiedName, QualifiedName)
ObjectFactory.createWasDerivedFrom()
Schema Definition:
The following schema fragment specifies the expected content contained within this class.
<complexType name="Derivation">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="generatedEntity" type="{http://www.w3.org/ns/prov#}IDRef"/>
<element name="usedEntity" type="{http://www.w3.org/ns/prov#}IDRef"/>
<element name="activity" type="{http://www.w3.org/ns/prov#}IDRef" minOccurs="0"/>
<element name="generation" type="{http://www.w3.org/ns/prov#}IDRef" minOccurs="0"/>
<element name="usage" type="{http://www.w3.org/ns/prov#}IDRef" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/prov#}label" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/prov#}type" maxOccurs="unbounded" minOccurs="0"/>
<any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute ref="{http://www.w3.org/ns/prov#}id"/>
</restriction>
</complexContent>
</complexType>
StatementOrBundle.Kind| Modifier and Type | Method and Description |
|---|---|
QualifiedName |
getActivity() |
QualifiedName |
getGeneratedEntity() |
QualifiedName |
getGeneration() |
QualifiedName |
getUsage() |
QualifiedName |
getUsedEntity() |
void |
setActivity(QualifiedName aid) |
void |
setGeneratedEntity(QualifiedName aid1) |
void |
setGeneration(QualifiedName did1) |
void |
setUsage(QualifiedName did2) |
void |
setUsedEntity(QualifiedName aid2) |
getId, setIdgetKindvoid setUsedEntity(QualifiedName aid2)
void setGeneratedEntity(QualifiedName aid1)
void setActivity(QualifiedName aid)
void setGeneration(QualifiedName did1)
void setUsage(QualifiedName did2)
QualifiedName getGeneratedEntity()
QualifiedName getGeneration()
QualifiedName getUsedEntity()
QualifiedName getUsage()
QualifiedName getActivity()
Copyright © 2016. All rights reserved.