Package org.openprovenance.prov.vanilla
Class ProvFactory
- 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, of, packageList
-
-
Constructor Summary
Constructors Constructor Description ProvFactory()ProvFactory(ObjectFactory of)ProvFactory(ObjectFactory of, ModelConstructor mc)
-
Method Summary
-
Methods 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, getAttributes, getLabel, getName, getObjectFactory, getPackageList, getRole, getType, getVersion, hexDecoding, hexEncoding, init, newActedOnBehalfOf, newActivity, newActivity, newAgent, newAlternateOf, newAttribute, newDerivedByInsertionFrom, newDerivedByRemovalFrom, newDictionaryMembership, newDocument, newDuration, newDuration, newEntity, newEntry, newGDay, newGMonth, newGMonthDay, newGYear, newHadMember, newISOTime, newMentionOf, newMentionOf, newNamespace, newNamespace, newOther, newQualifiedName, newSpecializationOf, newStatement, newTime, newTimeNow, newUsed, newValue, newValue, newWasAssociatedWith, newWasAttributedTo, newWasDerivedFrom, newWasEndedBy, newWasEndedBy, newWasGeneratedBy, newWasGeneratedBy, newWasGeneratedBy, newWasGeneratedBy, newWasGeneratedBy, newWasGeneratedBy, newWasInfluencedBy, newWasInformedBy, newWasInvalidatedBy, newWasInvalidatedBy, newWasStartedBy, newWasStartedBy, newXMLGregorianCalendar, newYear, printURI, setAttributes, startBundle, startDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openprovenance.prov.model.LiteralConstructor
base64Decoding, hexDecoding, newDuration, newGDay, newGMonth, newGMonthDay, newGYear, newISOTime, newTimeNow
-
Methods inherited from interface org.openprovenance.prov.model.ModelConstructor
newActivity, newDerivedByInsertionFrom, newDerivedByRemovalFrom, newDictionaryMembership, newMentionOf, newWasGeneratedBy, startBundle, startDocument
-
-
-
-
Constructor Detail
-
ProvFactory
public ProvFactory(ObjectFactory of)
-
ProvFactory
public ProvFactory()
-
ProvFactory
public ProvFactory(ObjectFactory of, ModelConstructor mc)
-
-
Method Detail
-
getFactory
public static ProvFactory getFactory()
-
getSerializer
public ProvSerialiser getSerializer()
- Specified by:
getSerializerin classProvFactory
-
newAttribute
public Attribute newAttribute(QualifiedName elementName, Object value, QualifiedName type)
- Specified by:
newAttributein classProvFactory
-
newAttribute
public Attribute newAttribute(Attribute.AttributeKind kind, Object value, QualifiedName type)
- Specified by:
newAttributein classProvFactory
-
newQualifiedName
public QualifiedName newQualifiedName(String namespace, String local, String prefix)
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
public LangString newInternationalizedString(String s, String lang)
- Specified by:
newInternationalizedStringin interfaceAtomConstructor- Overrides:
newInternationalizedStringin classProvFactory
-
newInternationalizedString
public LangString newInternationalizedString(String s)
- Specified by:
newInternationalizedStringin interfaceAtomConstructor- Overrides:
newInternationalizedStringin classProvFactory
-
newType
public Type newType(Object value, QualifiedName type)
- Specified by:
newTypein interfaceAtomConstructor- Overrides:
newTypein classProvFactory
-
newOther
public Other newOther(QualifiedName elementName, Object value, QualifiedName type)
- Specified by:
newOtherin interfaceAtomConstructor- Overrides:
newOtherin classProvFactory
-
newLocation
public Location newLocation(Object value, QualifiedName type)
- Specified by:
newLocationin interfaceAtomConstructor- Overrides:
newLocationin classProvFactory
-
newActivity
public Activity newActivity(QualifiedName a)
- Overrides:
newActivityin classProvFactory
-
newActivity
public Activity newActivity(QualifiedName q, String label)
- Overrides:
newActivityin classProvFactory
-
newEntity
public Entity newEntity(QualifiedName a)
Description copied from class:ProvFactoryCreates a newEntitywith provided identifier- Overrides:
newEntityin classProvFactory- Parameters:
a- aQualifiedNamefor the entity- Returns:
- an object of type
Entity
-
newEntity
public Entity newEntity(QualifiedName id, String label)
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
-
newEntity
public Entity newEntity(QualifiedName id, Collection<Attribute> attributes)
Creates a newEntitywith provided identifier and attributes- Specified by:
newEntityin interfaceModelConstructor- Overrides:
newEntityin classProvFactory- Parameters:
id- aQualifiedNamefor the entityattributes- a collection ofAttributefor the entity- Returns:
- an object of type
Entity
-
newDocument
public Document newDocument()
Description copied from class:ProvFactoryFactory method to construct aDocument- Overrides:
newDocumentin classProvFactory- Returns:
- a new instance of
Document
-
newKey
public Key newKey(Object o, QualifiedName type)
- Specified by:
newKeyin classProvFactory
-
newValue
public Value newValue(Object value, QualifiedName type)
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- Overrides:
newValuein classProvFactory- Parameters:
value- anObjecttype- aQualifiedNameto denote the type of value- Returns:
- a new
Value
-
newAgent
public Agent newAgent(QualifiedName ag)
Creates a newAgentwith provided identifier- Overrides:
newAgentin classProvFactory- Parameters:
ag- aQualifiedNamefor the agent- Returns:
- an object of type
Agent
-
newAgent
public Agent newAgent(QualifiedName id, Collection<Attribute> attributes)
Creates a newAgentwith provided identifier and attributes- Specified by:
newAgentin interfaceModelConstructor- Overrides:
newAgentin classProvFactory- Parameters:
id- aQualifiedNamefor the agentattributes- a collection ofAttributefor the agent- Returns:
- an object of type
Agent
-
newAgent
public Agent newAgent(QualifiedName ag, String label)
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
public Used newUsed(QualifiedName id)
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
public Used newUsed(QualifiedName id, QualifiedName aid, String role, QualifiedName eid)
- Overrides:
newUsedin classProvFactory
-
newUsed
public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity)
A factory method to create an instance of a usageUsed- Overrides:
newUsedin classProvFactory- Parameters:
id- an optional identifier for a usageactivity- the identifier of the activity that used an entityentity- an optional identifier for the entity being used- Returns:
- an instance of
Used
-
newUsed
public Used newUsed(QualifiedName activity, QualifiedName entity)
A factory method to create an instance of a usageUsed- Overrides:
newUsedin classProvFactory- Parameters:
activity- the identifier of the activity that used an entityentity- an optional identifier for the entity being used- Returns:
- an instance of
Used
-
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- Overrides:
newUsedin classProvFactory- 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
public Role newRole(Object value, QualifiedName type)
- Specified by:
newRolein interfaceAtomConstructor- Overrides:
newRolein classProvFactory
-
newLabel
public Label newLabel(Object value, QualifiedName type)
- Specified by:
newLabelin interfaceAtomConstructor
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName eid, String role, QualifiedName aid)
- Overrides:
newWasGeneratedByin classProvFactory
-
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- 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 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- Overrides:
newWasAssociatedWithin classProvFactory- 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
public WasAssociatedWith newWasAssociatedWith(WasAssociatedWith u)
- 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
public WasAttributedTo newWasAttributedTo(QualifiedName entity, QualifiedName agent)
-
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- 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 existenceattributes- an optional set of attribute-value pairs representing additional information about this attribution.- Returns:
- an instance of
WasAttributedTo
-
newSpecializationOf
public SpecializationOf newSpecializationOf(QualifiedName specific, QualifiedName general)
Description copied from class:ProvFactoryA factory method to create an instance of a specializationSpecializationOf- Specified by:
newSpecializationOfin interfaceModelConstructor- Overrides:
newSpecializationOfin classProvFactory- Parameters:
specific- an identifier (QualifiedName) for the specificEntitygeneral- an identifier (QualifiedName) for the generalEntity- Returns:
- an instance of
SpecializationOf
-
newAlternateOf
public AlternateOf newAlternateOf(QualifiedName entity1, QualifiedName entity2)
A factory method to create an instance of an alternateAlternateOf- Specified by:
newAlternateOfin interfaceModelConstructor- Overrides:
newAlternateOfin classProvFactory- Parameters:
entity1- an identifier for the firstEntityentity2- an identifier for the secondEntity- Returns:
- an instance of
AlternateOf
-
newWasDerivedFrom
public WasDerivedFrom newWasDerivedFrom(QualifiedName id, QualifiedName e2, QualifiedName e1)
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
public WasDerivedFrom newWasDerivedFrom(QualifiedName e2, QualifiedName e1)
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- 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
-
newDocument
public Document newDocument(Collection<Activity> ps, Collection<Entity> as, Collection<Agent> ags, Collection<Statement> lks)
- Overrides:
newDocumentin classProvFactory
-
newDocument
public Document newDocument(Document graph)
- 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- 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;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- 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 onattributes- an optional set of attribute-value pairs representing additional information about this association- Returns:
- an instance of
WasInfluencedBy
-
newHadMember
public HadMember newHadMember(QualifiedName collection, QualifiedName... entities)
- Overrides:
newHadMemberin classProvFactory
-
newHadMember
public HadMember newHadMember(QualifiedName c, Collection<QualifiedName> e)
- Specified by:
newHadMemberin interfaceModelConstructor- Overrides:
newHadMemberin classProvFactory
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName aid, QualifiedName eid)
- 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-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) 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- Overrides:
newWasStartedByin classProvFactoryactivity- 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
public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName aid, QualifiedName eid)
Description copied from class:ProvFactoryA factory method to create an instance of an endWasEndedBy- Overrides:
newWasEndedByin classProvFactoryaid- 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-activity- 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- Overrides:
newWasEndedByin classProvFactoryactivity- 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
-
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- Overrides:
newDocumentin classProvFactory- 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
-
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- 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 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
public Bundle newNamedBundle(QualifiedName id, Collection<Statement> statements)
- 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- Overrides:
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- Overrides:
newQualifiedHadMemberin classProvFactory
-
newQualifiedSpecializationOf
public QualifiedSpecializationOf newQualifiedSpecializationOf(QualifiedName id, QualifiedName specific, QualifiedName general, Collection<Attribute> attributes)
- Specified by:
newQualifiedSpecializationOfin interfaceModelConstructorExtension- Overrides:
newQualifiedSpecializationOfin classProvFactory
-
newQualifiedAlternateOf
public QualifiedAlternateOf newQualifiedAlternateOf(QualifiedName id, QualifiedName alt1, QualifiedName alt2, Collection<Attribute> attributes)
- Specified by:
newQualifiedAlternateOfin interfaceModelConstructorExtension- Overrides:
newQualifiedAlternateOfin classProvFactory
-
-