Class Expansion
java.lang.Object
org.openprovenance.prov.validation.Expansion
This class checks that 1. All mandatory arguments are present, and have an
entry in the corresponding table. Absent mandatory argument results in a
malformedExpression, and missing entries are added. 2. All expandable
optional arguments have been added, with an entry in the table.
- Author:
- lavm Relation Expandable Non-expandable wasGeneratedBy(id;e,a,t,attrs) id,a,t used(id;a,e,t,attrs) id,e,t wasInformedBy(id;a2,a1,attrs) id wasStartedBy(id;a2,e,a1,t,attrs) id,e,a1,t wasEndedBy(id;a2,e,a1,t,attrs) id,e,a1,t wasInvalidatedBy(id;e,a,t,attrs) id,a,t wasDerivedFrom(id;e2,e1,a,g2,u1,attrs) id,g2,u1 a wasDerivedFrom(id;e2,e1,attrs) id wasAttributedTo(id;e,ag,attr) id wasAssociatedWith(id;a,ag,pl,attrs) id,ag pl actedOnBehalfOf(id;ag2,ag1,a,attrs) id,a wasInfluencedBy(id;e2,e1,attrs) id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckActivityArgument(Config config, Statement o, int i) voidcheckActivityIsDeclared(QualifiedName activity1) Checks an activity is declared.booleancheckAgentArgument(Config config, Statement o, int i) voidcheckAgentIsDeclared(QualifiedName agent1) Checks an agent is declared.booleancheckEntityArgument(Config config, Statement o, int i) voidcheckEntityIsDeclared(QualifiedName entity1) Checks an entity is declared.voidexpand_activityArgument(Config config, Statement o, int i) voidexpand_agentArgument(Config config, Statement o, int i) voidexpand_entityArgument(Config config, Statement o, int i) voidexpand_generationArgument(Config config, Statement o, int i) voidexpand_timeArgument(Config config, Statement o, int i) voidexpand_usageArgument(Config config, Statement o, int i) voidvoidexpansion_actedOnBehalfOf(Config config, ActedOnBehalfOf del) voidexpansion_activity(Config config, Activity a) voidexpansion_agent(Config config, Agent ag) voidexpansion_alternateOf(Config config, AlternateOf alt) voidexpansion_entity(Config config, Entity e) voidexpansion_membership(Config config, HadMember mem) voidexpansion_mentionOf(Config config, MentionOf men) voidexpansion_specializationOf(Config config, SpecializationOf spec) voidexpansion_used(Config config, Used use) voidexpansion_wasAssociatedWith(Config config, WasAssociatedWith assoc) voidexpansion_wasAttributedTo(Config config, WasAttributedTo attr) voidexpansion_wasDerivedFrom(Config config, WasDerivedFrom der) voidexpansion_wasEndedBy(Config config, WasEndedBy end) voidexpansion_wasGeneratedBy(Config config, WasGeneratedBy gen) voidexpansion_wasInfluencedBy(Config config, WasInfluencedBy infl) voidexpansion_wasInformedBy(Config config, WasInformedBy inf) voidexpansion_wasInvalidatedBy(Config config, WasInvalidatedBy inv) voidexpansion_wasStartedBy(Config config, WasStartedBy start) <T> voidmalformedExpression(T tmp) <T> voidmalformedExpression(T tmp, boolean stop)
-
Constructor Details
-
Expansion
-
-
Method Details
-
expansion
-
getMalformed
-
checkEntityArgument
-
checkAgentArgument
-
checkActivityArgument
-
checkActivityIsDeclared
Checks an activity is declared. If not, add a declaration in activity table.- Parameters:
activity1- an activity
-
checkEntityIsDeclared
Checks an entity is declared. If not, add a declaration in entity table.- Parameters:
entity1- an entity id
-
checkAgentIsDeclared
Checks an agent is declared. If not, add a declaration in agent table.- Parameters:
agent1- an agent id
-
expand_entityArgument
-
expand_activityArgument
-
expand_timeArgument
-
expand_agentArgument
-
expand_usageArgument
-
expand_generationArgument
-
expansion_specializationOf
-
expansion_mentionOf
-
expansion_alternateOf
-
expansion_agent
-
expansion_activity
-
expansion_entity
-
expansion_wasStartedBy
-
expansion_wasEndedBy
-
expansion_used
-
expansion_wasGeneratedBy
-
expansion_wasInvalidatedBy
-
expansion_wasDerivedFrom
-
expansion_wasAssociatedWith
-
expansion_actedOnBehalfOf
-
expansion_wasAttributedTo
-
expansion_wasInformedBy
-
expansion_wasInfluencedBy
-
expansion_membership
-
malformedExpression
public <T> void malformedExpression(T tmp) -
malformedExpression
public <T> void malformedExpression(T tmp, boolean stop)
-