Package org.openprovenance.prov.model
Interface ModelConstructor
-
- All Known Implementing Classes:
ModelConstructor
,ProvFactory
,ProvFactory
public interface ModelConstructor
Interface for constructing concrete representations of the PROV data model
-
-
Method Summary
-
-
-
Method Detail
-
newActedOnBehalfOf
ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity, Collection<Attribute> attributes)
A factory method to create an instance of a delegationActedOnBehalfOf
- Parameters:
id
- identifier for the delegation association between delegate and responsibledelegate
- identifier for the agent associated with an activity, acting on behalf of the responsible agentresponsible
- identifier for the agent, on behalf of which the delegate agent actedactivity
- optional identifier of an activity for which the delegation association holdsattributes
- optional set of attributes representing additional information about this delegation association- Returns:
- an instance of
ActedOnBehalfOf
-
newActivity
Activity newActivity(QualifiedName id, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime, Collection<Attribute> attributes)
-
newAgent
Agent newAgent(QualifiedName id, Collection<Attribute> attributes)
-
newAlternateOf
AlternateOf newAlternateOf(QualifiedName e1, QualifiedName e2)
-
newDerivedByInsertionFrom
DerivedByInsertionFrom newDerivedByInsertionFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Entry> keyEntitySet, Collection<Attribute> attributes)
-
newDerivedByRemovalFrom
DerivedByRemovalFrom newDerivedByRemovalFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Key> keys, Collection<Attribute> attributes)
-
newDictionaryMembership
DictionaryMembership newDictionaryMembership(QualifiedName dict, List<Entry> keyEntitySet)
-
newDocument
Document newDocument(Namespace namespace, Collection<Statement> statements, Collection<Bundle> bundles)
A factory method to create an instance of aDocument
- Parameters:
namespace
- the prefix namespace mapping for the current documentstatements
- a collection of statementsbundles
- a collection of bundles- Returns:
- an instance of
Document
, with this prefix-namespace mapping, statements, and bundles
-
newEntity
Entity newEntity(QualifiedName id, Collection<Attribute> attributes)
-
newHadMember
HadMember newHadMember(QualifiedName c, Collection<QualifiedName> e)
-
newMentionOf
MentionOf newMentionOf(QualifiedName e2, QualifiedName e1, QualifiedName b)
-
newNamedBundle
Bundle newNamedBundle(QualifiedName id, Namespace namespace, Collection<Statement> statements)
A factory method to create an instance of a BundleBundle
-
newQualifiedName
QualifiedName newQualifiedName(String namespace, String local, String prefix)
A factory method forQualifiedName
. A qualified name consists of a namespace, denoted by an optional prefix, and a local name.- Parameters:
namespace
- a URI for the namespacelocal
- a local nameprefix
- a string, which can be null.- Returns:
- an instance of
QualifiedName
-
newQualifiedName
QualifiedName newQualifiedName(String namespace, String local, String prefix, ProvUtilities.BuildFlag flag)
A factory method forQualifiedName
. A qualified name consists of a namespace, denoted by an optional prefix, and a local name.- Parameters:
namespace
- a URI for the namespacelocal
- a local nameprefix
- a string, which can be nullflag
- build flag.- Returns:
- an instance of
QualifiedName
-
newSpecializationOf
SpecializationOf newSpecializationOf(QualifiedName e2, QualifiedName e1)
-
newUsed
Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity, XMLGregorianCalendar time, Collection<Attribute> attributes)
A factory method to create an instance of a UsageUsed
- Parameters:
id
- an optional identifier for a usageactivity
- the identifier of the activity that used an entityentity
- an optional identifier for the entity being usedtime
- an optional "usage time", the time at which the entity started to be usedattributes
- an optional set of attribute-value pairs representing additional information about this usage- Returns:
- an instance of
Used
-
newWasAssociatedWith
WasAssociatedWith newWasAssociatedWith(QualifiedName id, QualifiedName activity, QualifiedName agent, QualifiedName plan, Collection<Attribute> attributes)
A factory method to create an instance of an AssociationWasAssociatedWith
- Parameters:
id
- an optional identifier for the association between an activity and an agentactivity
- an identifier for the activityagent
- an optional identifier for the agent associated with the activityplan
- an optional identifier for the plan the agent relied on in the context of this activityattributes
- an optional set of attribute-value pairs representing additional information about this association of this activity with this agent.- Returns:
- an instance of
WasAssociatedWith
-
newWasAttributedTo
WasAttributedTo newWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent, Collection<Attribute> attributes)
A factory method to create an instance of an attributionWasAttributedTo
- Parameters:
id
- an optional identifier for the relationentity
- an entity identifieragent
- the identifier of the agent whom the entity is ascribed to, and therefore bears some responsibility for its existenceattributes
- an optional set of attribute-value pairs representing additional information about this attribution.- Returns:
- an instance of
WasAttributedTo
-
newWasDerivedFrom
WasDerivedFrom newWasDerivedFrom(QualifiedName id, QualifiedName e2, QualifiedName e1, QualifiedName activity, QualifiedName generation, QualifiedName usage, Collection<Attribute> attributes)
A factory method to create an instance of a derivationWasDerivedFrom
- Parameters:
id
- an optional identifier for a derivatione2
- the identifier of the entity generated by the derivatione1
- the identifier of the entity used by the derivationactivity
-generation
-usage
-attributes
-- Returns:
- an instance of
WasDerivedFrom
-
newWasEndedBy
WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName ender, XMLGregorianCalendar time, Collection<Attribute> attributes)
A factory method to create an instance of an endWasEndedBy
- Parameters:
id
-activity
- an identifier for the ended activitytrigger
- an optional identifier for the entity triggering the activity endingender
- an optional identifier for the activity that generated the (possibly unspecified) entitytime
- the optional time at which the activity was endedattributes
- an optional set of attribute-value pairs representing additional information about this activity end- Returns:
- an instance of
WasStartedBy
-
newWasGeneratedBy
WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes)
A factory method to create an instance of a generationWasGeneratedBy
- Parameters:
id
- an optional identifier for a usageentity
- an identifier for the created entityactivity
- an optional identifier for the activity that creates the entitytime
- an optional "generation time", the time at which the entity was completely createdattributes
- an optional set of attribute-value pairs representing additional information about this generation- Returns:
- an instance of
WasGeneratedBy
-
newWasInfluencedBy
WasInfluencedBy newWasInfluencedBy(QualifiedName id, QualifiedName influencee, QualifiedName influencer, Collection<Attribute> attributes)
A factory method to create an instance of an influenceWasInfluencedBy
- Parameters:
id
- optional identifier identifying the associationinfluencee
- an identifier for an entity, activity, or agentinfluencer
- an identifier for an ancestor entity, activity, or agent that the former depends onattributes
- an optional set of attribute-value pairs representing additional information about this association- Returns:
- an instance of
WasInfluencedBy
-
newWasInformedBy
WasInformedBy newWasInformedBy(QualifiedName id, QualifiedName informed, QualifiedName informant, Collection<Attribute> attributes)
A factory method to create an instance of an communicationWasInformedBy
- Parameters:
id
- an optional identifier identifying the association;informed
- the identifier of the informed activity;informant
- the identifier of the informant activity;attributes
- an optional set of attribute-value pairs representing additional information about this communication.- Returns:
- an instance of
WasInformedBy
-
newWasInvalidatedBy
WasInvalidatedBy newWasInvalidatedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes)
A factory method to create an instance of an invalidationWasInvalidatedBy
- Parameters:
id
- an optional identifier for a usageentity
- an identifier for the created entityactivity
- an optional identifier for the activity that creates the entitytime
- an optional "invalidation time", the time at which the entity was completely createdattributes
- an optional set of attribute-value pairs representing additional information about this invalidation- Returns:
- an instance of
WasInvalidatedBy
-
newWasStartedBy
WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter, XMLGregorianCalendar time, Collection<Attribute> attributes)
A factory method to create an instance of a startWasStartedBy
- Parameters:
id
-activity
- an identifier for the started activitytrigger
- an optional identifier for the entity triggering the activitystarter
- an optional identifier for the activity that generated the (possibly unspecified) entitytime
- the optional time at which the activity was startedattributes
- an optional set of attribute-value pairs representing additional information about this activity start- Returns:
- an instance of
WasStartedBy
-
startBundle
void startBundle(QualifiedName bundleId, Namespace namespace)
-
startDocument
void startDocument(Namespace namespace)
-
-