Class Expansion
- java.lang.Object
-
- org.openprovenance.prov.validation.Expansion
-
public class Expansion extends Object
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
-
-
Method Summary
-
-
-
Method Detail
-
getMalformed
public MalformedStatements getMalformed()
-
checkActivityIsDeclared
public void checkActivityIsDeclared(QualifiedName activity1)
Checks an activity is declared. If not, add a declaration in activity table.- Parameters:
activity1- an activity
-
checkEntityIsDeclared
public void checkEntityIsDeclared(QualifiedName entity1)
Checks an entity is declared. If not, add a declaration in entity table.- Parameters:
entity1- an entity id
-
checkAgentIsDeclared
public void checkAgentIsDeclared(QualifiedName agent1)
Checks an agent is declared. If not, add a declaration in agent table.- Parameters:
agent1- an agent id
-
expansion_specializationOf
public void expansion_specializationOf(Config config, SpecializationOf spec)
-
expansion_alternateOf
public void expansion_alternateOf(Config config, AlternateOf alt)
-
expansion_wasStartedBy
public void expansion_wasStartedBy(Config config, WasStartedBy start)
-
expansion_wasEndedBy
public void expansion_wasEndedBy(Config config, WasEndedBy end)
-
expansion_wasGeneratedBy
public void expansion_wasGeneratedBy(Config config, WasGeneratedBy gen)
-
expansion_wasInvalidatedBy
public void expansion_wasInvalidatedBy(Config config, WasInvalidatedBy inv)
-
expansion_wasDerivedFrom
public void expansion_wasDerivedFrom(Config config, WasDerivedFrom der)
-
expansion_wasAssociatedWith
public void expansion_wasAssociatedWith(Config config, WasAssociatedWith assoc)
-
expansion_actedOnBehalfOf
public void expansion_actedOnBehalfOf(Config config, ActedOnBehalfOf del)
-
expansion_wasAttributedTo
public void expansion_wasAttributedTo(Config config, WasAttributedTo attr)
-
expansion_wasInformedBy
public void expansion_wasInformedBy(Config config, WasInformedBy inf)
-
expansion_wasInfluencedBy
public void expansion_wasInfluencedBy(Config config, WasInfluencedBy infl)
-
malformedExpression
public <T> void malformedExpression(T tmp)
-
malformedExpression
public <T> void malformedExpression(T tmp, boolean stop)
-
-