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:
getSerializer
in classProvFactory
-
newAttribute
public Attribute newAttribute(QualifiedName elementName, Object value, QualifiedName type)
- Specified by:
newAttribute
in classProvFactory
-
newAttribute
public Attribute newAttribute(Attribute.AttributeKind kind, Object value, QualifiedName type)
- Specified by:
newAttribute
in classProvFactory
-
newQualifiedName
public QualifiedName newQualifiedName(String namespace, String local, String prefix)
Description copied from interface:ModelConstructor
A factory method forQualifiedName
. A qualified name consists of a namespace, denoted by an optional prefix, and a local name.- Specified by:
newQualifiedName
in interfaceModelConstructor
- Specified by:
newQualifiedName
in 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:ModelConstructor
A factory method forQualifiedName
. A qualified name consists of a namespace, denoted by an optional prefix, and a local name.- Specified by:
newQualifiedName
in interfaceModelConstructor
- Specified by:
newQualifiedName
in 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:
newInternationalizedString
in interfaceAtomConstructor
- Overrides:
newInternationalizedString
in classProvFactory
-
newInternationalizedString
public LangString newInternationalizedString(String s)
- Specified by:
newInternationalizedString
in interfaceAtomConstructor
- Overrides:
newInternationalizedString
in classProvFactory
-
newType
public Type newType(Object value, QualifiedName type)
- Specified by:
newType
in interfaceAtomConstructor
- Overrides:
newType
in classProvFactory
-
newOther
public Other newOther(QualifiedName elementName, Object value, QualifiedName type)
- Specified by:
newOther
in interfaceAtomConstructor
- Overrides:
newOther
in classProvFactory
-
newLocation
public Location newLocation(Object value, QualifiedName type)
- Specified by:
newLocation
in interfaceAtomConstructor
- Overrides:
newLocation
in classProvFactory
-
newActivity
public Activity newActivity(QualifiedName a)
- Overrides:
newActivity
in classProvFactory
-
newActivity
public Activity newActivity(QualifiedName q, String label)
- Overrides:
newActivity
in classProvFactory
-
newEntity
public Entity newEntity(QualifiedName a)
Description copied from class:ProvFactory
Creates a newEntity
with provided identifier- Overrides:
newEntity
in classProvFactory
- Parameters:
a
- aQualifiedName
for the entity- Returns:
- an object of type
Entity
-
newEntity
public Entity newEntity(QualifiedName id, String label)
Creates a newEntity
with provided identifier and label- Overrides:
newEntity
in classProvFactory
- Parameters:
id
- aQualifiedName
for 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 newEntity
with provided identifier and attributes- Specified by:
newEntity
in interfaceModelConstructor
- Overrides:
newEntity
in classProvFactory
- Parameters:
id
- aQualifiedName
for the entityattributes
- a collection ofAttribute
for the entity- Returns:
- an object of type
Entity
-
newDocument
public Document newDocument()
Description copied from class:ProvFactory
Factory method to construct aDocument
- Overrides:
newDocument
in classProvFactory
- Returns:
- a new instance of
Document
-
newKey
public Key newKey(Object o, QualifiedName type)
- Specified by:
newKey
in classProvFactory
-
newValue
public Value newValue(Object value, QualifiedName type)
Description copied from class:ProvFactory
Factory method to create an instance of the PROV-DM prov:value attribute (seeValue
). Use className
for predefinedQualifiedName
s for the common types.- Specified by:
newValue
in interfaceAtomConstructor
- Overrides:
newValue
in classProvFactory
- Parameters:
value
- anObject
type
- aQualifiedName
to denote the type of value- Returns:
- a new
Value
-
newAgent
public Agent newAgent(QualifiedName ag)
Creates a newAgent
with provided identifier- Overrides:
newAgent
in classProvFactory
- Parameters:
ag
- aQualifiedName
for the agent- Returns:
- an object of type
Agent
-
newAgent
public Agent newAgent(QualifiedName id, Collection<Attribute> attributes)
Creates a newAgent
with provided identifier and attributes- Specified by:
newAgent
in interfaceModelConstructor
- Overrides:
newAgent
in classProvFactory
- Parameters:
id
- aQualifiedName
for the agentattributes
- a collection ofAttribute
for the agent- Returns:
- an object of type
Agent
-
newAgent
public Agent newAgent(QualifiedName ag, String label)
Creates a newAgent
with provided identifier and label- Overrides:
newAgent
in classProvFactory
- Parameters:
ag
- aQualifiedName
for 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:
newUsed
in 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:
newUsed
in classProvFactory
-
newUsed
public Used newUsed(QualifiedName id, QualifiedName activity, QualifiedName entity)
A factory method to create an instance of a usageUsed
- Overrides:
newUsed
in 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:
newUsed
in 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:ModelConstructor
A factory method to create an instance of a UsageUsed
- Specified by:
newUsed
in interfaceModelConstructor
- Overrides:
newUsed
in 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:
newUsed
in classProvFactory
-
newRole
public Role newRole(Object value, QualifiedName type)
- Specified by:
newRole
in interfaceAtomConstructor
- Overrides:
newRole
in classProvFactory
-
newLabel
public Label newLabel(Object value, QualifiedName type)
- Specified by:
newLabel
in interfaceAtomConstructor
-
newWasGeneratedBy
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, QualifiedName eid, String role, QualifiedName aid)
- Overrides:
newWasGeneratedBy
in 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:
newWasInvalidatedBy
in 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:ModelConstructor
A factory method to create an instance of an invalidationWasInvalidatedBy
- Specified by:
newWasInvalidatedBy
in interfaceModelConstructor
- Overrides:
newWasInvalidatedBy
in 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:
newWasAssociatedWith
in 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:ModelConstructor
A factory method to create an instance of an AssociationWasAssociatedWith
- Specified by:
newWasAssociatedWith
in interfaceModelConstructor
- Overrides:
newWasAssociatedWith
in 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:
newWasAssociatedWith
in classProvFactory
-
newWasAssociatedWith
public WasAssociatedWith newWasAssociatedWith(WasAssociatedWith u)
- Overrides:
newWasAssociatedWith
in classProvFactory
-
newWasAttributedTo
public WasAttributedTo newWasAttributedTo(QualifiedName id, QualifiedName entity, QualifiedName agent)
A factory method to create an instance of an attributionWasAttributedTo
- Overrides:
newWasAttributedTo
in 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:ModelConstructor
A factory method to create an instance of an attributionWasAttributedTo
- Specified by:
newWasAttributedTo
in interfaceModelConstructor
- Overrides:
newWasAttributedTo
in 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:ProvFactory
A factory method to create an instance of a specializationSpecializationOf
- Specified by:
newSpecializationOf
in interfaceModelConstructor
- Overrides:
newSpecializationOf
in classProvFactory
- Parameters:
specific
- an identifier (QualifiedName
) for the specificEntity
general
- 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:
newAlternateOf
in interfaceModelConstructor
- Overrides:
newAlternateOf
in classProvFactory
- Parameters:
entity1
- an identifier for the firstEntity
entity2
- 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:
newWasDerivedFrom
in 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:
newWasDerivedFrom
in 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:ModelConstructor
A factory method to create an instance of a derivationWasDerivedFrom
- Specified by:
newWasDerivedFrom
in interfaceModelConstructor
- Overrides:
newWasDerivedFrom
in 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:
newDocument
in classProvFactory
-
newDocument
public Document newDocument(Document graph)
- Overrides:
newDocument
in classProvFactory
-
newWasInformedBy
public WasInformedBy newWasInformedBy(QualifiedName id, QualifiedName informed, QualifiedName informant)
A factory method to create an instance of an communicationWasInformedBy
- Overrides:
newWasInformedBy
in 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:ModelConstructor
A factory method to create an instance of an communicationWasInformedBy
- Specified by:
newWasInformedBy
in interfaceModelConstructor
- Overrides:
newWasInformedBy
in 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:
newWasInfluencedBy
in 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:ModelConstructor
A factory method to create an instance of an influenceWasInfluencedBy
- Specified by:
newWasInfluencedBy
in interfaceModelConstructor
- Overrides:
newWasInfluencedBy
in 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:
newHadMember
in classProvFactory
-
newHadMember
public HadMember newHadMember(QualifiedName c, Collection<QualifiedName> e)
- Specified by:
newHadMember
in interfaceModelConstructor
- Overrides:
newHadMember
in classProvFactory
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName aid, QualifiedName eid)
- Overrides:
newWasStartedBy
in classProvFactory
-
newWasStartedBy
public WasStartedBy newWasStartedBy(QualifiedName id, QualifiedName activity, QualifiedName trigger, QualifiedName starter)
A factory method to create an instance of a startWasStartedBy
- Overrides:
newWasStartedBy
in 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:ModelConstructor
A factory method to create an instance of a startWasStartedBy
- Specified by:
newWasStartedBy
in interfaceModelConstructor
- Overrides:
newWasStartedBy
in classProvFactory
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
-
newWasEndedBy
public WasEndedBy newWasEndedBy(QualifiedName id, QualifiedName aid, QualifiedName eid)
Description copied from class:ProvFactory
A factory method to create an instance of an endWasEndedBy
- Overrides:
newWasEndedBy
in classProvFactory
aid
- 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:
newWasEndedBy
in 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:ModelConstructor
A factory method to create an instance of an endWasEndedBy
- Specified by:
newWasEndedBy
in interfaceModelConstructor
- Overrides:
newWasEndedBy
in classProvFactory
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
-
newDocument
public Document newDocument(Namespace namespace, Collection<Statement> statements, Collection<Bundle> bundles)
Description copied from interface:ModelConstructor
A factory method to create an instance of aDocument
- Specified by:
newDocument
in interfaceModelConstructor
- Overrides:
newDocument
in 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:
newActedOnBehalfOf
in 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:ModelConstructor
A factory method to create an instance of a delegationActedOnBehalfOf
- Specified by:
newActedOnBehalfOf
in interfaceModelConstructor
- Overrides:
newActedOnBehalfOf
in 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:
newActedOnBehalfOf
in 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:
newNamedBundle
in classProvFactory
-
newNamedBundle
public Bundle newNamedBundle(QualifiedName id, Namespace namespace, Collection<Statement> statements)
Description copied from interface:ModelConstructor
A factory method to create an instance of a BundleBundle
- Specified by:
newNamedBundle
in interfaceModelConstructor
- Overrides:
newNamedBundle
in classProvFactory
- Parameters:
id
- an identifier for the bundlenamespace
- aNamespace
object 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:
newNamedBundle
in classProvFactory
-
newQualifiedHadMember
public QualifiedHadMember newQualifiedHadMember(QualifiedName id, QualifiedName c, Collection<QualifiedName> e, Collection<Attribute> attributes)
- Specified by:
newQualifiedHadMember
in interfaceModelConstructorExtension
- Overrides:
newQualifiedHadMember
in classProvFactory
-
newQualifiedSpecializationOf
public QualifiedSpecializationOf newQualifiedSpecializationOf(QualifiedName id, QualifiedName specific, QualifiedName general, Collection<Attribute> attributes)
- Specified by:
newQualifiedSpecializationOf
in interfaceModelConstructorExtension
- Overrides:
newQualifiedSpecializationOf
in classProvFactory
-
newQualifiedAlternateOf
public QualifiedAlternateOf newQualifiedAlternateOf(QualifiedName id, QualifiedName alt1, QualifiedName alt2, Collection<Attribute> attributes)
- Specified by:
newQualifiedAlternateOf
in interfaceModelConstructorExtension
- Overrides:
newQualifiedAlternateOf
in classProvFactory
-
-