- All Known Implementing Classes:
ModelConstructor,ProvFactory,ProvFactory
public interface ModelConstructor
Interface for constructing concrete representations of the PROV data model
-
Method Summary
Modifier and TypeMethodDescriptionnewActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity, Collection<Attribute> attributes) A factory method to create an instance of a delegationActedOnBehalfOfnewActivity(QualifiedName id, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime, Collection<Attribute> attributes) newAgent(QualifiedName id, Collection<Attribute> attributes) newAlternateOf(QualifiedName e1, QualifiedName e2) newDerivedByInsertionFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Entry> keyEntitySet, Collection<Attribute> attributes) newDerivedByRemovalFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Key> keys, Collection<Attribute> attributes) newDictionaryMembership(QualifiedName dict, List<Entry> keyEntitySet) newDictionaryMembership(QualifiedName id, QualifiedName dict, List<Entry> keyEntitySet, Collection<Attribute> attributes) newDocument(Namespace namespace, Collection<Statement> statements, Collection<Bundle> bundles) A factory method to create an instance of aDocumentnewDocument(Namespace namespace, List<StatementOrBundle> statementsOrBundles) A factory method to create an instance of aDocumentnewEntity(QualifiedName id, Collection<Attribute> attributes) newMentionOf(QualifiedName e2, QualifiedName e1, QualifiedName b) newNamedBundle(QualifiedName id, Namespace namespace, Collection<Statement> statements) A factory method to create an instance of a BundleBundlenewQualifiedName(String namespace, String local, String prefix) A factory method forQualifiedName.newQualifiedName(String namespace, String local, String prefix, ProvUtilities.BuildFlag flag) A factory method forQualifiedName.newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity, XMLGregorianCalendar time, Collection<Attribute> attributes) A factory method to create an instance of a UsageUsednewWasAssociatedWith(QualifiedName id, QualifiedName activity, QualifiedName agent, QualifiedName plan, Collection<Attribute> attributes) A factory method to create an instance of an AssociationWasAssociatedWithnewWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent, Collection<Attribute> attributes) A factory method to create an instance of an attributionWasAttributedTonewWasDerivedFrom(QualifiedName id, QualifiedName e2, QualifiedName e1, QualifiedName activity, QualifiedName generation, QualifiedName usage, Collection<Attribute> attributes) A factory method to create an instance of a derivationWasDerivedFromnewWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName ender, XMLGregorianCalendar time, Collection<Attribute> attributes) A factory method to create an instance of an endWasEndedBynewWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes) A factory method to create an instance of a generationWasGeneratedBynewWasInfluencedBy(QualifiedName id, QualifiedName influencee, QualifiedName influencer, Collection<Attribute> attributes) A factory method to create an instance of an influenceWasInfluencedBynewWasInformedBy(QualifiedName id, QualifiedName informed, QualifiedName informant, Collection<Attribute> attributes) A factory method to create an instance of an communicationWasInformedBynewWasInvalidatedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes) A factory method to create an instance of an invalidationWasInvalidatedBynewWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter, XMLGregorianCalendar time, Collection<Attribute> attributes) A factory method to create an instance of a startWasStartedByvoidstartBundle(QualifiedName bundleId, Namespace namespace) voidstartDocument(Namespace namespace)
-
Method Details
-
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
-
newAlternateOf
-
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
-
newDictionaryMembership
DictionaryMembership newDictionaryMembership(QualifiedName id, QualifiedName dict, List<Entry> keyEntitySet, Collection<Attribute> attributes) -
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
-
newDocument
-
newEntity
-
newHadMember
-
newMentionOf
-
newNamedBundle
A factory method to create an instance of a BundleBundle -
newQualifiedName
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
-
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- an identifier for the activity underpinning the derivationgeneration- an identifier for the generation associated with the derivationusage- an identifier for the usage associated with the derivationattributes- an optional set of attribute-value pairs representing additional information about this derivation- 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- an optional identifier for a endactivity- 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 start- 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- an optional identifier for a startactivity- 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
-
startDocument
-