Package org.openprovenance.prov.model
Interface WasAttributedTo
-
- All Superinterfaces:
HasLabel,HasOther,HasType,Identifiable,Influence,QualifiedRelation,Relation,Statement,StatementOrBundle
- All Known Implementing Classes:
WasAttributedTo
public interface WasAttributedTo extends Identifiable, HasLabel, HasType, HasOther, Influence
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) -
ProvFactory.newWasAttributedTo(QualifiedName, QualifiedName, QualifiedName, java.util.Collection) -
ObjectFactory.createWasAttributedTo()
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:
- PROV-DM Attribution, PROV-O Attribution, PROV-N Attribution, PROV-XML Attribution, PROV-JSON Attribution
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind
-
-
Method Summary
Modifier and Type Method Description QualifiedNamegetAgent()Get the identifier of the agent whom the entity is ascribed to, and therefore bears some responsibility for its existenceQualifiedNamegetEntity()Gets 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, setId
-
Methods inherited from interface org.openprovenance.prov.model.StatementOrBundle
getKind
-
-
-
-
Method Detail
-
setEntity
void setEntity(QualifiedName entity)
Set the entity identifier.- Parameters:
entity-QualifiedNameof the entity
-
setAgent
void setAgent(QualifiedName agent)
Set the identifier of the agent whom the entity is ascribed to.- Parameters:
agent-QualifiedNameof the agent
-
getEntity
QualifiedName getEntity()
Gets the entity identifier.- Returns:
QualifiedNameof the entity
-
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.
-
-