public interface WasGeneratedBy extends Identifiable, HasLabel, HasTime, HasType, HasRole, HasLocation, HasOther, Influence
Interface for PROV Generation association.
PROV-DM Definition for Generation: Generation is the completion of production of a new entity by an activity. This entity did not exist before generation and becomes available for usage after this generation.
The constructor method ProvFactory.newWasGeneratedBy(QualifiedName, QualifiedName, QualifiedName)
can be used to create an instance of WasGeneratedBy.
The following code snippet creates a new generation statement, with a role attribute, and current time.
The instance of generation is given an identifier myId.
QualifiedName myId= ... ; // some qualified name QualifiedName entityId= ... ; // some entity qualified name QualifiedName activityId= ... ; // some activity qualified name WasGeneratedBy myWasGeneratedBy=provFactory.newWasGeneratedBy(myId,entityId,activityId); myWasGeneratedBy.getRole().add(provFactory.newRole("parameter")); myWasGeneratedBy.setTime(provFactory.newTimeNow())
Relevant Factory Methods:
ProvFactory.newWasGeneratedBy(QualifiedName, QualifiedName, QualifiedName)
ProvFactory.newWasGeneratedBy(QualifiedName, QualifiedName, QualifiedName, javax.xml.datatype.XMLGregorianCalendar, java.util.Collection)
ObjectFactory.createWasGeneratedBy()
Schema Definition:
The following schema fragment specifies the expected content contained within this class.
<complexType name="Generation"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="entity" type="{http://www.w3.org/ns/prov#}IDRef"/> <element name="activity" type="{http://www.w3.org/ns/prov#}IDRef" minOccurs="0"/> <element name="time" type="{http://www.w3.org/2001/XMLSchema}dateTime" 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"/> <element ref="{http://www.w3.org/ns/prov#}location" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.w3.org/ns/prov#}role" 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 |
getEntity() |
void |
setActivity(QualifiedName pid) |
void |
setEntity(QualifiedName aid) |
getLocation
getId, setId
getKind
void setActivity(QualifiedName pid)
void setEntity(QualifiedName aid)
QualifiedName getEntity()
QualifiedName getActivity()
Copyright © 2016. All rights reserved.