- All Superinterfaces:
HasLabel,HasOther,HasType,Identifiable,Influence,QualifiedRelation,Relation,Statement,StatementOrBundle
- All Known Implementing Classes:
WasAttributedTo
Interface for the PROV Attribution association.
PROV-DM Definition for Attribution: Attribution is the ascribing of an entity to an agent.
Relevant Factory Methods:
-
ProvFactory.newWasAttributedTo(QualifiedName, QualifiedName, QualifiedName) -
ModelConstructor.newWasAttributedTo(QualifiedName, QualifiedName, QualifiedName, java.util.Collection)
Schema Definition:
The following schema fragment specifies the expected content contained within this class.
<complexType name="Attribution">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="entity" type="{http://www.w3.org/ns/prov#}IDRef"/>
<element name="agent" 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 TypeMethodDescriptiongetAgent()Get the identifier of the agent whom the entity is ascribed to, and therefore bears some responsibility for its existenceGets the entity identifier.voidsetAgent(QualifiedName agent) Set the identifier of the agent whom the entity is ascribed to.voidsetEntity(QualifiedName entity) Set the entity identifier.Methods inherited from interface org.openprovenance.prov.model.Identifiable
getId, setIdMethods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind
-
Method Details
-
setEntity
Set the entity identifier.- Parameters:
entity-QualifiedNameof the entity
-
setAgent
Set the identifier of the agent whom the entity is ascribed to.- Parameters:
agent-QualifiedNameof the agent
-
getEntity
-
getAgent
QualifiedName getAgent()Get the identifier of the agent whom the entity is ascribed to, and therefore bears some responsibility for its existence- Returns:
QualifiedNameof the agent.
-