java.lang.Object
org.openprovenance.prov.model.ProvFactory
org.openprovenance.prov.vanilla.ProvFactory
- All Implemented Interfaces:
AtomConstructor,LiteralConstructor,ModelConstructor,ModelConstructorExtension
public class ProvFactory
extends ProvFactory
implements LiteralConstructor, ModelConstructor, ModelConstructorExtension, AtomConstructor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openprovenance.prov.model.ProvFactory
ProvFactory.Cloner -
Field Summary
Fields inherited from class org.openprovenance.prov.model.ProvFactory
dataFactory, UTC_TIMEZONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProvFactorynewActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible) A factory method to create an instance of a delegationActedOnBehalfOfnewActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity) A factory method to create an instance of a delegationActedOnBehalfOfnewActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity, Collection<Attribute> attributes) A factory method to create an instance of a delegationActedOnBehalfOfnewActivity(QualifiedName q, String label) newActivity(QualifiedName a, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime, Collection<Attribute> attributes) Creates a newAgentwith provided identifiernewAgent(QualifiedName ag, String label) Creates a newAgentwith provided identifier and labelnewAgent(QualifiedName id, Collection<Attribute> attributes) Creates a newAgentwith provided identifier and attributesnewAlternateOf(QualifiedName entity1, QualifiedName entity2) A factory method to create an instance of an alternateAlternateOfnewAttribute(Attribute.AttributeKind kind, Object value, QualifiedName type) newAttribute(QualifiedName elementName, Object value, QualifiedName type) 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 id, QualifiedName dict, List<Entry> keyEntitySet, Collection<Attribute> attributes) Factory method to construct aDocumentnewDocument(Collection<Activity> ps, Collection<Entity> as, Collection<Agent> ags, Collection<Statement> lks) newDocument(Document graph) 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 aDocumentCreates a newEntitywith provided identifiernewEntity(QualifiedName id, String label) Creates a newEntitywith provided identifier and labelnewEntity(QualifiedName id, Collection<Attribute> attributes) Creates a newEntitywith provided identifier and attributesnewEntry(Key key, QualifiedName entity) Factory method for Key-entity entries.newHadMember(QualifiedName collection, QualifiedName... entities) newInternationalizedString(String s, String lang) newKey(Object o, QualifiedName type) newLabel(Object value, QualifiedName type) newLocation(Object value, QualifiedName type) newMentionOf(QualifiedName e2, QualifiedName e1, QualifiedName b) newNamedBundle(QualifiedName id, Collection<Activity> ps, Collection<Entity> as, Collection<Agent> ags, Collection<Statement> lks) newNamedBundle(QualifiedName id, Collection<Statement> statements) newNamedBundle(QualifiedName id, Namespace namespace, Collection<Statement> statements) A factory method to create an instance of a BundleBundlenewOther(QualifiedName elementName, Object value, QualifiedName type) newQualifiedAlternateOf(QualifiedName id, QualifiedName alt1, QualifiedName alt2, Collection<Attribute> attributes) newQualifiedHadMember(QualifiedName id, QualifiedName c, Collection<QualifiedName> e, Collection<Attribute> attributes) newQualifiedName(String namespace, String local, String prefix) A factory method forQualifiedName.newQualifiedName(String namespace, String local, String prefix, ProvUtilities.BuildFlag flag) A factory method forQualifiedName.newQualifiedSpecializationOf(QualifiedName id, QualifiedName specific, QualifiedName general, Collection<Attribute> attributes) newRole(Object value, QualifiedName type) newSpecializationOf(QualifiedName specific, QualifiedName general) newType(Object value, QualifiedName type) newUsed(QualifiedName id) A factory method to create an instance of a usageUsednewUsed(QualifiedName activity, QualifiedName entity) A factory method to create an instance of a usageUsednewUsed(QualifiedName id, QualifiedName activity, String role, QualifiedName entity) newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity) A factory method to create an instance of a usageUsednewUsed(QualifiedName id, QualifiedName activity, QualifiedName entity, XMLGregorianCalendar time) newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity, XMLGregorianCalendar time, Collection<Attribute> attributes) A factory method to create an instance of a UsageUsednewValue(Object value, QualifiedName type) Factory method to create an instance of the PROV-DM prov:value attribute (seeValue).newWasAssociatedWith(QualifiedName id, QualifiedName activity, QualifiedName agent) A factory method to create an instance of an AssociationWasAssociatedWithnewWasAssociatedWith(QualifiedName id, QualifiedName a, QualifiedName ag, QualifiedName plan) newWasAssociatedWith(QualifiedName id, QualifiedName a, QualifiedName ag, QualifiedName plan, Collection<Attribute> attributes) A factory method to create an instance of an AssociationWasAssociatedWithnewWasAttributedTo(QualifiedName entity, QualifiedName agent) newWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent) A factory method to create an instance of an attributionWasAttributedTonewWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent, Collection<Attribute> attributes) A factory method to create an instance of an attributionWasAttributedToA factory method to create an instance of a derivationWasDerivedFromnewWasDerivedFrom(QualifiedName id, QualifiedName e2, QualifiedName e1) A factory method to create an instance of a derivationWasDerivedFromnewWasDerivedFrom(QualifiedName id, QualifiedName e2, QualifiedName e1, QualifiedName a, QualifiedName gen, QualifiedName use, Collection<Attribute> attributes) A factory method to create an instance of a derivationWasDerivedFromnewWasEndedBy(QualifiedName id, QualifiedName aid, QualifiedName eid) A factory method to create an instance of an endWasEndedBynewWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName ender) A factory method to create an instance of a endWasEndedBynewWasEndedBy(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, String role, QualifiedName activity) newWasGeneratedBy(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) A factory method to create an instance of an influenceWasInfluencedBynewWasInfluencedBy(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) A factory method to create an instance of an communicationWasInformedBynewWasInformedBy(QualifiedName id, QualifiedName informed, QualifiedName informant, Collection<Attribute> attributes) A factory method to create an instance of an communicationWasInformedBynewWasInvalidatedBy(QualifiedName id, QualifiedName eid, String role, QualifiedName aid) newWasInvalidatedBy(QualifiedName id, QualifiedName entity, QualifiedName activity) A factory method to create an instance of an invalidationWasInvalidatedBynewWasInvalidatedBy(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) newWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter) A factory method to create an instance of a startWasStartedBynewWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter, XMLGregorianCalendar time, Collection<Attribute> attributes) A factory method to create an instance of a startWasStartedByMethods inherited from class org.openprovenance.prov.model.ProvFactory
addAttribute, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addAttributes, addBundleType, addLabel, addLabel, addPrimarySourceType, addQuotationType, addRevisionType, addRole, addType, addType, addType, base64Decoding, base64Encoding, getAllAttributes, getAttributes, getLabel, getName, getRole, getType, getVersion, hexDecoding, hexEncoding, init, newActedOnBehalfOf, newActivity, newActivity, newAgent, newAlternateOf, newAttribute, newDictionaryMembership, newDocument, newDuration, newDuration, newEntity, newGDay, newGMonth, newGMonthDay, newGYear, newHadMember, newISOTime, newISOTime, newISOTime, newISOTimeTZ, newISOTimeUTC, newMentionOf, newNamespace, newNamespace, newOther, newQualifiedName, newSpecializationOf, newStatement, newTime, newTime, newTimeNow, newUsed, newValue, newValue, newWasAssociatedWith, newWasAttributedTo, newWasDerivedFrom, newWasEndedBy, newWasEndedBy, newWasGeneratedBy, newWasGeneratedBy, newWasGeneratedBy, newWasGeneratedBy, newWasGeneratedBy, newWasInfluencedBy, newWasInformedBy, newWasInvalidatedBy, newWasInvalidatedBy, newWasStartedBy, newWasStartedBy, newXMLGregorianCalendar, newYear, setAttributes, startBundle, startDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openprovenance.prov.model.LiteralConstructor
base64Decoding, hexDecoding, newDuration, newGDay, newGMonth, newGMonthDay, newGYear, newISOTime, newISOTimeTZ, newISOTimeUTC, newTimeNowMethods inherited from interface org.openprovenance.prov.model.ModelConstructor
newDictionaryMembership, startBundle, startDocument
-
Constructor Details
-
ProvFactory
public ProvFactory() -
ProvFactory
-
-
Method Details
-
getFactory
-
getSerializer
- Specified by:
getSerializerin classProvFactory
-
newAttribute
- Specified by:
newAttributein classProvFactory
-
newAttribute
- Specified by:
newAttributein classProvFactory
-
newQualifiedName
Description copied from interface:ModelConstructorA factory method forQualifiedName. A qualified name consists of a namespace, denoted by an optional prefix, and a local name.- Specified by:
newQualifiedNamein interfaceModelConstructor- Specified by:
newQualifiedNamein classProvFactory- Parameters:
namespace- a URI for the namespacelocal- a local nameprefix- a string, which can be null.- Returns:
- an instance of
QualifiedName
-
newQualifiedName
public QualifiedName newQualifiedName(String namespace, String local, String prefix, ProvUtilities.BuildFlag flag) Description copied from interface:ModelConstructorA factory method forQualifiedName. A qualified name consists of a namespace, denoted by an optional prefix, and a local name.- Specified by:
newQualifiedNamein interfaceModelConstructor- Specified by:
newQualifiedNamein classProvFactory- Parameters:
namespace- a URI for the namespacelocal- a local nameprefix- a string, which can be nullflag- build flag.- Returns:
- an instance of
QualifiedName
-
newInternationalizedString
- Specified by:
newInternationalizedStringin interfaceAtomConstructor- Specified by:
newInternationalizedStringin classProvFactory
-
newInternationalizedString
- Specified by:
newInternationalizedStringin interfaceAtomConstructor- Specified by:
newInternationalizedStringin classProvFactory
-
newType
- Specified by:
newTypein interfaceAtomConstructor- Specified by:
newTypein classProvFactory
-
newOther
- Specified by:
newOtherin interfaceAtomConstructor- Specified by:
newOtherin classProvFactory
-
newLocation
- Specified by:
newLocationin interfaceAtomConstructor- Specified by:
newLocationin classProvFactory
-
newActivity
public Activity newActivity(QualifiedName a, XMLGregorianCalendar startTime, XMLGregorianCalendar endTime, Collection<Attribute> attributes) - Specified by:
newActivityin interfaceModelConstructor
-
newActivity
- Overrides:
newActivityin classProvFactory
-
newEntity
Description copied from class:ProvFactoryCreates a newEntitywith provided identifier- Overrides:
newEntityin classProvFactory- Parameters:
a- aQualifiedNamefor the entity- Returns:
- an object of type
Entity
-
newEntity
Creates a newEntitywith provided identifier and label- Overrides:
newEntityin classProvFactory- Parameters:
id- aQualifiedNamefor the entitylabel- a String for the label property (seeHasLabel.getLabel()- Returns:
- an object of type
Entity
-
newEntry
Description copied from class:ProvFactoryFactory method for Key-entity entries. Key-entity entries are used to identify the members of a dictionary.- Specified by:
newEntryin classProvFactory- Parameters:
key- indexing the entity in the dictionaryentity- aQualifiedNamedenoting an entity- Returns:
- an instance of
Entry
-
newEntity
Creates a newEntitywith provided identifier and attributes- Specified by:
newEntityin interfaceModelConstructor- Parameters:
id- aQualifiedNamefor the entityattributes- a collection ofAttributefor the entity- Returns:
- an object of type
Entity
-
newDocument
Description copied from class:ProvFactoryFactory method to construct aDocument- Overrides:
newDocumentin classProvFactory- Returns:
- a new instance of
Document
-
newKey
- Specified by:
newKeyin classProvFactory
-
newValue
Description copied from class:ProvFactoryFactory method to create an instance of the PROV-DM prov:value attribute (seeValue). Use classNamefor predefinedQualifiedNames for the common types.- Specified by:
newValuein interfaceAtomConstructor- Specified by:
newValuein classProvFactory- Parameters:
value- anObjecttype- aQualifiedNameto denote the type of value- Returns:
- a new
Value
-
newAgent
Creates a newAgentwith provided identifier- Overrides:
newAgentin classProvFactory- Parameters:
ag- aQualifiedNamefor the agent- Returns:
- an object of type
Agent
-
newAgent
Creates a newAgentwith provided identifier and attributes- Specified by:
newAgentin interfaceModelConstructor- Parameters:
id- aQualifiedNamefor the agentattributes- a collection ofAttributefor the agent- Returns:
- an object of type
Agent
-
newAgent
Creates a newAgentwith provided identifier and label- Overrides:
newAgentin classProvFactory- Parameters:
ag- aQualifiedNamefor the agentlabel- a String for the label property (seeHasLabel.getLabel()- Returns:
- an object of type
Agent
-
newUsed
A factory method to create an instance of a usageUsed- Overrides:
newUsedin classProvFactory- Parameters:
id- an optional identifier for a usage- Returns:
- an instance of
Used
-
newUsed
- Overrides:
newUsedin classProvFactory
-
newUsed
-
newUsed
-
newUsed
public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity, XMLGregorianCalendar time, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of a UsageUsed- Specified by:
newUsedin interfaceModelConstructor- 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
-
newUsed
public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity, XMLGregorianCalendar time) - Overrides:
newUsedin classProvFactory
-
newRole
- Specified by:
newRolein interfaceAtomConstructor- Specified by:
newRolein classProvFactory
-
newLabel
- Specified by:
newLabelin interfaceAtomConstructor- Specified by:
newLabelin classProvFactory
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, String role, QualifiedName activity) - Overrides:
newWasGeneratedByin classProvFactory
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of a generationWasGeneratedBy- Specified by:
newWasGeneratedByin interfaceModelConstructor- 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
-
newWasInvalidatedBy
public WasInvalidatedBy newWasInvalidatedBy(QualifiedName id, QualifiedName eid, String role, QualifiedName aid) -
newWasInvalidatedBy
public WasInvalidatedBy newWasInvalidatedBy(QualifiedName id, QualifiedName entity, QualifiedName activity) A factory method to create an instance of an invalidationWasInvalidatedBy- Overrides:
newWasInvalidatedByin classProvFactory- Parameters:
id- an optional identifier for a usageentity- an identifier for the created entityactivity- an optional identifier for the activity that creates the entity- Returns:
- an instance of
WasInvalidatedBy
-
newWasInvalidatedBy
public WasInvalidatedBy newWasInvalidatedBy(QualifiedName id, QualifiedName entity, QualifiedName activity, XMLGregorianCalendar time, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of an invalidationWasInvalidatedBy- Specified by:
newWasInvalidatedByin interfaceModelConstructor- 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
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(QualifiedName id, QualifiedName activity, QualifiedName agent) A factory method to create an instance of an AssociationWasAssociatedWith- Overrides:
newWasAssociatedWithin classProvFactory- 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 activity- Returns:
- an instance of
WasAssociatedWith
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(QualifiedName id, QualifiedName a, QualifiedName ag, QualifiedName plan, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of an AssociationWasAssociatedWith- Specified by:
newWasAssociatedWithin interfaceModelConstructor- Parameters:
id- an optional identifier for the association between an activity and an agenta- an identifier for the activityag- 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
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(QualifiedName id, QualifiedName a, QualifiedName ag, QualifiedName plan) - Overrides:
newWasAssociatedWithin classProvFactory
-
newWasAssociatedWith
- Overrides:
newWasAssociatedWithin classProvFactory
-
newWasAttributedTo
public WasAttributedTo newWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent) A factory method to create an instance of an attributionWasAttributedTo- Overrides:
newWasAttributedToin classProvFactory- 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 existence- Returns:
- an instance of
WasAttributedTo
-
newWasAttributedTo
-
newWasAttributedTo
public WasAttributedTo newWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of an attributionWasAttributedTo- Specified by:
newWasAttributedToin interfaceModelConstructor- 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
-
newSpecializationOf
- Specified by:
newSpecializationOfin interfaceModelConstructor
-
newAlternateOf
A factory method to create an instance of an alternateAlternateOf- Specified by:
newAlternateOfin interfaceModelConstructor- Parameters:
entity1- an identifier for the firstEntityentity2- an identifier for the secondEntity- Returns:
- an instance of
AlternateOf
-
newDerivedByInsertionFrom
public DerivedByInsertionFrom newDerivedByInsertionFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Entry> keyEntitySet, Collection<Attribute> attributes) - Specified by:
newDerivedByInsertionFromin interfaceModelConstructor
-
newDerivedByRemovalFrom
public DerivedByRemovalFrom newDerivedByRemovalFrom(QualifiedName id, QualifiedName after, QualifiedName before, List<Key> keys, Collection<Attribute> attributes) - Specified by:
newDerivedByRemovalFromin interfaceModelConstructor
-
newDictionaryMembership
public DictionaryMembership newDictionaryMembership(QualifiedName id, QualifiedName dict, List<Entry> keyEntitySet, Collection<Attribute> attributes) - Specified by:
newDictionaryMembershipin interfaceModelConstructor
-
newWasDerivedFrom
A factory method to create an instance of a derivationWasDerivedFrom- Overrides:
newWasDerivedFromin classProvFactory- 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 derivation- Returns:
- an instance of
WasDerivedFrom
-
newWasDerivedFrom
A factory method to create an instance of a derivationWasDerivedFrom- Overrides:
newWasDerivedFromin classProvFactory- Parameters:
e2- the identifier of the entity generated by the derivatione1- the identifier of the entity used by the derivation- Returns:
- an instance of
WasDerivedFrom
-
newWasDerivedFrom
public WasDerivedFrom newWasDerivedFrom(QualifiedName id, QualifiedName e2, QualifiedName e1, QualifiedName a, QualifiedName gen, QualifiedName use, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of a derivationWasDerivedFrom- Specified by:
newWasDerivedFromin interfaceModelConstructor- 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 derivationa- an identifier for the activity underpinning the derivationgen- an identifier for the generation associated with the derivationuse- 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
-
newDocument
public Document newDocument(Collection<Activity> ps, Collection<Entity> as, Collection<Agent> ags, Collection<Statement> lks) - Overrides:
newDocumentin classProvFactory
-
newDocument
- Overrides:
newDocumentin classProvFactory
-
newWasInformedBy
public WasInformedBy newWasInformedBy(QualifiedName id, QualifiedName informed, QualifiedName informant) A factory method to create an instance of an communicationWasInformedBy- Overrides:
newWasInformedByin classProvFactory- Parameters:
id- an optional identifier identifying the association;informed- the identifier of the informed activity;informant- the identifier of the informant activity;- Returns:
- an instance of
WasInformedBy
-
newWasInformedBy
public WasInformedBy newWasInformedBy(QualifiedName id, QualifiedName informed, QualifiedName informant, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of an communicationWasInformedBy- Specified by:
newWasInformedByin interfaceModelConstructor- 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
-
newWasInfluencedBy
public WasInfluencedBy newWasInfluencedBy(QualifiedName id, QualifiedName influencee, QualifiedName influencer) A factory method to create an instance of an influenceWasInfluencedBy- Overrides:
newWasInfluencedByin classProvFactory- 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 on- Returns:
- an instance of
WasInfluencedBy
-
newWasInfluencedBy
public WasInfluencedBy newWasInfluencedBy(QualifiedName id, QualifiedName influencee, QualifiedName influencer, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of an influenceWasInfluencedBy- Specified by:
newWasInfluencedByin interfaceModelConstructor- 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
-
newHadMember
- Overrides:
newHadMemberin classProvFactory
-
newHadMember
- Specified by:
newHadMemberin interfaceModelConstructor- Specified by:
newHadMemberin classProvFactory
-
newMentionOf
- Specified by:
newMentionOfin interfaceModelConstructor
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger) - Overrides:
newWasStartedByin classProvFactory
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter) A factory method to create an instance of a startWasStartedBy- Overrides:
newWasStartedByin classProvFactory- Parameters:
id- an optional identifier for a usageactivity- 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) entity- Returns:
- an instance of
WasStartedBy
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter, XMLGregorianCalendar time, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of a startWasStartedBy- Specified by:
newWasStartedByin interfaceModelConstructor- 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
-
newWasEndedBy
Description copied from class:ProvFactoryA factory method to create an instance of an endWasEndedBy- Overrides:
newWasEndedByin classProvFactory- Parameters:
id- an identifier for an endaid- an identifier for the ended activityeid- an optional identifier for the entity triggering the activity ending- Returns:
- an instance of
WasEndedBy
-
newWasEndedBy
public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName ender) A factory method to create an instance of a endWasEndedBy- Overrides:
newWasEndedByin classProvFactory- Parameters:
id- an optional identifier for an endactivity- an identifier for the ended activitytrigger- an optional identifier for the entity triggering the activityender- an optional identifier for the activity that generated the (possibly unspecified) entity- Returns:
- an instance of
WasEndedBy
-
newWasEndedBy
public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName ender, XMLGregorianCalendar time, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of an endWasEndedBy- Specified by:
newWasEndedByin interfaceModelConstructor- 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
-
newDocument
public Document newDocument(Namespace namespace, Collection<Statement> statements, Collection<Bundle> bundles) Description copied from interface:ModelConstructorA factory method to create an instance of aDocument- Specified by:
newDocumentin interfaceModelConstructor- 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
Description copied from interface:ModelConstructorA factory method to create an instance of aDocument- Specified by:
newDocumentin interfaceModelConstructor- Parameters:
namespace- the prefix namespace mapping for the current documentstatementsOrBundles- a list of statements or bundles- Returns:
- an instance of
Document, with this prefix-namespace mapping, statements, and bundles
-
newActedOnBehalfOf
public ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity) A factory method to create an instance of a delegationActedOnBehalfOf- Overrides:
newActedOnBehalfOfin classProvFactory- 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 holds- Returns:
- an instance of
ActedOnBehalfOf
-
newActedOnBehalfOf
public ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity, Collection<Attribute> attributes) Description copied from interface:ModelConstructorA factory method to create an instance of a delegationActedOnBehalfOf- Specified by:
newActedOnBehalfOfin interfaceModelConstructor- 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
-
newActedOnBehalfOf
public ActedOnBehalfOf newActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible) A factory method to create an instance of a delegationActedOnBehalfOf- Overrides:
newActedOnBehalfOfin classProvFactory- 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 acted- Returns:
- an instance of
ActedOnBehalfOf
-
newNamedBundle
- Overrides:
newNamedBundlein classProvFactory
-
newNamedBundle
public Bundle newNamedBundle(QualifiedName id, Namespace namespace, Collection<Statement> statements) Description copied from interface:ModelConstructorA factory method to create an instance of a BundleBundle- Specified by:
newNamedBundlein interfaceModelConstructor- Specified by:
newNamedBundlein classProvFactory- Parameters:
id- an identifier for the bundlenamespace- aNamespaceobject mapping prefix to namespace URIsstatements- a set of provenance descriptions- Returns:
Bundle
-
newNamedBundle
public Bundle newNamedBundle(QualifiedName id, Collection<Activity> ps, Collection<Entity> as, Collection<Agent> ags, Collection<Statement> lks) - Overrides:
newNamedBundlein classProvFactory
-
newQualifiedHadMember
public QualifiedHadMember newQualifiedHadMember(QualifiedName id, QualifiedName c, Collection<QualifiedName> e, Collection<Attribute> attributes) - Specified by:
newQualifiedHadMemberin interfaceModelConstructorExtension
-
newQualifiedSpecializationOf
public QualifiedSpecializationOf newQualifiedSpecializationOf(QualifiedName id, QualifiedName specific, QualifiedName general, Collection<Attribute> attributes) - Specified by:
newQualifiedSpecializationOfin interfaceModelConstructorExtension
-
newQualifiedAlternateOf
public QualifiedAlternateOf newQualifiedAlternateOf(QualifiedName id, QualifiedName alt1, QualifiedName alt2, Collection<Attribute> attributes) - Specified by:
newQualifiedAlternateOfin interfaceModelConstructorExtension
-