- All Superinterfaces:
HasLabel,HasOther,HasType,Identifiable,Influence,QualifiedRelation,Relation,Statement,StatementOrBundle
- All Known Implementing Classes:
ActedOnBehalfOf
Interface for the PROV Delegation association.
PROV-DM Definition for Delegation: Delegation is the assignment of authority and responsibility to an agent (by itself or by another agent) to carry out a specific activity as a delegate or representative, while the agent it acts on behalf of retains some responsibility for the outcome of the delegated work.
Relevant Factory Methods:
-
ProvFactory.newActedOnBehalfOf(QualifiedName, QualifiedName, QualifiedName) -
ModelConstructor.newActedOnBehalfOf(QualifiedName, QualifiedName, QualifiedName, QualifiedName, java.util.Collection)
Schema Definition:
The following schema fragment specifies the expected content contained within this class.
<complexType name="Delegation">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="delegate" type="{http://www.w3.org/ns/prov#}IDRef"/>
<element name="responsible" type="{http://www.w3.org/ns/prov#}IDRef"/>
<element name="activity" type="{http://www.w3.org/ns/prov#}IDRef"/>
<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>
- Author:
- lavm
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind -
Method Summary
Modifier and TypeMethodDescriptionGet the activity identifier.Get the delegate identifier.Get the responsible identifier.voidsetActivity(QualifiedName activity) Set the activity identifier.voidsetDelegate(QualifiedName delegate) Set the delegate identifier.voidsetResponsible(QualifiedName responsible) Set the responsible identifierMethods inherited from interface org.openprovenance.prov.model.Identifiable
getId, setIdMethods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind
-
Method Details
-
getActivity
QualifiedName getActivity()Get the activity identifier. This is the activity for which the delegation link holds.- Returns:
- the activity QualifiedName
- See Also:
-
getDelegate
QualifiedName getDelegate()Get the delegate identifier. The delegate is the agent associated with an activity, acting on behalf of the responsible agent.- Returns:
- a QualifiedName
- See Also:
-
getResponsible
QualifiedName getResponsible()Get the responsible identifier. The responsible is the agent, on behalf of which the delegate agent acted.- Returns:
- a QualifiedName
- See Also:
-
setActivity
Set the activity identifier.- Parameters:
activity- QualifiedName of the activity- See Also:
-
setDelegate
Set the delegate identifier.- Parameters:
delegate- QualifiedName of the delegate agent.- See Also:
-
setResponsible
Set the responsible identifier- Parameters:
responsible- QualifiedName of the responsible agent.- See Also:
-