diff --git a/AmpersandData/FormalAmpersand/AST.adl b/AmpersandData/FormalAmpersand/AST.adl index 8965449636..84e8681b6d 100644 --- a/AmpersandData/FormalAmpersand/AST.adl +++ b/AmpersandData/FormalAmpersand/AST.adl @@ -1,6 +1,7 @@ CONTEXT RAP IN ENGLISH --! It is allowed to change texts and/or the order of texts IF AND ONLY IF this is also done in the corresponding Haskell files !-- INCLUDE "AST.ifc" +--INCLUDE "MinimalAST.xlsx" -- Contains minimal population. Anything discarded from it must break an invariant INCLUDE "Contexts.adl" INCLUDE "Relations.adl" INCLUDE "Rules.adl" diff --git a/AmpersandData/FormalAmpersand/AST.ifc b/AmpersandData/FormalAmpersand/AST.ifc index cdc60ee576..1f1a7b8be1 100644 --- a/AmpersandData/FormalAmpersand/AST.ifc +++ b/AmpersandData/FormalAmpersand/AST.ifc @@ -1,47 +1,105 @@ -CONTEXT "AST Interface" IN ENGLISH +CONTEXT "AST Interface" IN ENGLISH -INTERFACE Ampersand FOR Ampersand : I[SESSION];'_SESSION' -TABS[ Context : V[SESSION*Context] - COLS ["name" : name[Context*ContextIdentifier] - , patterns : usedPatterns - ] - , "Patterns" : V[SESSION*Pattern] - COLS [ Pattern : name[Pattern*PatternIdentifier] - , Purpose : purpose - , Rules : rules - , Relations : declarations - ] - , "Specializations" : V[SESSION*Gen] - COLS [ Generic : gengen - , Specific : genspc - ] - , "Concepts" : V[SESSION*PlainConcept] - COLS [ Id: I - -- , Definition : cptdf - -- , Purpose : cptpurpose - -- , "Technical Type" : cpttp - ] - , "Relations" : V[SESSION*Relation] - COLS [ name : name - , signature : sign - , properties : decprps;declaredthrough - , pragmaL : decprL - , pragmaM : decprM - , pragmaR : decprR - , Meaning : decmean - , population : in~ - ] - , "Rules" : V[SESSION*Rule] - COLS [ name : name - , signature : sign - , Expression : rrexp[Rule*Expression] - , Meaning : rrmean - , Purpose : rrpurpose - , Property : declaredthrough - ] --- , "All plugs" : V[ONE*Context]; +INTERFACE Ampersand FOR Ampersand : '_SESSION';V[SESSION*Context] +BOX + [ "Context" : I + , "name" : name[Context*ContextIdentifier] + ] +INTERFACE "Context" FOR Ampersand : I[Context] TABS + [ "About" : I BOX + [ "name" : name[Context*ContextIdentifier] + , "versionInfo" : versionInfo + , "dbName" : dbName + , "owner" : owner[Context*Account] + , "valid~" : valid[Rule*Context]~ + ] + , "Patterns" : patterns[Context*Pattern] BOX + [ "Pattern" : I INTERFACE Pattern] + , "Gens" : concs ; (I[Concept] + /\ + (gengen[Gen*Concept]~;gengen[Gen*Concept]) /\ + ( -(genspc[Gen*Concept]~;genspc[Gen*Concept]))) + INTERFACE GenTree + , "Concepts" : concs[Context*Concept] + , "Relations" : context[Relation*Context]~ LINKTO INTERFACE "Relation" + , "Roles" : allRoles[Context*Role] + , "allConjuncts" : allConjuncts[Context*Conjunct] + , "Rules" : allRules[Context*Rule] INTERFACE "Rule" + ] +INTERFACE GenTree FOR Ampersand : I[Concept] +BOX [ concept : I[Concept] + , "Kinds" : gengen~;genspc LINKTO INTERFACE GenTree + ] +INTERFACE Pattern FOR Ampersand : I[Pattern] +BOX [ Pattern : name[Pattern*PatternIdentifier] + , "patterns~" : patterns[Context*Pattern]~ + , "Relations" : declarations[Pattern*Relation] LINKTO INTERFACE "Relation" + , "rules" : rules[Pattern*Rule] + , "purpose" : purpose[Pattern*Purpose] ] +INTERFACE "Rule" FOR Ampersand : I[Rule] +BOX [ "name" : name[Rule*RuleID] + , "valid" : valid[Rule*Context] + , "allRules~" : allRules[Context*Rule]~ + , "originatesFrom~" : originatesFrom[Conjunct*Rule]~ + , "rules~" : rules[Pattern*Rule]~ + , "maintains~ (Role)" : maintains[Role*Rule]~ + , "term (Expression)" : term[Rule*Expression] + , "tgtConcept" : tgtConcept[Rule*Concept] + , "srcConcept" : srcConcept[Rule*Concept] + , "term" : term[Rule*Expression] + , "sign" : sign[Rule*Signature] + , "maintains~ (Plug)" : maintains[Plug*Rule]~ + , "origin" : origin[Rule*Origin] + , "rrviols" : rrviols + , "pairView" : pairView + , "message" : message + , "conjunctIds" : conjunctIds + , "rrmean" : rrmean + , "rrpurpose" : rrpurpose + ] + +INTERFACE "Conjunct" FOR Ampersand : I[Conjunct] BOX + [ "ID" : I + , "originatesFrom" : originatesFrom[Conjunct*Rule] + , "conjunct" : conjunct[Conjunct*Expression] + ] +INTERFACE "Concept" FOR Ampersand : I[Concept] BOX + [ concept : I + , name : name + , ttype : ttype + , "source~" : source~ LINKTO INTERFACE Relation + , "target~" : target~ LINKTO INTERFACE Relation + , "gengen~" : gengen~ + , "genspc~" : genspc~ + , "rootConcept~" : rootConcept~ + , "src of expression~" : src[Expression*Concept]~ + , "tgt of expression~" : tgt[Expression*Concept]~ + , "src of sign~" : src[Signature*Concept]~ + , "tgt of sign~" : tgt[Signature*Concept]~ + , "concept~" : concept~ + , "conceptAttribute" : conceptAttribute + , "in" : in[Concept*Plug] + ] + +INTERFACE Expression FOR Ampersand : I[Expression] +BOX [ expression: I[Expression] + , first : first LINKTO INTERFACE Expression + , operator : operator + , second : second LINKTO INTERFACE Expression + , arg : arg[UnaryTerm*Expression] + , term : term[Rule*Expression] + , bind : bind LINKTO INTERFACE Expression + , singleton : singleton LINKTO INTERFACE Expression + ] +INTERFACE Signature FOR Ampersand : I[Signature] +BOX [ Signature: I[Signature] + , src : src[Signature*Concept] LINKTO INTERFACE "Concept" + , tgt : tgt[Signature*Concept] LINKTO INTERFACE "Concept" + , "sign~ (Relation)" : sign[Relation*Signature]~ LINKTO INTERFACE "Relation" + , "sign~ (Rule)" : sign[Rule*Signature]~ LINKTO INTERFACE "Rule" + ] INTERFACE Atoms FOR Ampersand : I[SESSION];'_SESSION' TABS[ Atoms : V[SESSION*Atom] COLS [ "Atom" : I @@ -64,25 +122,63 @@ TABS[ Atoms : V[SESSION*Atom] ] - -INTERFACE Pattern FOR Ampersand : I[Pattern] -BOX [ Pattern : name[Pattern*PatternIdentifier] - ] +INTERFACE PropertyRule FOR Ampersand : I[PropertyRule] +BOX [ "declaredthrough": declaredthrough[PropertyRule*Property] + , "decprps~" : decprps[Relation*PropertyRule]~ LINKTO INTERFACE "Relation" + ] + INTERFACE Gen FOR Ampersand : I[Gen] -BOX [ gengen : gengen - , genspc : genspc +BOX [ "gens~" : gens~ + , "gengen" : gengen + , "genspc" : genspc ] INTERFACE Relation FOR Ampersand : I[Relation] -BOX [ name : name - , sign : sign - , decprL : decprL - , decprM : decprM - , decprR : decprR - , meaning : decmean - , purpose : decpurpose - , population: in~ +BOX [ "affectedInvConjunctIds" : affectedInvConjunctIds[Relation*Conjunct] + , "affectedSigConjunctIds" : affectedSigConjunctIds[Relation*Conjunct] + , "context" : context[Relation*Context] + , "decmean" : decmean[Relation*Meaning] + , "decprL" : decprL[Relation*String] + , "decprM" : decprM[Relation*String] + , "decprR" : decprR[Relation*String] + , "decprps" : decprps[Relation*PropertyRule] + , "decpurpose" : decpurpose[Relation*Purpose] + , "name" : name[Relation*Identifier] + , "prop" : prop[Relation*Property] + , "sign" : sign[Relation*Signature] + , "source" : source[Relation*Concept] + , "srcAtt" : srcAtt[Relation*SqlAttribute] + , "target" : target[Relation*Concept] + , "tgtAtt" : tgtAtt[Relation*SqlAttribute] + , "bind~" : bind[Expression*Relation]~ + , "declarations~" : declarations[Pattern*Relation]~ + , "in~" : in[Pair*Relation]~ + BOX + [ l : l + , r : r + ] + , "relations~" : relations[Context*Relation]~ + , "relsInPlug~" : relsInPlug[Plug*Relation]~ ] -ENDCONTEXT \ No newline at end of file + +INTERFACE TblSQL FOR Ampersand : I[TblSQL] +BOX [ "rootConcept" : rootConcept[TblSQL*Concept] + , "key" : key[TblSQL*SqlAttribute] + , "reprType" : reprType[TblSQL*TType] + ] +INTERFACE SqlAttribute FOR Ampersand : I[SqlAttribute] +BOX [ "table" : table + , "key~" : key~ + , "conceptAttribute~" : conceptAttribute~ + , "concept" : concept + , "tgtAtt~" : tgtAtt~ + , "srcAtt~" : srcAtt~ + ] + +ENDCONTEXT + + + + diff --git a/AmpersandData/FormalAmpersand/AST.xlsx b/AmpersandData/FormalAmpersand/AST.xlsx index 5c07dc21d2..28b89b003c 100644 Binary files a/AmpersandData/FormalAmpersand/AST.xlsx and b/AmpersandData/FormalAmpersand/AST.xlsx differ diff --git a/AmpersandData/FormalAmpersand/Conjuncts.adl b/AmpersandData/FormalAmpersand/Conjuncts.adl index 6a830ca17c..2b6d3a4ac9 100644 --- a/AmpersandData/FormalAmpersand/Conjuncts.adl +++ b/AmpersandData/FormalAmpersand/Conjuncts.adl @@ -8,7 +8,8 @@ RELATION rc_dnfClauses[Conjunct*DnfClause] RELATION conjuncts[Rule*Expression] RELATION expr2dnfClause[Expression*DnfClause] [UNI,TOT] RELATION allShifts[DnfClause*DnfClause] -RELATION rrexp[Rule*Expression] [UNI,TOT] +--RELATION rrexp[Rule*Expression] [UNI,TOT] HJO: Removed. Is the same as term[Rule*Expression] +RELATION term[Rule*Expression][UNI,TOT] --is defined somewhere else too. RELATION conjNF[Expression*Expression] [UNI,TOT] RELATION exprIsc2list[Expression*Expression] [TOT] RELATION name[Rule*RuleID] [UNI,TOT] @@ -19,7 +20,7 @@ MEANING "All conjuncts in a quad are derived by means of the relation ``conjunct RULE Conjuncts2 : rc_conjunct~;rc_dnfClauses = expr2dnfClause;allShifts MEANING "A conjunct in a quad stores all dnf-clauses that are derived from the expression in that conjunct." -RULE defconjuncts : conjuncts = rrexp;conjNF;exprIsc2list +RULE defconjuncts : conjuncts = term[Rule*Expression];conjNF;exprIsc2list MEANING "The conjuncts in a rule are defined as the top-level subexpressions in the conjunctive normal form of the expression related to that rule." RULE Conjuncts4 : qConjuncts~;qRule |- rc_rulename;name~ diff --git a/AmpersandData/FormalAmpersand/Contexts.adl b/AmpersandData/FormalAmpersand/Contexts.adl index 46b40fa4f4..89fa6e1b21 100644 --- a/AmpersandData/FormalAmpersand/Contexts.adl +++ b/AmpersandData/FormalAmpersand/Contexts.adl @@ -24,13 +24,13 @@ PATTERN Context RELATION name[Context*ContextIdentifier] [UNI,TOT,INJ,SUR] MEANING "The name of a context." RELATION valid[Rule*Context] - RELATION usedPatterns[Context*Pattern] + RELATION patterns[Context*Pattern] MEANING "The patterns in a context." RELATION concs[Context*Concept] MEANING "A concept, mentioned anywhere in a context." RELATION gens[Context*Gen] MEANING "The user-defined generalization rules in a context." - RELATION relations[Context*Relation] [INJ] -- SUR is maintained by RULE SURrelations + RELATION relations[Context*Relation] [INJ] -- SUR is maintained by RULE SURrelations FIX: Compare with context[Relation*Context] ENDPATTERN ENDCONTEXT diff --git a/AmpersandData/FormalAmpersand/Contexts.xlsx b/AmpersandData/FormalAmpersand/Contexts.xlsx index 5eaab7816a..d3a161c5df 100644 Binary files a/AmpersandData/FormalAmpersand/Contexts.xlsx and b/AmpersandData/FormalAmpersand/Contexts.xlsx differ diff --git a/AmpersandData/FormalAmpersand/Expressions.adl b/AmpersandData/FormalAmpersand/Expressions.adl index 28ee1d1bac..938cc8f040 100644 --- a/AmpersandData/FormalAmpersand/Expressions.adl +++ b/AmpersandData/FormalAmpersand/Expressions.adl @@ -7,20 +7,17 @@ PROCESS "Expression definitions" RELATION patterns[Context*Pattern] RELATION src[Expression*Concept] RELATION tgt[Expression*Concept] - RELATION lhs[BinaryTerm*Expression] - RELATION rhs[BinaryTerm*Expression] RELATION bind[Expression*Relation] RELATION term[Rule*Expression] - RELATION rrexp[Rule*ExpressionID] - + VIEW Equivalence : Equivalence(TXT "RULE ", first, TXT " = ", second) VIEW Inclusion : Inclusion (TXT "RULE ", first, TXT " |- ", second) VIEW Truth : Truth (TXT "RULE ", I[Expression]) VIEW Relation : Relation(name, TXT "[", source;name, TXT "*", target;name, TXT "]") - VIEW UnaryMinus : UnaryMinus(TXT "-", arg) - VIEW Converse : Converse (arg, TXT "~") - VIEW KleeneStar : KleeneStar(arg, TXT "*") - VIEW KleenePlus : KleenePlus(arg, TXT "+") + VIEW UnaryMinus : UnaryMinus(TXT "-", arg[UnaryTerm*Expression]) + VIEW Converse : Converse (arg[UnaryTerm*Expression], TXT "~") + VIEW KleeneStar : KleeneStar(arg[UnaryTerm*Expression], TXT "*") + VIEW KleenePlus : KleenePlus(arg[UnaryTerm*Expression], TXT "+") VIEW Intersection : Intersection (TXT "(", first, TXT "/\\", second, TXT ")") VIEW Union : Union (TXT "(", first, TXT "\\/", second, TXT ")") VIEW Minus : Minus (TXT "(", first, TXT "-" , second, TXT ")") @@ -32,7 +29,7 @@ PROCESS "Expression definitions" CONCEPT Rule "" - RELATION rrexp[Rule*Expression] [UNI] + RELATION term[Rule*Expression] [UNI,TOT] CONCEPT Operator "" CONCEPT BinaryTerm "" @@ -45,6 +42,15 @@ PROCESS "Expression definitions" CLASSIFY UnaryTerm ISA Expression RELATION arg[UnaryTerm*Expression] [UNI] + CONCEPT Atom "" + CLASSIFY Atom ISA Expression + RELATION singleton[Atom*Expression] [UNI] + + CONCEPT "V" "The cartesian product." + CLASSIFY "V" ISA Expression + RELATION userSrc["V"*Concept] [UNI] + RELATION userTrg["V"*Concept] [UNI] + CLASSIFY Equivalence ISA Rule CLASSIFY Inclusion ISA Rule CLASSIFY Truth ISA Rule diff --git a/AmpersandData/FormalAmpersand/Generics.adl b/AmpersandData/FormalAmpersand/Generics.adl index e70e4bc452..f56327bedb 100644 --- a/AmpersandData/FormalAmpersand/Generics.adl +++ b/AmpersandData/FormalAmpersand/Generics.adl @@ -17,16 +17,16 @@ RELATION dbName[Context*DatabaseName] [UNI,TOT] -- e.g. 'GRCengine'; --[Relations]-- --IDENT Relations: Relation(name,source,target,context) -- the name of the relation must be unique; it is therefore not the same as a RAP:Relation. -RELATION affectedInvConjunctIds[Relation*ConjunctID] +RELATION affectedInvConjunctIds[Relation*Conjunct] MEANING "When a pair in a relation is edited (created, updated or deleted), an (invariant) conjunct may be affected" -RELATION affectedSigConjunctIds[Relation*ConjunctID] +RELATION affectedSigConjunctIds[Relation*Conjunct] MEANING "When a pair in a relation is edited (created, updated or deleted), a (signal) conjunct may be affected" --[Concepts]-- RELATION name[Concept*Identifier][TOT,UNI] -RELATION affectedInvConjunctIds[Concept*ConjunctID] +RELATION affectedInvConjunctIds[Concept*Conjunct] MEANING "When an atom in a concept is edited (created, updated or deleted), a (invariant) conjunct may be affected" -RELATION affectedSigConjunctIds[Concept*ConjunctID] +RELATION affectedSigConjunctIds[Concept*Conjunct] MEANING "When an atom in a concept is edited (created, updated or deleted), a (signal) conjunct may be affected" --[Rules]-- @@ -39,7 +39,7 @@ RELATION meaning[Rule*Meaning] -- e.g. 'bfOUprop[BusinessFunction] is antisymmet RELATION message[Rule*Message] -- e.g. 'bfOUprop[BusinessFunction] is not antisymmetric' RELATION srcConcept[Rule*Concept][UNI,TOT] -- e.g. 'BusinessFunction' RELATION tgtConcept[Rule*Concept][UNI,TOT] -- e.g. 'BusinessFunction' -RELATION conjunctIds[Rule*ConjunctID] -- e.g. 'conj_159' +RELATION conjunctIds[Rule*Conjunct] -- e.g. 'conj_159' RELATION pairView[Rule*PairView] -- e.g. -- array -- ( array ( 'segmentType' => 'Text', 'Text' => '{EX} DelPair;rliAcceptableRiskLevel;RLI;') @@ -76,14 +76,8 @@ RELATION expSQL[PairViewSegment*MySQLQuery] [UNI] -- IFF SegmentType == 'Exp' --[Conjuncts]-- RELATION allConjuncts[Context*Conjunct] [SUR,INJ] -RELATION signalRuleNames[Conjunct*Rule] -- e.g. 'Activation of Managed BFControls' -- this is a signal rule -RELATION invariantRuleNames[Conjunct*Rule] -- similar, for invariant rules. -RELATION violationsSQL[Conjunct*MySQLQuery] -- e.g. '/* case: (EIsc lst\\\'@(_:_:_)) --- nhIsDashboard /\\\\ -I[NormHierarchy] ([NormHierarchy*NormHierarchy]) */ --- SELECT DISTINCT isect0.`NormHierarchy` AS `src`, isect0.`tgt_nhIsDashboard` AS `tgt` --- FROM ( SELECT `NormHierarchy`, `tgt_nhIsDashboard` --- FROM `NormHierarchy` WHERE `NormHierarchy` IS NOT NULL AND `tgt_nhIsDashboard` IS NOT NULL) AS isect0 --- WHERE isect0.NormHierarchy <> isect0.`tgt_nhIsDashboard` AND isect0.NormHierarchy IS NOT NULL AND isect0.`tgt_nhIsDashboard` IS NOT NULL' +RELATION originatesFrom[Conjunct*Rule] [TOT] -- rule where the conjunct originates from. +RELATION conjunct[Conjunct*Expression] [TOT] --[Roles]-- diff --git a/AmpersandData/FormalAmpersand/MinimalAST.xlsx b/AmpersandData/FormalAmpersand/MinimalAST.xlsx new file mode 100644 index 0000000000..8223898b50 Binary files /dev/null and b/AmpersandData/FormalAmpersand/MinimalAST.xlsx differ diff --git a/AmpersandData/FormalAmpersand/Rules.adl b/AmpersandData/FormalAmpersand/Rules.adl index e69586e73c..359dcd8898 100644 --- a/AmpersandData/FormalAmpersand/Rules.adl +++ b/AmpersandData/FormalAmpersand/Rules.adl @@ -7,7 +7,7 @@ REPRESENT RuleID TYPE ALPHANUMERIC RELATION name[Rule*RuleID] [UNI,TOT,INJ] MEANING "The name of a rule." RELATION sign[Rule*Signature] [UNI,TOT] -RELATION rrexp[Rule*Expression] [UNI,TOT] +RELATION term[Rule*Expression] [UNI,TOT] MEANING "The rule expressed in relation algebra." RELATION rrmean[Rule * Meaning] MEANING "The meanings of a rule." diff --git a/AmpersandData/FormalAmpersand/Rules.ifc b/AmpersandData/FormalAmpersand/Rules.ifc index f8b7d36cd4..6591cbffcd 100644 --- a/AmpersandData/FormalAmpersand/Rules.ifc +++ b/AmpersandData/FormalAmpersand/Rules.ifc @@ -31,7 +31,7 @@ TABS[ atoms : V[SESSION*Atom] , rules : V[SESSION*Rule] COLS [ name : name , signature : sign - , expression : rrexp + , term : term[Rule*Expression] , meaning : rrmean , purpose : rrpurpose ] diff --git a/AmpersandData/FormalAmpersand/Tables.adl b/AmpersandData/FormalAmpersand/Tables.adl index 12af58bd67..7a6bd19c30 100644 --- a/AmpersandData/FormalAmpersand/Tables.adl +++ b/AmpersandData/FormalAmpersand/Tables.adl @@ -1,6 +1,6 @@ CONTEXT AST IN ENGLISH INCLUDE "Atoms.adl" -INCLUDE "Tables.xlsx" +--INCLUDE "Tables.xlsx" PATTERN "Kernel Tables" @@ -13,14 +13,15 @@ VIOLATION ( TXT "{EX} NewStruct;SqlAttribute" , TXT ";concept;SqlAttribute;_NEW;Concept;", SRC I ) RULE "TOT conceptAttribute (del)" : conceptAttribute;conceptAttribute~ |- I[Concept] -VIOLATION ( TXT "{EX} DelPair;concept;SqlAttribute;", SRC conceptAttribute, TXT ";Concept;", SRC I +VIOLATION ( TXT "{EX} DelPair;concept;SqlAttribute;", SRC conceptAttribute, TXT ";Concept;", SRC I -- HJO20160604: @Stef, hoe weet je zeker dat die vooraf bestaat?? , TXT "{EX} DelPair;conceptAttribute;Concept;", SRC I, TXT ";SqlAttribute;", SRC conceptAttribute , TXT "{EX} DelAtom;SqlAttribute;", SRC I ) ROLE ExecEngine MAINTAINS "TOT conceptAttribute (new)", "TOT conceptAttribute (del)" -CLASSIFY TblSQL ISA PlugInfo -CLASSIFY BinSQL ISA PlugInfo +CLASSIFY TblSQL ISA SQLPlug +CLASSIFY BinSQL ISA SQLPlug +CLASSIFY SQLPlug ISA Plug RELATION rootConcept[TblSQL*Concept] [UNI] @@ -36,15 +37,15 @@ VIOLATION ( TXT "{EX} DelPair;rootConcept;TblSQL;", SRC rootConcept~, TXT ";Conc ) ROLE ExecEngine MAINTAINS "New TblSQL", "Del TblSQL" -RELATION table[SqlAttribute*PlugInfo] [UNI] +RELATION table[SqlAttribute*SQLPlug] [UNI] RULE "Assign attributes to tables" : rootConcept;isaStar~;conceptAttribute |- table~ MEANING "The concept attributes of all specializations of a root concept are in the same table." -VIOLATION ( TXT "{EX} InsPair;table;SqlAttribute;", TGT I, TXT ";PlugInfo;", SRC I[PlugInfo] ) +VIOLATION ( TXT "{EX} InsPair;table;SqlAttribute;", TGT I, TXT ";SQLPlug;", SRC I[SQLPlug] ) ROLE ExecEngine MAINTAINS "Assign attributes to tables" RELATION key[TblSQL*SqlAttribute] [UNI,TOT] -MEANING "Each PlugInfo has one field designated to contain atom keys." +MEANING "Each SQLPlug has one field designated to contain atom keys." RULE "Insert key of a TblSQL" : rootConcept;conceptAttribute |- key MEANING "The conceptattribute of the root concept of a TblSQL is the key of that TblSQL." @@ -71,15 +72,15 @@ MEANING "The target attribute of a univalent relation is created in the same tab VIOLATION ( TXT "{EX} NewStruct;SqlAttribute" , TXT ";tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;_NEW" , TXT ";concept;SqlAttribute;_NEW;Concept;", SRC target - , TXT ";table;SqlAttribute;_NEW;PlugInfo;", TGT I + , TXT ";table;SqlAttribute;_NEW;SQLPlug;", TGT I ) RULE "clean srcAtt for univalent relations" : (I/\prop;'UNI';prop~);srcAtt |- source;conceptAttribute MEANING "The source attribute of a univalent relation is the concept-table of its source concept." VIOLATION ( TXT "{EX} DelPair;srcAtt;Relation;", SRC I, TXT ";SqlAttribute;", TGT I ) RULE "clean tgtAtt for univalent relations" : (I/\prop;'UNI';prop~);tgtAtt;table |- srcAtt;table MEANING "The target attribute of a univalent relation is removed from the table in which its source attribute resides." -VIOLATION ( TXT "{EX} DelAtom;PlugInfo;", TGT I - , TXT "{EX} DelPair;table;SqlAttribute;", SRC tgtAtt, TXT ";PlugInfo;", TGT I +VIOLATION ( TXT "{EX} DelAtom;SQLPlug;", TGT I + , TXT "{EX} DelPair;table;SqlAttribute;", SRC tgtAtt, TXT ";SQLPlug;", TGT I , TXT "{EX} DelPair;concept;SqlAttribute;", SRC tgtAtt, TXT ";Concept;", SRC target , TXT "{EX} DelAtom;SqlAttribute;", SRC tgtAtt , TXT "{EX} DelPair;tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;", SRC tgtAtt @@ -102,15 +103,15 @@ MEANING "The target attribute of a univalent relation is created in the same tab VIOLATION ( TXT "{EX} NewStruct;SqlAttribute" , TXT ";srcAtt;Relation;", SRC I, TXT ";SqlAttribute;_NEW" , TXT ";concept;SqlAttribute;_NEW;Concept;", SRC source - , TXT ";table;SqlAttribute;_NEW;PlugInfo;", TGT I + , TXT ";table;SqlAttribute;_NEW;SQLPlug;", TGT I ) RULE "clean tgtAtt for injective relations" : ((I/\prop;'INJ';prop~)-prop;'UNI';prop~);tgtAtt |- target;conceptAttribute MEANING "The target attribute of a univalent relation is the concept-table of its target concept." VIOLATION ( TXT "{EX} DelPair;tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;", TGT I ) RULE "clean srcAtt for injective relations" : ((I/\prop;'INJ';prop~)-prop;'UNI';prop~);srcAtt;table |- tgtAtt;table MEANING "The target attribute of a univalent relation is removed from the table in which its source attribute resides." -VIOLATION ( TXT "{EX} DelAtom;PlugInfo;", TGT I - , TXT "{EX} DelPair;table;SqlAttribute;", SRC srcAtt, TXT ";PlugInfo;", TGT I +VIOLATION ( TXT "{EX} DelAtom;SQLPlug;", TGT I + , TXT "{EX} DelPair;table;SqlAttribute;", SRC srcAtt, TXT ";SQLPlug;", TGT I , TXT "{EX} DelPair;concept;SqlAttribute;", SRC srcAtt, TXT ";Concept;", SRC source , TXT "{EX} DelAtom;SqlAttribute;", SRC srcAtt , TXT "{EX} DelPair;srcAtt;Relation;", SRC I, TXT ";SqlAttribute;", SRC srcAtt @@ -141,7 +142,7 @@ VIOLATION ( TXT "{EX} NewStruct;SqlAttribute" ) RULE "new BinSQL" : srcAtt~;((I[Relation]-prop;'INJ';prop~)-prop;'UNI';prop~);tgtAtt |- table;I[BinSQL];table~ -MEANING "Every relation has a pluginfo in which to store its population." +MEANING "Every relation has an SQLPlug in which to store its population." VIOLATION ( TXT "{EX} NewStruct;BinSQL" , TXT ";table;SqlAttribute;", SRC I, TXT ";BinSQL;_NEW" , TXT ";table;SqlAttribute;", TGT I, TXT ";BinSQL;_NEW" @@ -155,17 +156,17 @@ RULE "clear table for n-to-m relations (source)" : ((I-prop;'INJ';prop~)-prop;'UNI';prop~);srcAtt;concept |- source MEANING "The source concept of an n-to-m relation is the concept of the source attribute of that relation." VIOLATION ( TXT "{EX} DelPair;concept;SqlAttribute;", SRC srcAtt, TXT ";Concept;", SRC srcAtt;concept - , TXT "{EX} DelPair;table;SqlAttribute;", SRC srcAtt, TXT ";PlugInfo;", SRC srcAtt;table + , TXT "{EX} DelPair;table;SqlAttribute;", SRC srcAtt, TXT ";SQLPlug;", SRC srcAtt;table , TXT "{EX} DelAtom;SqlAttribute;", SRC srcAtt - , TXT "{EX} DelPair;srcAtt;Relation;", SRC I, TXT ";SqlAttribute;;", SRC srcAtt + , TXT "{EX} DelPair;srcAtt;Relation;", SRC I, TXT ";SqlAttribute;", SRC srcAtt ) RULE "clear table for n-to-m relations (target)" : ((I-prop;'INJ';prop~)-prop;'UNI';prop~);tgtAtt;concept |- target MEANING "The target concept of an n-to-m relation is the concept of the target attribute of that relation." VIOLATION ( TXT "{EX} DelPair;concept;SqlAttribute;", SRC tgtAtt, TXT ";Concept;", SRC tgtAtt;concept - , TXT "{EX} DelPair;table;SqlAttribute;", SRC tgtAtt, TXT ";PlugInfo;", SRC tgtAtt;table + , TXT "{EX} DelPair;table;SqlAttribute;", SRC tgtAtt, TXT ";SQLPlug;", SRC tgtAtt;table , TXT "{EX} DelAtom;SqlAttribute;", SRC tgtAtt - , TXT "{EX} DelPair;tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;;", SRC tgtAtt + , TXT "{EX} DelPair;tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;", SRC tgtAtt ) RULE "remove BinSQL" : I[BinSQL] |- table~;table MEANING "Every BinSQL has two attributes." diff --git a/AmpersandData/FormalAmpersand/Tables.docadl b/AmpersandData/FormalAmpersand/Tables.docadl index c8cab8579a..b6ab41166d 100644 --- a/AmpersandData/FormalAmpersand/Tables.docadl +++ b/AmpersandData/FormalAmpersand/Tables.docadl @@ -1,15 +1,15 @@ CONTEXT AST IN ENGLISH LATEX INCLUDE "TryTables.adl" -PURPOSE CONCEPT PlugInfo +PURPOSE CONCEPT SQLPlug {+Ampersand uses tables to store population in a relational database. -They are called "PlugInfo". +They are called "SQLPlug". The challenge is to translate a partial order of concepts together with a set of binary relations to a tabular structure that corresponds to a relational database. -} -CONCEPT PlugInfo "A PlugInfo is either a TblSQL or a BinSQL." +CONCEPT SQLPlug "AnSQLPlug SQLPlug is either a TblSQL or a BinSQL." PURPOSE CONCEPT TblSQL -{+Ampersand translates the partial order of concepts to a TblSQL, which is a specific form of PlugInfo. +{+Ampersand translates the partial order of concepts to a TblSQL, which is a specific form of SQLPlug. Relations that are either univalent or injective store its population in the same tables. -} CONCEPT TblSQL "A TblSQL is a table structure, meant to store the populations of one or more concepts and zero or more relations." @@ -69,15 +69,15 @@ PURPOSE RULE "Del TblSQL" {+The application removes a TblSQL when a concept ceases to exist. -} -PURPOSE RELATION table[SqlAttribute*PlugInfo] -{+The application keeps register of the attributes of every PlugInfo in the relation table. +PURPOSE RELATION table[SqlAttribute*SQLPlug] +{+The application keeps register of the attributes of every SQLPlug in the relation table. In this way, the administration contains sufficient information to generate database tables if so desired. -} -RELATION table[SqlAttribute*PlugInfo] [UNI] -MEANING "Each SqlAttribute is a column in precisely one PlugInfo." +RELATION table[SqlAttribute*SQLPlug] [UNI] +MEANING "Each SqlAttribute is a column in precisely one SQLPlug." PURPOSE RULE "Assign attributes to tables" -{+When SqlAttributes come into existence, they must be assigned to a PlugInfo. +{+When SqlAttributes come into existence, they must be assigned to a SQLPlug. -} PURPOSE RULE "Remove attributes from tables" {+Consequently, when an SqlAttribute ceases to exist, its assignment to the table must be undone. @@ -88,7 +88,7 @@ PURPOSE RELATION key[TblSQL*SqlAttribute] Its atoms can be used to identify an entire row in the TblSQL -} RELATION key[TblSQL*SqlAttribute] [UNI,TOT] -MEANING "Each PlugInfo has one field designated to contain atom keys." +MEANING "Each SQLPlug has one field designated to contain atom keys." PURPOSE RULE "Insert key of a TblSQL" {+If the root concept of a TblSQL changes, it is necessary to change its key along. @@ -147,15 +147,15 @@ MEANING "The target attribute of a univalent relation is created in the same tab VIOLATION ( TXT "{EX} NewStruct;SqlAttribute" , TXT ";tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;_NEW" , TXT ";concept;SqlAttribute;_NEW;Concept;", SRC target - , TXT ";table;SqlAttribute;_NEW;PlugInfo;", TGT I + , TXT ";table;SqlAttribute;_NEW;SQLPlug;", TGT I ) RULE "clean srcAtt for univalent relations" : (I/\prop;'UNI';prop~);srcAtt |- source;conceptAttribute MEANING "The source attribute of a univalent relation is the concept-table of its source concept." VIOLATION ( TXT "{EX} DelPair;srcAtt;Relation;", SRC I, TXT ";SqlAttribute;", TGT I ) RULE "clean tgtAtt for univalent relations" : (I/\prop;'UNI';prop~);tgtAtt;table |- srcAtt;table MEANING "The target attribute of a univalent relation is removed from the table in which its source attribute resides." -VIOLATION ( TXT "{EX} DelAtom;PlugInfo;", TGT I - , TXT "{EX} DelPair;table;SqlAttribute;", SRC tgtAtt, TXT ";PlugInfo;", TGT I +VIOLATION ( TXT "{EX} DelAtom;SQLPlug;", TGT I + , TXT "{EX} DelPair;table;SqlAttribute;", SRC tgtAtt, TXT ";SQLPlug;", TGT I , TXT "{EX} DelPair;concept;SqlAttribute;", SRC tgtAtt, TXT ";Concept;", SRC target , TXT "{EX} DelAtom;SqlAttribute;", SRC tgtAtt , TXT "{EX} DelPair;tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;", SRC tgtAtt @@ -189,15 +189,15 @@ MEANING "The target attribute of a univalent relation is created in the same tab VIOLATION ( TXT "{EX} NewStruct;SqlAttribute" , TXT ";srcAtt;Relation;", SRC I, TXT ";SqlAttribute;_NEW" , TXT ";concept;SqlAttribute;_NEW;Concept;", SRC source - , TXT ";table;SqlAttribute;_NEW;PlugInfo;", TGT I + , TXT ";table;SqlAttribute;_NEW;SQLPlug;", TGT I ) RULE "clean tgtAtt for injective relations" : ((I/\prop;'INJ';prop~)-prop;'UNI';prop~);tgtAtt |- target;conceptAttribute MEANING "The target attribute of a univalent relation is the concept-table of its target concept." VIOLATION ( TXT "{EX} DelPair;tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;", TGT I ) RULE "clean srcAtt for injective relations" : ((I/\prop;'INJ';prop~)-prop;'UNI';prop~);srcAtt;table |- tgtAtt;table MEANING "The target attribute of a univalent relation is removed from the table in which its source attribute resides." -VIOLATION ( TXT "{EX} DelAtom;PlugInfo;", TGT I - , TXT "{EX} DelPair;table;SqlAttribute;", SRC srcAtt, TXT ";PlugInfo;", TGT I +VIOLATION ( TXT "{EX} DelAtom;SQLPlug;", TGT I + , TXT "{EX} DelPair;table;SqlAttribute;", SRC srcAtt, TXT ";SQLPlug;", TGT I , TXT "{EX} DelPair;concept;SqlAttribute;", SRC srcAtt, TXT ";Concept;", SRC source , TXT "{EX} DelAtom;SqlAttribute;", SRC srcAtt , TXT "{EX} DelPair;srcAtt;Relation;", SRC I, TXT ";SqlAttribute;", SRC srcAtt @@ -228,7 +228,7 @@ VIOLATION ( TXT "{EX} NewStruct;SqlAttribute" ) RULE "new BinSQL" : srcAtt~;((I[Relation]-prop;'INJ';prop~)-prop;'UNI';prop~);tgtAtt |- table;I[BinSQL];table~ -MEANING "Every relation has a pluginfo in which to store its population." +MEANING "Every relation has an SQLPlug in which to store its population." VIOLATION ( TXT "{EX} NewStruct;BinSQL" , TXT ";table;SqlAttribute;", SRC I, TXT ";BinSQL;_NEW" , TXT ";table;SqlAttribute;", TGT I, TXT ";BinSQL;_NEW" @@ -242,7 +242,7 @@ RULE "clear table for n-to-m relations (source)" : ((I-prop;'INJ';prop~)-prop;'UNI';prop~);srcAtt;concept |- source MEANING "The source concept of an n-to-m relation is the concept of the source attribute of that relation." VIOLATION ( TXT "{EX} DelPair;concept;SqlAttribute;", SRC srcAtt, TXT ";Concept;", SRC srcAtt;concept - , TXT "{EX} DelPair;table;SqlAttribute;", SRC srcAtt, TXT ";PlugInfo;", SRC srcAtt;table + , TXT "{EX} DelPair;table;SqlAttribute;", SRC srcAtt, TXT ";SQLPlug;", SRC srcAtt;table , TXT "{EX} DelAtom;SqlAttribute;", SRC srcAtt , TXT "{EX} DelPair;srcAtt;Relation;", SRC I, TXT ";SqlAttribute;;", SRC srcAtt ) @@ -250,7 +250,7 @@ RULE "clear table for n-to-m relations (target)" : ((I-prop;'INJ';prop~)-prop;'UNI';prop~);tgtAtt;concept |- target MEANING "The target concept of an n-to-m relation is the concept of the target attribute of that relation." VIOLATION ( TXT "{EX} DelPair;concept;SqlAttribute;", SRC tgtAtt, TXT ";Concept;", SRC tgtAtt;concept - , TXT "{EX} DelPair;table;SqlAttribute;", SRC tgtAtt, TXT ";PlugInfo;", SRC tgtAtt;table + , TXT "{EX} DelPair;table;SqlAttribute;", SRC tgtAtt, TXT ";SQLPlug;", SRC tgtAtt;table , TXT "{EX} DelAtom;SqlAttribute;", SRC tgtAtt , TXT "{EX} DelPair;tgtAtt;Relation;", SRC I, TXT ";SqlAttribute;;", SRC tgtAtt ) diff --git a/AmpersandData/FormalAmpersand/Tables.ifc b/AmpersandData/FormalAmpersand/Tables.ifc index 6796924122..2d83c76712 100644 --- a/AmpersandData/FormalAmpersand/Tables.ifc +++ b/AmpersandData/FormalAmpersand/Tables.ifc @@ -4,8 +4,8 @@ INCLUDE "Tables.xlsx" -INTERFACE PlugInfo (table, key, concept): I[TblSQL] CRUD -BOX [ PlugInfo : I +INTERFACE SQLPlug (table, key, concept): I[TblSQL] CRUD +BOX [ SQLPlug : I , attributes : table~ BOX [ SqlAttribute : I , concept : concept @@ -16,7 +16,7 @@ BOX [ PlugInfo : I INTERFACE SqlAttribute (concept): I[SqlAttribute] CRUD BOX [ SqlAttribute : I , concept : concept - , pluginfo : table + , sqlPlug : table ] REPRESENT Atom TYPE ALPHANUMERIC @@ -46,9 +46,9 @@ TABS[ relations : V[SESSION*Relation] CRUD , conceptAttribute : conceptAttribute , atoms : pop~ ] - , pluginfos : V[SESSION*PlugInfo] CRUD + , "SQL plugs" : V[SESSION*SQLPlug] CRUD BOX - [ PlugInfo : I + [ SQLPlug : I , "table~" : table~ COLS [rel : srcAtt~\/tgtAtt~ , attr : I , c : concept ] ] , pairs : V[SESSION*Pair] CRUD diff --git a/ReleaseNotes.md b/ReleaseNotes.md index a9de355393..82cad26adf 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,15 +1,27 @@ # Release notes of Ampersand -## v3.5.1 +## unreleased changes + +## v3.5.2 (10 juni 2016) + * Work on meatgrinder (still experimental!) + * Bug fix: Issue with SQL query [Issue #152](https://github.com/AmpersandTarski/Ampersand/issues/152) + * Bug fix: minor issue with SQL query [Issue #436](https://github.com/AmpersandTarski/Ampersand/issues/436) + * Bug fix: Nontermination of functional document generator. [Issue #231](https://github.com/AmpersandTarski/Ampersand/issues/231) + * SQL query performance improvements: [Issue #426](https://github.com/AmpersandTarski/Ampersand/issues/426) and + [Issue #217](https://github.com/AmpersandTarski/Ampersand/issues/217) + * Back end performance: Postpone calculation of view and label for Atoms untill really needed (e.g. in interfaces) + * Added frontend switch to turn on/off auto saving changes + +## v3.5.1 (17 may 2016) * Minor enhancement of generation of Logical Data Model - * More consisten use of views in interface definitions: Issue #416 + * More consisten use of views in interface definitions: [Issue #416](https://github.com/AmpersandTarski/Ampersand/issues/416) * Re-enabled output format for --fSpec=asciidoc * Added depth parameter in API resources call (?depth=). This provides functionality to specify the depth of subinterfaces for which the content must be returned and is especially usefull for recursive (sub)interfaces using the LINKTO statement. * Added this release notes file. - * Bug fixes: Issue #413 + * Bug fixes: [Issue #413](https://github.com/AmpersandTarski/Ampersand/issues/413) -## v3.5.0 (28 apr. 2016) +## v3.5.0 (28 apr 2016) This is the first release of 2016. We are happy announce that we have much more possibilities on creating nice interfaces for the prototype application. Apart from that, lots of bugfixes have been made, and some other features have been introduced. ## releases prior to v3.5.0 diff --git a/ampersand.cabal b/ampersand.cabal index 9616a040f6..c1c08227df 100644 --- a/ampersand.cabal +++ b/ampersand.cabal @@ -1,5 +1,5 @@ name: ampersand -version: 3.5.1 +version: 3.5.2 author: Stef Joosten maintainer: stef.joosten@ou.nl synopsis: Toolsuite for automated design of business processes. @@ -29,7 +29,7 @@ executable ampersand hs-source-dirs: src default-language: Haskell2010 ghc-options: -rtsopts -Wall - build-depends: aeson == 0.9.*, + build-depends: aeson == 0.11.*, aeson-pretty == 0.7.*, base == 4.8.*, bytestring == 0.10.*, @@ -46,7 +46,7 @@ executable ampersand HStringTemplate == 0.8.*, lens == 4.13.*, mtl == 2.2.*, - pandoc == 1.16.*, + pandoc == 1.17.*, pandoc-types == 1.16.*, parsec == 3.1.*, process == 1.2.*, @@ -84,7 +84,6 @@ executable ampersand Database.Design.Ampersand.Core.A2P_Converters, Database.Design.Ampersand.Core.AbstractSyntaxTree, Database.Design.Ampersand.Core.ParseTree, - Database.Design.Ampersand.Core.ToMeta, Database.Design.Ampersand.FSpec, Database.Design.Ampersand.FSpec.Crud, Database.Design.Ampersand.FSpec.FPA, @@ -202,7 +201,6 @@ Test-Suite regression-test Database.Design.Ampersand.Classes.ViewPoint, Database.Design.Ampersand.Core.AbstractSyntaxTree, Database.Design.Ampersand.Core.ParseTree, - Database.Design.Ampersand.Core.ToMeta, Database.Design.Ampersand.FSpec.Crud, Database.Design.Ampersand.FSpec.FSpec, Database.Design.Ampersand.FSpec.FSpecAux, @@ -252,7 +250,7 @@ Test-Suite ampersand-test lens == 4.13.*, MissingH == 1.3.*, mtl == 2.2.*, - pandoc == 1.16.*, + pandoc == 1.17.*, pandoc-types == 1.16.*, parsec == 3.1.*, QuickCheck == 2.8.*, @@ -308,7 +306,6 @@ Test-Suite ampersand-test Database.Design.Ampersand.Classes.ViewPoint, Database.Design.Ampersand.Core.AbstractSyntaxTree, Database.Design.Ampersand.Core.ParseTree, - Database.Design.Ampersand.Core.ToMeta, Database.Design.Ampersand.FSpec.Crud, Database.Design.Ampersand.FSpec.FSpec, Database.Design.Ampersand.FSpec.FSpecAux, diff --git a/src/Database/Design/Ampersand/Basics/String.hs b/src/Database/Design/Ampersand/Basics/String.hs index 26031c7b01..b6060cd682 100644 --- a/src/Database/Design/Ampersand/Basics/String.hs +++ b/src/Database/Design/Ampersand/Basics/String.hs @@ -1,5 +1,5 @@ -- | This module contains some common String funcions -module Database.Design.Ampersand.Basics.String (unCap,upCap,escapeNonAlphaNum) where +module Database.Design.Ampersand.Basics.String (unCap,upCap,escapeNonAlphaNum,escapeIdentifier) where import Data.Char @@ -23,4 +23,12 @@ escapeNonAlphaNum = concatMap escapeNonAlphaNumChar where escapeNonAlphaNumChar c | isAlphaNum c && isAscii c = [c] | otherwise = '_' : show (ord c) - \ No newline at end of file + +-- Create an identifier that does not start with a digit and consists only of upper/lowercase ascii letters, underscores, and digits. +-- This function is injective. +escapeIdentifier :: String -> String +escapeIdentifier "" = "_EMPTY_" +escapeIdentifier (c0:cs) = encode False c0 ++ concatMap (encode True) cs + where encode allowNum c | isAsciiLower c || isAsciiUpper c || allowNum && isDigit c = [c] + | c == '_' = "__" -- shorthand for '_' to improve readability + | otherwise = "_" ++ show (ord c) ++ "_" diff --git a/src/Database/Design/Ampersand/Components.hs b/src/Database/Design/Ampersand/Components.hs index 8b2dcf13cd..0d11b5a15e 100644 --- a/src/Database/Design/Ampersand/Components.hs +++ b/src/Database/Design/Ampersand/Components.hs @@ -31,7 +31,6 @@ import Database.Design.Ampersand.Prototype.GenBericht (doGenBericht) import Database.Design.Ampersand.Prototype.ValidateSQL (validateRulesSQL) import Database.Design.Ampersand.Prototype.GenFrontend (doGenFrontend, clearTemplateDirs) import Database.Design.Ampersand.Prototype.ProtoUtil (installComposerLibs) -import Database.Design.Ampersand.ADL1.Expression (notCpl) -- | The FSpec is the datastructure that contains everything to generate the output. This monadic function -- takes the FSpec as its input, and spits out everything the user requested. diff --git a/src/Database/Design/Ampersand/Core/AbstractSyntaxTree.hs b/src/Database/Design/Ampersand/Core/AbstractSyntaxTree.hs index 89270d3bab..2566292be3 100644 --- a/src/Database/Design/Ampersand/Core/AbstractSyntaxTree.hs +++ b/src/Database/Design/Ampersand/Core/AbstractSyntaxTree.hs @@ -816,6 +816,9 @@ instance Named A_Concept where instance Show A_Concept where showsPrec _ c = showString (name c) +instance Unique (A_Concept, PSingleton) where + showUnique (c,val) = show val++"["++showUnique c++"]" + data Signature = Sign A_Concept A_Concept deriving (Eq, Prelude.Ord, Typeable, Generic, Data) instance Hashable Signature instance Show Signature where diff --git a/src/Database/Design/Ampersand/Core/ToMeta.hs b/src/Database/Design/Ampersand/Core/ToMeta.hs deleted file mode 100644 index b0bbdd46e4..0000000000 --- a/src/Database/Design/Ampersand/Core/ToMeta.hs +++ /dev/null @@ -1,348 +0,0 @@ -{-# LANGUAGE FlexibleInstances #-} -module Database.Design.Ampersand.Core.ToMeta - (toMeta) -where -import Database.Design.Ampersand.Misc -import Database.Design.Ampersand.Core.ParseTree - --- | When dealing with meta-stuff for Ampersand, (Like makeGenerics, makeRAP), --- the names of Concepts should be different than 'normal', user-defined Concepts. --- This function modifies everything in the context to reflect that. -toMeta :: MakeMeta a => Options -> (a -> a) -toMeta opts = - if metaTablesHaveUnderscore opts then makeMeta (string2Meta opts) else id - -string2Meta :: Options -> String -> String -string2Meta opts str - = if metaTablesHaveUnderscore opts - then show ("__"++unquoted++"__") - else str - where - unquoted - | length str < 2 = str - | head str == '"' && last str == '"' = reverse . tail . reverse . tail $ str - | otherwise = str - -class MakeMeta a where - makeMeta :: (String -> String) -> a -> a - -instance MakeMeta a => MakeMeta (Maybe a) where - makeMeta _ Nothing = Nothing - makeMeta f (Just a) = Just (makeMeta f a) -instance MakeMeta a => MakeMeta [a] where - makeMeta _ [] = [] - makeMeta f xs = map (makeMeta f) xs - -instance MakeMeta P_Context where - makeMeta f ctx - = PCtx{ ctx_nm = (ctx_nm ctx) - , ctx_pos = makeMeta f (ctx_pos ctx) - , ctx_lang = makeMeta f (ctx_lang ctx) - , ctx_markup= makeMeta f (ctx_markup ctx) - , ctx_thms = (ctx_thms ctx) - , ctx_pats = makeMeta f (ctx_pats ctx) - , ctx_rs = makeMeta f (ctx_rs ctx) - , ctx_ds = makeMeta f (ctx_ds ctx) - , ctx_cs = makeMeta f (ctx_cs ctx) - , ctx_ks = makeMeta f (ctx_ks ctx) - , ctx_rrules= makeMeta f (ctx_rrules ctx) - , ctx_rrels = makeMeta f (ctx_rrels ctx) - , ctx_reprs = makeMeta f (ctx_reprs ctx) - , ctx_vs = makeMeta f (ctx_vs ctx) - , ctx_gs = makeMeta f (ctx_gs ctx) - , ctx_ifcs = makeMeta f (ctx_ifcs ctx) - , ctx_ps = makeMeta f (ctx_ps ctx) - , ctx_pops = makeMeta f (ctx_pops ctx) - , ctx_sql = makeMeta f (ctx_sql ctx) - , ctx_php = makeMeta f (ctx_php ctx) - , ctx_metas = makeMeta f (ctx_metas ctx) - } - -instance MakeMeta P_Pattern where - makeMeta f p - = P_Pat { pt_pos = makeMeta f (pt_pos p) - , pt_nm = (pt_nm p) - , pt_rls = makeMeta f (pt_rls p) - , pt_gns = makeMeta f (pt_gns p) - , pt_dcs = makeMeta f (pt_dcs p) - , pt_RRuls = makeMeta f (pt_RRuls p) - , pt_RRels = makeMeta f (pt_RRels p) - , pt_Reprs = makeMeta f (pt_Reprs p) - , pt_cds = makeMeta f (pt_cds p) - , pt_ids = makeMeta f (pt_ids p) - , pt_vds = makeMeta f (pt_vds p) - , pt_xps = makeMeta f (pt_xps p) - , pt_pop = makeMeta f (pt_pop p) - , pt_end = makeMeta f (pt_end p) - } - -instance MakeMeta Representation where - makeMeta f rep - = Repr { reprpos = makeMeta f (reprpos rep) - , reprcpts = map f (reprcpts rep) - , reprdom = (reprdom rep) - } -instance MakeMeta ConceptDef where - makeMeta f cd - = Cd { cdpos = makeMeta f (cdpos cd) - , cdcpt = f (cdcpt cd) - , cdplug = (cdplug cd) - , cddef = (cddef cd) - , cdref = (cdref cd) - , cdfrom = (cdfrom cd) - } - -instance MakeMeta P_Declaration where - makeMeta f d - = P_Sgn { dec_nm = f (dec_nm d) - , dec_sign = makeMeta f (dec_sign d) - , dec_prps = makeMeta f (dec_prps d) - , dec_pragma = (dec_pragma d) - , dec_Mean = makeMeta f (dec_Mean d) - , dec_popu = makeMeta f (dec_popu d) - , dec_fpos = makeMeta f (dec_fpos d) - , dec_plug = (dec_plug d) - } - -instance MakeMeta P_Sign where - makeMeta f sgn - = P_Sign { pSrc = makeMeta f (pSrc sgn) - , pTgt = makeMeta f (pTgt sgn) - } - -instance MakeMeta P_Concept where - makeMeta f cpt - = case cpt of - PCpt{} -> PCpt{p_cptnm = f(p_cptnm cpt)} - P_Singleton -> cpt - -instance MakeMeta a => MakeMeta (P_Rule a) where - makeMeta f rul - = P_Ru { rr_fps = makeMeta f (rr_fps rul) - , rr_nm = (rr_nm rul) - , rr_exp = makeMeta f (rr_exp rul) - , rr_mean = makeMeta f (rr_mean rul) - , rr_msg = makeMeta f (rr_msg rul) - , rr_viol = makeMeta f (rr_viol rul) - } - -instance MakeMeta P_RoleRule where - makeMeta f rr - = Maintain - { mPos = makeMeta f (mPos rr) - , mRoles = (mRoles rr) - , mRules = (mRules rr) - } -instance MakeMeta P_RoleRelation where - makeMeta f rr - = P_RR { rr_Pos = makeMeta f (rr_Pos rr) - , rr_Roles = (rr_Roles rr) - , rr_Rels = makeMeta f (rr_Rels rr) - } - -instance MakeMeta P_IdentDef where - makeMeta f ident - = P_Id { ix_pos = makeMeta f (ix_pos ident) - , ix_lbl = f (ix_lbl ident) -- TODO: HJO20150209: Not sure if it is wise to 'f' the label. Check with Michiel. - , ix_cpt = makeMeta f (ix_cpt ident) - , ix_ats = makeMeta f (ix_ats ident) - } -instance MakeMeta P_IdentSegment where - makeMeta f sgmt - = P_IdentExp - { ks_obj = makeMeta f (ks_obj sgmt) - } -instance MakeMeta a => MakeMeta (P_ViewD a) where - makeMeta f vd - = P_Vd { vd_pos = makeMeta f (vd_pos vd) - , vd_lbl = (vd_lbl vd) -- No need to meta these labels (only used as template variable names) - , vd_cpt = makeMeta f (vd_cpt vd) - , vd_isDefault = (vd_isDefault vd) - , vd_html = (vd_html vd) -- No need to meta the html template filename or inline html code - , vd_ats = makeMeta f (vd_ats vd) - } -instance MakeMeta a => MakeMeta (P_ViewSegment a) where - makeMeta f vs = P_ViewSegment - { vsm_labl = vsm_labl vs - , vsm_org = vsm_org vs - , vsm_load = makeMeta f (vsm_load vs) - } -instance MakeMeta a => MakeMeta (P_ViewSegmtPayLoad a) where - makeMeta f vs - = case vs of - P_ViewExp{} -> P_ViewExp { vs_expr = makeMeta f (vs_expr vs) - } - P_ViewText{} -> vs - -instance MakeMeta P_Gen where - makeMeta f gen - = case gen of - P_Cy{} -> P_Cy { gen_fp = makeMeta f (gen_fp gen) - , gen_spc = makeMeta f (gen_spc gen) - , gen_rhs = makeMeta f (gen_rhs gen) - } - PGen{} -> PGen { gen_fp = makeMeta f (gen_fp gen) - , gen_spc = makeMeta f (gen_spc gen) - , gen_gen = makeMeta f (gen_gen gen) - } -instance MakeMeta P_Interface where - makeMeta f ifc - = P_Ifc { ifc_Name = (ifc_Name ifc) - , ifc_Roles = (ifc_Roles ifc) - , ifc_Obj = makeMeta f (ifc_Obj ifc) - , ifc_Pos = makeMeta f (ifc_Pos ifc) - , ifc_Prp = (ifc_Prp ifc) - } -instance MakeMeta PPurpose where - makeMeta f prp - = PRef2 { pexPos = makeMeta f (pexPos prp) - , pexObj = makeMeta f (pexObj prp) - , pexMarkup = makeMeta f (pexMarkup prp) - , pexRefIDs = (pexRefIDs prp) - } - -instance MakeMeta P_Markup where - makeMeta f m - = P_Markup - { mLang = makeMeta f (mLang m) - , mFormat = makeMeta f (mFormat m) - , mString = (mString m) - } -instance MakeMeta PRef2Obj where - makeMeta f ref - = case ref of - PRef2ConceptDef s -> PRef2ConceptDef (f s) - PRef2Declaration t -> PRef2Declaration (makeMeta f t) - PRef2Rule _ -> ref - PRef2IdentityDef _ -> ref - PRef2ViewDef _ -> ref - PRef2Pattern _ -> ref - PRef2Interface _ -> ref - PRef2Context _ -> ref - -instance MakeMeta PMeaning where - makeMeta f (PMeaning m) = PMeaning (makeMeta f m) -instance MakeMeta PMessage where - makeMeta f (PMessage m) = PMessage (makeMeta f m) -instance MakeMeta P_Population where - makeMeta f pop - = case pop of - P_RelPopu{} -> P_RelPopu { p_src = (p_src pop) - , p_tgt = (p_tgt pop) - , p_nmdr = makeMeta f (p_nmdr pop) - , p_orig = makeMeta f (p_orig pop) - , p_popps = makeMeta f (p_popps pop) - } - P_CptPopu{} -> P_CptPopu { p_cnme = f (p_cnme pop) - , p_orig = makeMeta f (p_orig pop) - , p_popas = (p_popas pop) - } - -instance MakeMeta Meta where - makeMeta f m - = Meta { mtPos = makeMeta f (mtPos m) - , mtObj = (mtObj m) - , mtName = (mtName m) - , mtVal = (mtVal m) - } -instance MakeMeta a => MakeMeta (P_ObjDef a) where - makeMeta f obj - = P_Obj { obj_nm = f (obj_nm obj) - , obj_pos = makeMeta f (obj_pos obj) - , obj_ctx = makeMeta f (obj_ctx obj) - , obj_crud = (obj_crud obj) - , obj_mView = (obj_mView obj) - , obj_msub = makeMeta f (obj_msub obj) - } - -instance MakeMeta a => MakeMeta (P_SubIfc a) where - makeMeta f sub - = case sub of - P_Box{} -> P_Box { si_ori = makeMeta f (si_ori sub) - , si_class = (si_class sub) - , si_box = makeMeta f (si_box sub) - } - P_InterfaceRef{} -> P_InterfaceRef{ si_ori = makeMeta f (si_ori sub) - , si_isLink = si_isLink sub - , si_str = (si_str sub) - , si_crud = (si_crud sub) - } - -instance MakeMeta a => MakeMeta (PairView a) where - makeMeta f pv - = PairView {ppv_segs = makeMeta f (ppv_segs pv)} -instance MakeMeta a => MakeMeta (PairViewSegment a) where - makeMeta f sgmt - = case sgmt of - PairViewText{} -> sgmt - PairViewExp{} -> sgmt{pvsExp = makeMeta f (pvsExp sgmt)} - -instance MakeMeta a => MakeMeta (Term a) where - makeMeta f t - = case t of - Prim a -> Prim (makeMeta f a) - PEqu o a b -> PEqu o (makeMeta f a) (makeMeta f b) - PInc o a b -> PInc o (makeMeta f a) (makeMeta f b) - PIsc o a b -> PIsc o (makeMeta f a) (makeMeta f b) - PUni o a b -> PUni o (makeMeta f a) (makeMeta f b) - PDif o a b -> PDif o (makeMeta f a) (makeMeta f b) - PLrs o a b -> PLrs o (makeMeta f a) (makeMeta f b) - PRrs o a b -> PRrs o (makeMeta f a) (makeMeta f b) - PDia o a b -> PDia o (makeMeta f a) (makeMeta f b) - PCps o a b -> PCps o (makeMeta f a) (makeMeta f b) - PRad o a b -> PRad o (makeMeta f a) (makeMeta f b) - PPrd o a b -> PPrd o (makeMeta f a) (makeMeta f b) - PKl0 o a -> PKl0 o (makeMeta f a) - PKl1 o a -> PKl1 o (makeMeta f a) - PFlp o a -> PFlp o (makeMeta f a) - PCpl o a -> PCpl o (makeMeta f a) - PBrk o a -> PBrk o (makeMeta f a) - - -instance MakeMeta TermPrim where - makeMeta f t - = case t of - PI _ -> t - Pid o c -> Pid o (makeMeta f c) - Patm o a c -> Patm o a (makeMeta f c) - PVee _ -> t - Pfull o src tgt -> Pfull o (makeMeta f src)(makeMeta f tgt) - PNamedR nr -> PNamedR (makeMeta f nr) - -instance MakeMeta P_NamedRel where - makeMeta f (PNamedRel o nm sgn) - = PNamedRel o (f nm) (makeMeta f sgn) - -instance MakeMeta PAtomPair where - makeMeta _ = id -instance MakeMeta Origin where - makeMeta _ = id -instance MakeMeta Lang where - makeMeta _ = id -instance MakeMeta PandocFormat where - makeMeta _ = id -instance MakeMeta Prop where - makeMeta _ = id - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Database/Design/Ampersand/FSpec.hs b/src/Database/Design/Ampersand/FSpec.hs index 04f6c0b2d7..b8283d1c94 100644 --- a/src/Database/Design/Ampersand/FSpec.hs +++ b/src/Database/Design/Ampersand/FSpec.hs @@ -13,15 +13,12 @@ module Database.Design.Ampersand.FSpec ) where import Database.Design.Ampersand.FSpec.FSpec - (FSpec(..), concDefs, ECArule(..), plugAttributes, lookupCpt, metaValues,AAtomValue, showValADL,showValPHP,showValSQL,showSQL,A_Concept,Declaration,A_Gen - ,PlugInfo(..), PlugSQL(..), SqlAttribute(..), SqlAttributeUsage(..),RelStore(..), ) - import Database.Design.Ampersand.Basics (fatal,Collection(..),Named(..)) import Database.Design.Ampersand.FSpec.ShowHS (ShowHS(..), ShowHSName(..), fSpec2Haskell, haskellIdentifier) import Database.Design.Ampersand.FSpec.ShowADL (ShowADL(..)) import Database.Design.Ampersand.FSpec.ShowECA (showECA) -import Database.Design.Ampersand.FSpec.ShowMeatGrinder (makeMetaPopulationFile,MetaType(..)) +import Database.Design.Ampersand.FSpec.ShowMeatGrinder (makeMetaPopulationFile) import Database.Design.Ampersand.FSpec.ToFSpec.Calc (showProof,showPrf, commaEngPandoc, commaNLPandoc, commaEngPandoc', commaNLPandoc', commaPandocAnd,commaPandocOr) import Database.Design.Ampersand.FSpec.ToFSpec.ADL2FSpec diff --git a/src/Database/Design/Ampersand/FSpec/Crud.hs b/src/Database/Design/Ampersand/FSpec/Crud.hs index 1a512e2879..a74fbd42d5 100644 --- a/src/Database/Design/Ampersand/FSpec/Crud.hs +++ b/src/Database/Design/Ampersand/FSpec/Crud.hs @@ -96,7 +96,8 @@ getAllInterfaceExprs allIfcs ifc = getExprs $ ifcObj ifc expr : case subObj of Nothing -> [] Just si -> case si of - InterfaceRef{} -> + InterfaceRef{siIsLink = True} -> [] + InterfaceRef{siIsLink = False} -> case filter (\rIfc -> name rIfc == siIfcId si) $ allIfcs of -- Follow interface ref [] -> fatal 65 $ "Referenced interface " ++ siIfcId si ++ " missing" (_:_:_) -> fatal 66 $ "Multiple declarations of referenced interface " ++ siIfcId si diff --git a/src/Database/Design/Ampersand/FSpec/FSpec.hs b/src/Database/Design/Ampersand/FSpec/FSpec.hs index 801b76123b..c1c31ec2b6 100644 --- a/src/Database/Design/Ampersand/FSpec/FSpec.hs +++ b/src/Database/Design/Ampersand/FSpec/FSpec.hs @@ -24,13 +24,17 @@ module Database.Design.Ampersand.FSpec.FSpec , metaValues , SqlAttribute(..) , Typology(..) + , Interface(..) , Object(..) + , ObjectDef(..) + , SubInterface(..) , PlugInfo(..) , SqlAttributeUsage(..) , Conjunct(..),DnfClause(..), dnf2expr, notCpl , Language(..),AAtomValue , showValADL,showValPHP,showValSQL,showSQL , module Database.Design.Ampersand.FSpec.ToFSpec.Populated + , module Database.Design.Ampersand.Classes ) where -- TODO: Export module Database.Design.Ampersand.Core.AbstractSyntaxTree in the same way as is done -- for module Database.Design.Ampersand.Core.ParseTree in that module. Then build to a better @@ -87,7 +91,7 @@ data FSpec = FSpec { fsName :: String -- ^ The name of t , getAllViewsForConcept :: A_Concept -> [ViewDef] , lookupView :: String -> ViewDef -- ^ Lookup view by id in fSpec. , vgens :: [A_Gen] -- ^ All gens that apply in the entire FSpec - , vconjs :: [Conjunct] -- ^ All conjuncts generated (by ADL2FSpec) + , allConjuncts :: [Conjunct] -- ^ All conjuncts generated (by ADL2FSpec) , allConjsPerRule :: [(Rule,[Conjunct])] -- ^ Maps each rule onto the conjuncts it consists of (note that a single conjunct may be part of several rules) , allConjsPerDecl :: [(Declaration, [Conjunct])] -- ^ Maps each declaration to the conjuncts it appears in , allConjsPerConcept :: [(A_Concept, [Conjunct])] -- ^ Maps each concept to the conjuncts it appears in (as source or target of a constituent relation) @@ -103,7 +107,7 @@ data FSpec = FSpec { fsName :: String -- ^ The name of t , atomsInCptIncludingSmaller :: A_Concept -> [AAtomValue] -- ^ All user defined populations of an A_concept, INCLUDING the populations of smaller A_Concepts , tableContents :: PlugSQL -> [[Maybe AAtomValue]] -- ^ tableContents is meant to compute the contents of an entity table. -- It yields a list of records. Values in the records may be absent, which is why Maybe is used rather than String. - + -- SJ 2016-05-06: Why is that? `tableContents` should represent a set of atoms, so `Maybe` should have no part in this. Why is Maybe necessary? , pairsInExpr :: Expression -> [AAtomPair] , initialConjunctSignals :: [(Conjunct,[AAtomPair])] -- ^ All conjuncts that have process-rule violations. , allViolations :: [(Rule,[AAtomPair])] -- ^ All invariant rules with violations. diff --git a/src/Database/Design/Ampersand/FSpec/SQL.hs b/src/Database/Design/Ampersand/FSpec/SQL.hs index d88947fe30..cf177505d8 100644 --- a/src/Database/Design/Ampersand/FSpec/SQL.hs +++ b/src/Database/Design/Ampersand/FSpec/SQL.hs @@ -1,5 +1,8 @@ module Database.Design.Ampersand.FSpec.SQL - ( prettySQLQuery,sqlQuery ) + ( placeHolderSQL + , prettySQLQuery , sqlQuery + , prettySQLQueryWithPlaceholder, sqlQueryWithPlaceholder + , prettyBroadQueryWithPlaceholder,broadQueryWithPlaceholder) where import Language.SQL.SimpleSQL.Syntax @@ -15,33 +18,89 @@ import Database.Design.Ampersand.Misc import Data.List import Data.Maybe +placeHolderSQL :: String +placeHolderSQL = "_SRCATOM" + +broadQueryWithPlaceholder :: FSpec -> ObjectDef -> String +broadQueryWithPlaceholder fSpec + = unwords . words + . prettyQueryExpr theDialect + . broadQuery fSpec +prettyBroadQueryWithPlaceholder :: Int -> FSpec -> ObjectDef -> String +prettyBroadQueryWithPlaceholder i fSpec + = intercalate ("\n"++replicate i ' ') + . lines + . prettyQueryExpr theDialect + . broadQuery fSpec + class SQLAble a where - -- | prettyprint SQL query incuding comments and indent it with spaces - prettySQLQuery - :: Int -- Amount of indentation - -> FSpec -- The context - -> a - -> String - prettySQLQuery i fSpec x = - intercalate ("\n"++replicate i ' ') . lines . - prettyQueryExpr theDialect . toSQL . - stripComment $ getBinQueryExpr fSpec x - -- | show SQL query without comments and not prettyprinted - sqlQuery :: FSpec -> a -> String - sqlQuery fSpec x = - unwords . words . - prettyQueryExpr theDialect . toSQL $ - getBinQueryExpr fSpec x + sqlQuery, sqlQueryWithPlaceholder :: FSpec -> a -> String + sqlQuery = doNonPretty getBinQueryExpr + sqlQueryWithPlaceholder = doNonPretty getBinQueryExprPlaceholder + + doNonPretty :: (FSpec -> a -> BinQueryExpr) -> FSpec -> a -> String + doNonPretty fun fSpec + = unwords . words + . prettyQueryExpr theDialect . toSQL + . stripComment + . fun fSpec + + prettySQLQuery, prettySQLQueryWithPlaceholder + :: Int -- Amount of indentation + -> FSpec -- The context + -> a + -> String + prettySQLQueryWithPlaceholder = doPretty getBinQueryExprPlaceholder + prettySQLQuery = doPretty getBinQueryExpr + doPretty :: (FSpec -> a -> BinQueryExpr) -> Int -> FSpec -> a -> String + doPretty fun i fSpec + = intercalate ("\n"++replicate i ' ') + . lines + . prettyQueryExpr theDialect + . toSQL + . fun fSpec + getBinQueryExpr :: FSpec -> a -> BinQueryExpr + getBinQueryExprPlaceholder :: FSpec -> a -> BinQueryExpr + getBinQueryExprPlaceholder fSpec = insertPlaceholder . getBinQueryExpr fSpec + where + insertPlaceholder :: BinQueryExpr -> BinQueryExpr + insertPlaceholder bqe + = case bqe of + BSE{} -> case (col2ValueExpr (bseSrc bqe),bseWhr bqe) of + (Iden [_] , _ ) + -> bqeWithPlaceholder + (Iden [_,a], _ ) + | a == sourceAlias + -> bqeWithPlaceholder + | otherwise -> bqeWithoutPlaceholder + _ -> bqeWithoutPlaceholder + BCQE{} -> BCQE { bcqeOper = bcqeOper bqe + , bcqe0 = insertPlaceholder . bcqe0 $ bqe + , bcqe1 = insertPlaceholder . bcqe1 $ bqe + } + BQEComment _ x -> insertPlaceholder x + where + bqeWithoutPlaceholder = BQEComment [BlockComment "THERE IS NO PLACEHOLDER HERE"] bqe + bqeWithPlaceholder = + BSE { bseSrc = bseSrc bqe + , bseTrg = bseTrg bqe + , bseTbl = bseTbl bqe + , bseWhr = Just $ + case bseWhr bqe of + Nothing -> placeHolder + Just whr -> conjunctSQL [ placeHolder, whr ] + } + placeHolder = BinOp (col2ValueExpr (bseSrc bqe)) [Name "="] (StringLit placeHolderSQL) instance SQLAble Expression where getBinQueryExpr = selectExpr instance SQLAble Declaration where getBinQueryExpr = selectDeclaration sourceAlias, targetAlias :: Name -sourceAlias = (Name "src") -targetAlias = (Name "tgt") +sourceAlias = Name "src" +targetAlias = Name "tgt" selectExpr :: FSpec -- current context -> Expression -- expression to be translated -> BinQueryExpr -- resulting info for the binary SQL expression @@ -67,80 +126,80 @@ maybeSpecialCase fSpec expr = [ BlockComment $ "Optimized case for: "++name r++showSign r++" [TOT]." , BlockComment $ " "++showADL expr++" ("++show (sign expr)++")" ] $ - let aAtt = Iden [sqlAttConcept fSpec a] + let col = Col { cTable = [Name "notIns"] + , cCol = [sqlAttConcept fSpec a] + , cAlias = [] + , cSpecial = Nothing} + aAtt = col2ValueExpr col whereClause = conjunctSQL [ aAtt `isNotIn` selectSource (selectExpr fSpec (EDcD r)) , notNull aAtt ] in - BSE { bseSrc = aAtt - , bseTrg = aAtt + BSE { bseSrc = col + , bseTrg = col , bseTbl = [sqlConceptTable fSpec a `as` Name "notIns"] , bseWhr = Just whereClause } | otherwise -> Nothing EIsc (expr1 , ECpl expr2) - -> Just . BQEComment - [ BlockComment . unlines $ - [ "Optimized case for: intersect with the complement of ." - , "where " - , " = "++showADL expr1++" ("++show (sign expr1)++")" - , " = "++showADL expr2++" ("++show (sign expr2)++")" - , " "++showADL expr++" ("++show (sign expr)++")" - ] - ] $ let table1 = Name "t1" - table2 = Name "t2" - whereClause = Just . disjunctSQL $ - [ isNull (Iden[table2,sourceAlias]) - , isNull (Iden[table2,targetAlias]) - ] - in BSE { bseSrc = Iden [table1 ,sourceAlias] - , bseTrg = Iden [table1 ,targetAlias] - , bseTbl = [TRJoin - (TRQueryExpr (toSQL (selectExpr fSpec expr1)) `as` table1) - False -- Needs to be false in MySql - JLeft - (TRQueryExpr (toSQL (selectExpr fSpec expr2)) `as` table2) - (Just . JoinOn . conjunctSQL $ - [ BinOp (Iden[table1,sourceAlias]) [Name "="] (Iden[table2,sourceAlias]) - , BinOp (Iden[table1,targetAlias]) [Name "="] (Iden[table2,targetAlias]) - ] - ) - ] - , bseWhr = whereClause - } + -> go False expr1 expr2 EIsc (expr1 , EFlp (ECpl expr2)) - -> Just . BQEComment - [ BlockComment . unlines $ - [ "Optimized case for: intersect with the flipped complement of ." - , "where " - , " = "++showADL expr1++" ("++show (sign expr1)++")" - , " = "++showADL expr2++" ("++show (sign expr2)++")" - , " "++showADL expr++" ("++show (sign expr)++")" - ] - ] $ let table1 = Name "t1" - table2 = Name "t2" - whereClause = Just . disjunctSQL $ - [ isNull (Iden[table2,sourceAlias]) - , isNull (Iden[table2,targetAlias]) - ] - in BSE { bseSrc = Iden [table1 ,sourceAlias] - , bseTrg = Iden [table1 ,targetAlias] - , bseTbl = [TRJoin - (TRQueryExpr (toSQL (selectExpr fSpec expr1)) `as` table1) - False -- Needs to be false in MySql - JLeft - (TRQueryExpr (toSQL (selectExpr fSpec (flp expr2))) `as` table2) - (Just . JoinOn . conjunctSQL $ - [ BinOp (Iden[table1,sourceAlias]) [Name "="] (Iden[table2,sourceAlias]) - , BinOp (Iden[table1,targetAlias]) [Name "="] (Iden[table2,targetAlias]) - ] - ) - ] - , bseWhr = whereClause - } + -> go True expr1 expr2 _ -> Nothing - + where + go :: Bool -> Expression -> Expression -> Maybe BinQueryExpr + go isFlipped expr1 expr2 = Just . + BQEComment + [ BlockComment . unlines $ + [ "Optimized case for: intersect with the " + ++(if isFlipped then "flipped " else "") + ++"complement of "++(case expr2 of + EDcD (dcl@Sgn{}) -> "`"++name dcl++"`" + _ -> "" + )++"." + , "where " + , " = "++showADL expr1++" ("++show (sign expr1)++")" + , " = "++showADL expr2++" ("++show (sign expr2)++")" + , " "++showADL expr++" ("++show (sign expr)++")" + ] + ] $ BSE { bseSrc = Col { cTable = [table1] + , cCol = [sourceAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [table1] + , cCol = [targetAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTbl = [TRJoin + (TRQueryExpr (toSQL (selectExpr fSpec expr1)) `as` table1) + False -- Needs to be false in MySql + JLeft + leftTable + (Just . JoinOn . conjunctSQL $ + [ BinOp (Iden[table1,sourceAlias]) [Name "="] (Iden[table2,expr2Src]) + , BinOp (Iden[table1,targetAlias]) [Name "="] (Iden[table2,expr2trg]) + ]) + ] + , bseWhr = Just . disjunctSQL $ + [ isNull (Iden[table2,expr2Src]) + , isNull (Iden[table2,expr2trg]) + ] + } + where + fun = if isFlipped then flp else id + (expr2Src,expr2trg,leftTable) = + case expr2 of + EDcD (dcl@Sgn{}) -> + let (plug,s,t) = getDeclarationTableInfo fSpec dcl + lt = TRSimple [QName (name plug)] `as` table2 + in if isFlipped + then (QName (name t), QName (name s), lt) + else (QName (name s), QName (name t), lt) + _ -> ( sourceAlias, targetAlias + , TRQueryExpr (toSQL (selectExpr fSpec (fun expr2))) `as` table2) + table1 = Name "t1" + table2 = Name "t2" nonSpecialSelectExpr :: FSpec -> Expression -> BinQueryExpr nonSpecialSelectExpr fSpec expr= @@ -175,20 +234,19 @@ nonSpecialSelectExpr fSpec expr= -> [Expression] -- subexpressions of the intersection. Mp1{} nor ECpl(Mp1{}) are allowed elements of this list. -> BinQueryExpr f specificValue subTerms - = BQEComment [BlockComment $ unlines (["case: (EIsc "++showADL expr++" ("++show (sign expr)++")" - ]++case expr of - EIsc (a,b) -> - [show a - ,show b - ] - _ -> fatal 148 $ "Not expecting anything else here than EIsc!\n " ++ show expr - )] $ + = BQEComment [BlockComment . unlines $ + ("case: (EIsc "++showADL expr++" ("++show (sign expr)++")") + : + case expr of + EIsc (a,b) -> [show a, show b] + _ -> fatal 148 $ "Not expecting anything else here than EIsc!\n " ++ show expr + ] $ case subTerms of [] -> case specificValue of Nothing -> emptySet -- case might occur with only negMp1Terms?? Just singleton -> selectExpr fSpec (EMp1 singleton (source expr)) - ts -> BSE { bseSrc = theSrc - , bseTrg = theTrg + ts -> BSE { bseSrc = theSr' + , bseTrg = theTr' , bseTbl = theTbl , bseWhr = case catMaybes [mandatoryTuple,forbiddenTuples,theWhr] of [] -> Nothing @@ -203,8 +261,8 @@ nonSpecialSelectExpr fSpec expr= where equalToValueClause :: PSingleton -> ValueExpr equalToValueClause singleton = conjunctSQL - [ BinOp theSrc [Name "="] (singleton2SQL (source expr) singleton) - , BinOp theTrg [Name "="] (singleton2SQL (source expr) singleton) + [ BinOp (col2ValueExpr theSr') [Name "="] (singleton2SQL (source expr) singleton) + , BinOp (col2ValueExpr theTr') [Name "="] (singleton2SQL (source expr) singleton) ] forbiddenTuples :: Maybe ValueExpr @@ -216,25 +274,32 @@ nonSpecialSelectExpr fSpec expr= where notEqualToValueClause :: PSingleton -> ValueExpr notEqualToValueClause singleton = conjunctSQL - [ BinOp theSrc [Name "<>"] (singleton2SQL (source expr) singleton) - , BinOp theTrg [Name "<>"] (singleton2SQL (source expr) singleton) + [ BinOp (col2ValueExpr theSr') [Name "<>"] (singleton2SQL (source expr) singleton) + , BinOp (col2ValueExpr theTr') [Name "<>"] (singleton2SQL (source expr) singleton) ] - theSrc = bseSrc (makeSelectable sResult) - theTrg = bseTrg (makeSelectable sResult) + theSr' = bseSrc (makeSelectable sResult) + theTr' = bseTrg (makeSelectable sResult) theTbl = bseTbl (makeSelectable sResult) theWhr = case makeSelectable sResult of e@BSE{} -> bseWhr e BCQE{} -> fatal 129 "makeSelectable is not doing what it is supposed to do!" BQEComment{} -> fatal 130 "makeSelectable is not doing what it is supposed to do!" sResult = makeIntersectSelectExpr ts + dummy = Name "someDummyNameBecauseMySQLNeedsOne" makeSelectable :: BinQueryExpr -> BinQueryExpr makeSelectable x = case x of BSE{} -> x - _ -> BSE { bseSrc = Iden [sourceAlias] - , bseTrg = Iden [targetAlias] - , bseTbl = [TRQueryExpr (toSQL (x)) `as` Name "someDummyNameBecauseMySQLNeedsOne" ] + _ -> BSE { bseSrc = Col { cTable = [dummy] + , cCol = [sourceAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [dummy] + , cCol = [targetAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTbl = [TRQueryExpr (toSQL x) `as` dummy] , bseWhr = Nothing } makeIntersectSelectExpr :: [Expression] -> BinQueryExpr @@ -243,25 +308,31 @@ nonSpecialSelectExpr fSpec expr= [] -> fatal 126 "makeIntersectSelectExpr must not be used on empty list" [e] -> e es -> -- Note: We now have at least two subexpressions - BQEComment [BlockComment "`intersect` does not work in MySQL, so this statement is generated:"] $ - BSE { bseSrc = Iden[iSect 0,sourceAlias] - , bseTrg = Iden[iSect 0,targetAlias] - , bseTbl = map tableRef (zip [0..] es) + BQEComment [BlockComment "`intersect` does not work in MySQL, so this statement is generated:"] + BSE { bseSrc = Col { cTable = [iSect 0] + , cCol = [sourceAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [iSect 0] + , cCol = [targetAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTbl = zipWith tableRef [0 ..] es , bseWhr = Just . conjunctSQL . concatMap constraintsOfTailExpression $ [1..length (tail es)] } where iSect :: Int -> Name iSect n = Name ("subIntersect"++show n) - tableRef :: (Int, BinQueryExpr) -> TableRef - tableRef (n, e) = TRQueryExpr (toSQL e) `as` iSect n + tableRef :: Int -> BinQueryExpr -> TableRef + tableRef n e = TRQueryExpr (toSQL e) `as` iSect n constraintsOfTailExpression :: Int -> [ValueExpr] constraintsOfTailExpression n = [ BinOp (Iden[iSect n,sourceAlias]) [Name "="] (Iden[iSect 0,sourceAlias]) , BinOp (Iden[iSect n,targetAlias]) [Name "="] (Iden[iSect 0,targetAlias]) ] - EUni (l,r) -> BQEComment [BlockComment $ "case: EUni (l,r)"++showADL expr++" ("++show (sign expr)++")"] $ + EUni (l,r) -> BQEComment [BlockComment $ "case: EUni (l,r)"++showADL expr++" ("++show (sign expr)++")"] BCQE { bcqeOper = Union , bcqe0 = selectExpr fSpec l , bcqe1 = selectExpr fSpec r @@ -301,9 +372,8 @@ nonSpecialSelectExpr fSpec expr= firstNr = 0 lastNr = firstNr + length es - 1 fenceExpr :: Int -> Expression - fenceExpr i = case lookup i (zip [firstNr..lastNr] es) of - Nothing -> fatal 238 "i out of bound!" - Just e -> e + fenceExpr i = fromMaybe (fatal 238 "i out of bound!") + . lookup i . zip [firstNr .. lastNr] $ es fences :: [Maybe TableRef] fences = map fenceTable [firstNr..lastNr] fenceTable :: Int -> Maybe TableRef @@ -337,47 +407,32 @@ nonSpecialSelectExpr fSpec expr= -- the SQL statement. Check the code of fenceTable for more details (Just _ , Nothing) -> case fenceExpr (i+1) of - EDcV _ -> noConstraint "..;EDcV" - EMp1 a c -> Just (BinOp (Iden [fenceName i,targetAlias]) - [Name "="] - (singleton2SQL c a)) - (ECpl (EMp1 a c)) - -> Just (BinOp (Iden [fenceName i,targetAlias]) - [Name "<>"] - (singleton2SQL c a)) + EDcV _ -> Nothing _ -> fatal 251 "there is no reason for having no fenceTable!" (Nothing, Just _ ) -> case fenceExpr i of - EDcV _ -> noConstraint "EDcV;.." - EMp1 a c -> Just (BinOp (singleton2SQL c a) - [Name "="] - (Iden [fenceName (i+1) ,sourceAlias])) - (ECpl (EMp1 a c)) - -> Just (BinOp (singleton2SQL c a) - [Name "<>"] - (Iden [fenceName (i+1) ,sourceAlias])) + EDcV _ -> Nothing _ -> fatal 258 "there is no reason for having no fenceTable!" (Nothing, Nothing) -> - -- This can be the case that EDcV and EMp1 are neighbour fences. - fatal 286 $ intercalate "\n " $ - ["Can this happen? Here is a case to analyse: (i = "++show i++")" - , "expr: "++showADL expr - ]++map show (zip (map (stringOfName . fenceName) [firstNr..]) es) - where - noConstraint str = Just $ BinOp x [Name "="] x - where - x = StringLit ("pole"++show i++"_"++str) - - - - in BQEComment [BlockComment $ "case: (ECps es), with two or more elements in es."++showADL expr] $ + -- This must be the special case: ...;V[A*B];V[B*C];.... + Just . SubQueryExpr SqExists . toSQL + . BQEComment [BlockComment "Case: ...;V[A*B];V[B*C];...."] + . selectExpr fSpec . EDcI . target . fenceExpr $ i + + in BQEComment [BlockComment $ "case: (ECps es), with two or more elements in es."++showADL expr] BSE { bseSrc = if source (head es) == ONE -- the first expression is V[ONE*someConcept] - then NumLit "1" - else Iden [fenceName firstNr,sourceAlias] + then theONESingleton + else Col { cTable = [fenceName firstNr] + , cCol = [sourceAlias] + , cAlias = [] + , cSpecial = Nothing} , bseTrg = if target (last es) == ONE -- the last expression is V[someConcept*ONE] - then NumLit "1" - else Iden [fenceName lastNr, targetAlias] + then theONESingleton + else Col { cTable = [fenceName lastNr] + , cCol = [targetAlias] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = catMaybes fences , bseWhr = case catMaybes polesConstraints of [] -> Nothing @@ -385,6 +440,7 @@ nonSpecialSelectExpr fSpec expr= } (EFlp x) -> flipped (selectExpr fSpec x) where + fTable = Name "flipped" flipped se = BQEComment [BlockComment ("Flipped: "++show x)] $ case se of @@ -393,9 +449,20 @@ nonSpecialSelectExpr fSpec expr= , bseTbl = bseTbl se , bseWhr = bseWhr se } - BCQE{} -> BSE { bseSrc = Iden [targetAlias] - , bseTrg = Iden [sourceAlias] - , bseTbl = [toTableRef se `as` Name "flipped"] -- MySQL requires you to label the "sub query" instead of just leaving it like many other implementations. + BCQE { bcqeOper = Union } + -> BCQE { bcqeOper = Union + , bcqe0 = flipped (bcqe0 se) + , bcqe1 = flipped (bcqe1 se) + } + BCQE{} -> BSE { bseSrc = Col { cTable = [fTable] + , cCol = [targetAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [fTable] + , cCol = [sourceAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTbl = [toTableRef se `as` fTable] -- MySQL requires you to label the "sub query" instead of just leaving it like many other implementations. , bseWhr = Nothing } (BQEComment c e) @@ -403,9 +470,15 @@ nonSpecialSelectExpr fSpec expr= BQEComment (_:c') fe -> BQEComment (c++c') fe _ -> fatal 309 "A flipped expression will always start with the comment `Flipped: ..." (EMp1 val c) -> let cAtt = Iden [sqlAttConcept fSpec c] - in BQEComment [BlockComment "case: EMp1 val c"] $ - BSE { bseSrc = cAtt - , bseTrg = cAtt + in BQEComment [BlockComment "case: EMp1 val c"] + BSE { bseSrc = Col { cTable = [] + , cCol = [sqlAttConcept fSpec c] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [] + , cCol = [sqlAttConcept fSpec c] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = [sqlConceptTable fSpec c] , bseWhr = Just $ BinOp cAtt [Name "="] (singleton2SQL c val) } @@ -414,22 +487,34 @@ nonSpecialSelectExpr fSpec expr= where (plug,att) = getConceptTableInfo fSpec s (ptgt,ftgt) = (QName (name plug), QName (name att)) where (plug,att) = getConceptTableInfo fSpec t - in BQEComment [BlockComment $ "case: (EDcV (Sign s t)) V[ \""++show (Sign s t)++"\" ]"] $ + in BQEComment [BlockComment $ "case: (EDcV (Sign s t)) V"++show (Sign s t)++""] $ case (s,t) of (ONE, ONE) -> one - (_ , ONE) -> BSE { bseSrc = Iden [psrc, fsrc] - , bseTrg = NumLit "1" + (_ , ONE) -> BSE { bseSrc = Col { cTable = [psrc] + , cCol = [fsrc] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = theONESingleton , bseTbl = [TRSimple [psrc]] , bseWhr = Just (notNull (Iden [psrc, fsrc])) } - (ONE, _ ) -> BSE { bseSrc = NumLit "1" - , bseTrg = Iden [ptgt, ftgt] + (ONE, _ ) -> BSE { bseSrc = theONESingleton + , bseTrg = Col { cTable = [ptgt] + , cCol = [ftgt] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = [TRSimple [ptgt]] , bseWhr = Just (notNull (Iden [ptgt, ftgt])) } - _ -> BSE { bseSrc = Iden [first, fsrc] - , bseTrg = Iden [secnd, ftgt] + _ -> BSE { bseSrc = Col { cTable = [first] + , cCol = [fsrc] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [secnd] + , cCol = [ftgt] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = [TRSimple [psrc] `as` first ,TRSimple [ptgt] `as` secnd] , bseWhr = Just $ conjunctSQL @@ -439,18 +524,23 @@ nonSpecialSelectExpr fSpec expr= first = Name "fst" secnd = Name "snd" - (EDcI c) -> case c of - ONE -> BQEComment [BlockComment "I[ONE]"] $ - BSE { bseSrc = NumLit "1" - , bseTrg = NumLit "1" + (EDcI c) -> BQEComment [BlockComment $ "I["++name c++"]"] $ + case c of + ONE -> BSE { bseSrc = theONESingleton + , bseTrg = theONESingleton , bseTbl = [] , bseWhr = Nothing } PlainConcept{} -> let cAtt = Iden [sqlAttConcept fSpec c] - in BQEComment [BlockComment $ "I["++name c++"]"] $ - BSE { bseSrc = cAtt - , bseTrg = cAtt + in BSE { bseSrc = Col { cTable = [] + , cCol = [sqlAttConcept fSpec c] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [] + , cCol = [sqlAttConcept fSpec c] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = [sqlConceptTable fSpec c] , bseWhr = Just (notNull cAtt) } @@ -459,17 +549,23 @@ nonSpecialSelectExpr fSpec expr= -- EEps behaves like I. The intersects are semantically relevant, because all semantic irrelevant EEps expressions have been filtered from es. (EEps c sgn) -> BQEComment [BlockComment $ "epsilon "++name c++" "++showSign sgn] $ case c of -- select the population of the most specific concept, which is the source. - ONE -> BSE { bseSrc = NumLit "1" - , bseTrg = NumLit "1" + ONE -> BSE { bseSrc = theONESingleton + , bseTrg = theONESingleton , bseTbl = [] , bseWhr = Nothing } PlainConcept{} -> - let cAtt = sqlAttConcept fSpec c - in BSE { bseSrc = Iden [cAtt] - , bseTrg = Iden [cAtt] + let cAtt = Iden [sqlAttConcept fSpec c] + in BSE { bseSrc = Col { cTable = [] + , cCol = [sqlAttConcept fSpec c] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [] + , cCol = [sqlAttConcept fSpec c] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = [sqlConceptTable fSpec c] - , bseWhr = Just (notNull (Iden [cAtt])) + , bseWhr = Just (notNull cAtt) } (EDcD d) -> selectDeclaration fSpec d @@ -479,9 +575,15 @@ nonSpecialSelectExpr fSpec expr= -> case e of EDcV _ -> emptySet EDcI ONE -> fatal 254 "EDcI ONE must not be seen at this place." - EDcI c -> BQEComment [BlockComment $ "case: ECpl (EDcI "++name c++")"] $ - BSE { bseSrc = Iden [QName "concept0", concpt] - , bseTrg = Iden [QName "concept1", concpt] + EDcI c -> BQEComment [BlockComment $ "case: ECpl (EDcI "++name c++")"] + BSE { bseSrc = Col { cTable = [QName "concept0"] + , cCol = [concpt] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [QName "concept1"] + , cCol = [concpt] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = [sqlConceptTable fSpec c `as` QName "concept0" ,sqlConceptTable fSpec c `as` QName "concept1" ] @@ -491,22 +593,28 @@ nonSpecialSelectExpr fSpec expr= ) } where concpt = sqlAttConcept fSpec c - _ | otherwise -> BQEComment (map BlockComment [ "case: ECpl e", "ECpl ( \""++showADL e++"\" )"]) $ - BSE { bseSrc = Iden [closedWorldName,sourceAlias] - , bseTrg = Iden [closedWorldName,targetAlias] - , bseTbl = [(toTableRef . selectExpr fSpec) theClosedWorldExpression `as` closedWorldName] - , bseWhr = Just $ selectNotExists - (toTableRef (selectExpr fSpec e) `as` posName) - (Just . conjunctSQL $ - [BinOp (Iden [closedWorldName,sourceAlias]) - [Name "="] - (Iden [posName,sourceAlias]) - ,BinOp (Iden [closedWorldName,targetAlias]) - [Name "="] - (Iden [posName,targetAlias]) - ] - ) - } + _ -> BQEComment (map BlockComment [ "case: ECpl e", "ECpl ( \""++showADL e++"\" )"]) + BSE { bseSrc = Col { cTable = [closedWorldName] + , cCol = [sourceAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [closedWorldName] + , cCol = [targetAlias] + , cAlias = [] + , cSpecial = Nothing} + , bseTbl = [(toTableRef . selectExpr fSpec) theClosedWorldExpression `as` closedWorldName] + , bseWhr = Just $ selectNotExists + (toTableRef (selectExpr fSpec e) `as` posName) + (Just . conjunctSQL $ + [BinOp (Iden [closedWorldName,sourceAlias]) + [Name "="] + (Iden [posName,sourceAlias]) + ,BinOp (Iden [closedWorldName,targetAlias]) + [Name "="] + (Iden [posName,targetAlias]) + ] + ) + } where posName = Name "pos" closedWorldName = QName ("cartesian product of "++plur (source e) ++ " and " ++ plur (target e)) @@ -556,10 +664,16 @@ Based on this derivation: | target l == ONE = fatal 332 ("ONE is unexpected as target of "++showADL l) | target r == ONE = fatal 333 ("ONE is unexpected as target of "++showADL r) | otherwise - = BSE { bseSrc = Iden [ resLeft, mainSrc] - , bseTrg = Iden [ resRight, mainTgt] - , bseTbl = [sqlConceptTable fSpec (target l) `as` resLeft - ,sqlConceptTable fSpec (target r) `as` resRight] + = BSE { bseSrc = Col { cTable = [resLeft] + , cCol = [mainSrc] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [resRight] + , cCol = [mainTgt] + , cAlias = [] + , cSpecial = Nothing} + , bseTbl = [ sqlConceptTable fSpec (target l) `as` resLeft + , sqlConceptTable fSpec (target r) `as` resRight] , bseWhr = Just . VEComment [BlockComment $ "Left hand side: "++showADL l] $ selectNotExists (lCode `as` lhs) @@ -634,29 +748,35 @@ selectDeclaration fSpec dcl = | source sgn == ONE -> fatal 468 "ONE is not expected at this place" | target sgn == ONE -> fatal 469 "ONE is not expected at this place" | otherwise - -> let src,trg :: ValueExpr - src=Iden [Name "vfst", sqlAttConcept fSpec (source sgn)] - trg=Iden [Name "vsnd", sqlAttConcept fSpec (target sgn)] - in BSE { bseSrc = src - , bseTrg = trg - , bseTbl = [sqlConceptTable fSpec (source sgn) `as` Name "vfst" - ,sqlConceptTable fSpec (target sgn) `as` Name "vsnd"] - , bseWhr = Just (conjunctSQL (map notNull [src,trg])) - } + -> BSE { bseSrc = Col { cTable = [Name "vfst"] + , cCol = [sqlAttConcept fSpec (source sgn)] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [Name "vsnd"] + , cCol = [sqlAttConcept fSpec (target sgn)] + , cAlias = [] + , cSpecial = Nothing} + , bseTbl = [sqlConceptTable fSpec (source sgn) `as` Name "vfst" + ,sqlConceptTable fSpec (target sgn) `as` Name "vsnd"] + , bseWhr = Just . conjunctSQL . map notNull $ + [ Iden [Name "vfst", sqlAttConcept fSpec (source sgn)] + , Iden [Name "vsnd", sqlAttConcept fSpec (target sgn)]] + } where leafCode :: (PlugSQL,SqlAttribute,SqlAttribute) -> BinQueryExpr leafCode (plug,s,t) - = BSE { bseSrc = Iden [QName (name s)] - , bseTrg = Iden [QName (name t)] + = BSE { bseSrc = Col { cTable = [] + , cCol = [QName (name s)] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [] + , cCol = [QName (name t)] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = [TRSimple [QName (name plug)]] - , bseWhr = if mayContainNulls plug - then Just . conjunctSQL . map notNull $ + , bseWhr = Just . conjunctSQL . map notNull $ [Iden [QName (name c)] | c<-nub [s,t]] - else Nothing } - where mayContainNulls TblSQL{} = True - mayContainNulls _ = False - isNotIn :: ValueExpr -> QueryExpr -> ValueExpr isNotIn value = In False value . InQueryExpr @@ -699,8 +819,8 @@ selectExists tbl whr = } -- | a (local) data structure to hold SQL info for binary expressions -data BinQueryExpr = BSE { bseSrc :: ValueExpr -- ^ source attribute and table - , bseTrg :: ValueExpr -- ^ target attribute and table +data BinQueryExpr = BSE { bseSrc :: Col + , bseTrg :: Col , bseTbl :: [TableRef] -- ^ tables , bseWhr :: Maybe ValueExpr -- ^ the (optional) WHERE clause } @@ -709,24 +829,54 @@ data BinQueryExpr = BSE { bseSrc :: ValueExpr -- ^ source attribute and t , bcqe1 :: BinQueryExpr -- ^ Right expression } | BQEComment [Comment] BinQueryExpr - +data Col = Col { cTable :: [Name] + , cCol :: [Name] + , cAlias :: [Name] + , cSpecial :: Maybe ValueExpr + } +col2ValueExpr :: Col -> ValueExpr +col2ValueExpr col = + case cSpecial col of + Nothing -> Iden x + Just ve + | null x -> ve + | otherwise -> fatal 826 "cSpecial should only be used in special cases, e.g. with ONE" + where + x = cTable col++cCol col++cAlias col stripComment :: BinQueryExpr -> BinQueryExpr stripComment bqe = case bqe of - BSE{} -> bqe + BSE{} -> BSE { bseSrc = bseSrc bqe + , bseTrg = bseTrg bqe + , bseTbl = map stripCommentTableRef . bseTbl $ bqe + , bseWhr = bseWhr bqe + } BCQE{} -> BCQE { bcqeOper = bcqeOper bqe , bcqe0 = stripComment (bcqe0 bqe) , bcqe1 = stripComment (bcqe1 bqe) } BQEComment _ x -> stripComment x - - +stripCommentTableRef :: TableRef -> TableRef +stripCommentTableRef tr = + case tr of + TRSimple _ -> tr + TRJoin tr1 b jt tr2 x -> TRJoin (stripCommentTableRef tr1) b jt (stripCommentTableRef tr2) x + TRParens tr1 -> TRParens (stripCommentTableRef tr1) + TRAlias tr1 x -> TRAlias (stripCommentTableRef tr1) x + TRQueryExpr qe -> TRQueryExpr (stripCommentQueryExpr qe) + TRFunction _ _ -> tr + TRLateral tr1 -> TRLateral (stripCommentTableRef tr1) +stripCommentQueryExpr :: QueryExpr -> QueryExpr +stripCommentQueryExpr qe = + case qe of + QEComment _ qe' -> stripCommentQueryExpr qe' + _ -> qe toSQL :: BinQueryExpr -> QueryExpr toSQL bqe = case bqe of BSE{} -> Select { qeSetQuantifier = Distinct - , qeSelectList = [ (bseSrc bqe, Just sourceAlias) - , (bseTrg bqe, Just targetAlias)] + , qeSelectList = [ (col2ValueExpr (bseSrc bqe), Just sourceAlias) + , (col2ValueExpr (bseTrg bqe), Just targetAlias)] , qeFrom = bseTbl bqe , qeWhere = bseWhr bqe , qeGroupBy = [] @@ -753,8 +903,7 @@ sqlConcept :: FSpec -> A_Concept -> Name sqlConcept fSpec = QName . name . sqlConceptPlug fSpec -- sqlConcept yields the plug that contains all atoms of A_Concept c. Since there may be more of them, the first one is returned. sqlConceptPlug :: FSpec -> A_Concept -> PlugSQL -sqlConceptPlug fSpec c | c==ONE = fatal 583 "A_Concept ONE may not be represented in SQL." - | otherwise +sqlConceptPlug fSpec c = case lookupCpt fSpec c of [] -> fatal 585 $ "A_Concept \""++show c++"\" does not occur in fSpec." (plug,_):_ -> plug @@ -774,14 +923,17 @@ stringOfName (UQName s) = s stringOfName _ = fatal 659 "This kind of a Name wasn't used before in Ampersand. " conjunctSQL :: [ValueExpr] -> ValueExpr -conjunctSQL [] = fatal 57 "nothing to `AND`." -conjunctSQL [ve] = ve -conjunctSQL (ve:ves) = BinOp ve [Name "AND"] (conjunctSQL ves) +conjunctSQL [] = fatal 57 "nothing to `and`." +conjunctSQL [ve] = bracketsSQL ve +conjunctSQL (ve:ves) = BinOp (bracketsSQL ve) [Name "and"] (conjunctSQL ves) disjunctSQL :: [ValueExpr] -> ValueExpr -disjunctSQL [] = fatal 57 "nothing to `OR`." -disjunctSQL [ve] = ve -disjunctSQL (ve:ves) = BinOp ve [Name "OR"] (conjunctSQL ves) +disjunctSQL [] = fatal 57 "nothing to `or`." +disjunctSQL [ve] = bracketsSQL ve +disjunctSQL (ve:ves) = BinOp (bracketsSQL ve) [Name "or"] (conjunctSQL ves) + +bracketsSQL :: ValueExpr -> ValueExpr +bracketsSQL = Parens as :: TableRef -> Name -> TableRef as ve a = -- TRAlias ve (Alias a Nothing) @@ -793,17 +945,23 @@ as ve a = -- TRAlias ve (Alias a Nothing) withAlias = TRAlias ve (Alias a Nothing) notNull :: ValueExpr -> ValueExpr -notNull ve = PostfixOp [Name "IS NOT NULL"] ve +notNull = PostfixOp [Name "is not null"] isNull :: ValueExpr -> ValueExpr -isNull ve = PostfixOp [Name "IS NULL"] ve +isNull = PostfixOp [Name "is null"] emptySet :: BinQueryExpr -emptySet = BQEComment [BlockComment "this will quaranteed return 0 rows:"] $ +emptySet = BQEComment [BlockComment "this will quaranteed return 0 rows:"] BSE { -- select 1 as src, 1 as trg from (select 1) dummy where false - bseSrc = Iden [a] - , bseTrg = Iden [a] + bseSrc = Col { cTable = [nothing] + , cCol = [a] + , cAlias = [] + , cSpecial = Nothing} + , bseTrg = Col { cTable = [nothing] + , cCol = [a] + , cAlias = [] + , cSpecial = Nothing} , bseTbl = [TRQueryExpr (QEComment [BlockComment "Select nothing..."] - (Select { qeSetQuantifier = SQDefault + Select { qeSetQuantifier = SQDefault , qeSelectList = [(NumLit "1", Just a)] , qeFrom = [] , qeWhere = Nothing @@ -812,18 +970,20 @@ emptySet = BQEComment [BlockComment "this will quaranteed return 0 rows:"] $ , qeOrderBy = [] , qeOffset = Nothing , qeFetchFirst = Nothing - })) `as` Name "nothing"] + } + ) `as` nothing] , bseWhr = Just (BinOp (Iden [a]) [Name "<>"] (NumLit "1")) } where a = Name "a" + nothing = Name "nothing" one :: BinQueryExpr -one = BQEComment [BlockComment "Just ONE"] $ +one = BQEComment [BlockComment "Just ONE"] BSE { -- select distinct 1 as src, 1 as tgt from (select 1) as a - bseSrc = NumLit "1" - , bseTrg = NumLit "1" - , bseTbl = [(TRQueryExpr Select { qeSetQuantifier = SQDefault + bseSrc = theONESingleton + , bseTrg = theONESingleton + , bseTbl = [ TRQueryExpr Select { qeSetQuantifier = SQDefault , qeSelectList = [(NumLit "1", Nothing)] , qeFrom = [] , qeWhere = Nothing @@ -832,10 +992,135 @@ one = BQEComment [BlockComment "Just ONE"] $ , qeOrderBy = [] , qeOffset = Nothing , qeFetchFirst = Nothing - }) `as` Name "ONE" ] + } `as` Name "ONE" ] , bseWhr = Nothing } theDialect :: Dialect theDialect = MySQL -- maybe in the future other dialects will be supported. This depends on package `simple-sql-parser` +broadQuery :: FSpec -> ObjectDef -> QueryExpr +broadQuery fSpec obj = + -- The idea is to fetch all columns that are available in the same Plug as the conceptTable of the + -- target of the object's context-expression. This dramatically reduces the number of queries required, + -- and hence will boost performance at runtime. + -- + -- So here is the plan:. + -- a) The ObjectDef has a contextExpression. A BinQueryExpr can be built using selectExpr. + -- b) For all expressions in the subinterface, when they are in the same table as the conceptTable of + -- the target of the contextExpression, we want to fetch them in this single query. + -- c) We know the table that is used to get the tgt of the result of a) This could be some intermediate table! + -- d) we know the conceptTable of the target concept of the expression. + --There are the following cases to consider: + -- 1) There is no subinterface, or the subinterface contains no expressions to consider + -- 2) The only expression to consider is I[] + -- 3) The plug used to fetch the contextExpression is the same plug as the conceptTable of the target of that expression. + -- 4) None of the above + case objmsub obj of + Nothing -> toSQL baseBinExpr + Just InterfaceRef{} -> toSQL baseBinExpr + Just Box{siObjs=sObjs} -> + case filter isInBroadQuery sObjs of + [] -> toSQL baseBinExpr + xs -> extendWithCols xs baseBinExpr + -- xs -> extendWithCols xs (toSQL baseBinExpr) + where + baseBinExpr = getBinQueryExprPlaceholder fSpec . objctx $ obj + + extendWithCols :: [ObjectDef] -> BinQueryExpr -> QueryExpr + extendWithCols objs bqe + | null objs = plainQE + | otherwise = + case bqe of + BSE{} -> newSelect (newSelectList,newFrom,newWhere) + where + (newSelectList,newFrom,newWhere) = + case qeFrom plainQE of + [TRSimple [n]] + -> if n == sqlConcept fSpec tableCpt + then ( qeSelectList plainQE ++ map (makeCol Nothing) objs + , qeFrom plainQE + , qeWhere plainQE + ) + else subThings + _ -> subThings + BCQE{} -> newSelect subThings + BQEComment _ x -> extendWithCols objs x + where + newSelect (sl,f,w) = + Select { qeSetQuantifier = Distinct + , qeSelectList = sl + , qeFrom = f + , qeWhere = w + , qeGroupBy = [] + , qeHaving = Nothing + , qeOrderBy = [] + , qeOffset = Nothing + , qeFetchFirst = Nothing + } + plainQE = toSQL bqe + makeCol :: Maybe Name -> ObjectDef -> (ValueExpr, Maybe Name) + makeCol tableName col = + case attThatisInTableOf (target . objctx $ obj) col of + Nothing -> fatal 1104 $ "this is unexpected behaviour. "++show col + Just att -> ( Iden ( case tableName of + Nothing -> [QName (name att)] + Just tab -> [tab,QName (name att)] + ) + , Just ( QName $ -- The name is not sufficient for two reasons: + -- 1) the columname must be unique. For that reason, it is prefixed: + "ifc_"++ + -- 2) It must be injective. Because SQL deletes trailing spaces, + -- we have to cope with that: + escapeIdentifier (name col) + ) + ) + subThings :: ( [(ValueExpr, Maybe Name)] + , [TableRef] + , Maybe ValueExpr + ) + subThings = ( [ (Iden [org,sourceAlias] , Just sourceAlias) + , (Iden [org,targetAlias] , Just targetAlias) + ]++ map (makeCol . Just $ ct) objs + , [ TRQueryExpr plainQE `as` org + , sqlConceptTable fSpec tableCpt `as` ct + ] + , Just (BinOp (Iden [org, targetAlias]) + [Name "="] + (Iden [ct, sqlAttConcept fSpec tableCpt]) + ) + ) + where + org = Name "org" + ct = Name "cptTbl" + tableCpt = source . objctx . head $ objs + + isInBroadQuery :: ObjectDef -> Bool + isInBroadQuery sObj = + (isUni . objctx $ sObj) && + (isJust . attThatisInTableOf (target . objctx $ obj) $ sObj) + + attThatisInTableOf :: A_Concept -> ObjectDef -> Maybe SqlAttribute + attThatisInTableOf cpt od = + case theDcl of + Nothing -> Nothing + Just (p,att) -> if plug == p + then Just att + else Nothing + where + (plug, _ ) = getConceptTableInfo fSpec cpt + theDcl :: Maybe (PlugSQL, SqlAttribute) + theDcl = case objctx od of + EFlp (EDcD d) -> let (p, s, _) = getDeclarationTableInfo fSpec d + in Just (p, s) + EDcD d -> let (p, _, t) = getDeclarationTableInfo fSpec d + in Just (p, t) + EDcI c -> Just $ getConceptTableInfo fSpec c + _ -> Nothing + +theONESingleton :: Col +theONESingleton = Col { cTable = [] + , cCol = [] + , cAlias = [] + , cSpecial = Just $ NumLit "1" + } diff --git a/src/Database/Design/Ampersand/FSpec/ShowHS.hs b/src/Database/Design/Ampersand/FSpec/ShowHS.hs index de6ae86dcb..832b457741 100644 --- a/src/Database/Design/Ampersand/FSpec/ShowHS.hs +++ b/src/Database/Design/Ampersand/FSpec/ShowHS.hs @@ -261,7 +261,7 @@ instance ShowHS FSpec where , wrap ", vviews = " indentA (\_->showHSName) (vviews fSpec) , wrap ", vgens = " indentA (showHS opts) (vgens fSpec) , wrap ", fsisa = " indentA (\_->showHSName) (fsisa fSpec) - , wrap ", vconjs = " indentA (\_->showHSName) (vconjs fSpec) + , wrap ", allConjuncts = " indentA (\_->showHSName) (allConjuncts fSpec) , wrap ", vquads = " indentA (\_->showHSName) (vquads fSpec) , wrap ", vEcas = " indentA (\_->showHSName) (vEcas fSpec) , ", fSwitchboard = "++showHS opts indentA (fSwitchboard fSpec) @@ -321,9 +321,9 @@ instance ShowHS FSpec where "\n -- *** Generated rules (total: "++(show.length.grules) fSpec++" rules) ***: "++ concat [indent++" "++showHSName x++indent++" = "++showHS opts (indent++" ") x |x<-grules fSpec ]++"\n" )++ - (if null (vconjs fSpec ) then "" else - "\n -- *** Conjuncts (total: "++(show.length.vconjs) fSpec++" conjuncts) ***: "++ - concat [indent++" "++showHSName x++indent++" = "++showHS opts (indent++" ") x |x<-vconjs fSpec ]++"\n" + (if null (allConjuncts fSpec ) then "" else + "\n -- *** Conjuncts (total: "++(show.length.allConjuncts) fSpec++" conjuncts) ***: "++ + concat [indent++" "++showHSName x++indent++" = "++showHS opts (indent++" ") x |x<-allConjuncts fSpec ]++"\n" )++ (if null (vquads fSpec ) then "" else "\n -- *** Quads (total: "++(show.length.vquads) fSpec++" quads) ***: "++ diff --git a/src/Database/Design/Ampersand/FSpec/ShowMeatGrinder.hs b/src/Database/Design/Ampersand/FSpec/ShowMeatGrinder.hs index 4f768ab430..24e1801b4f 100644 --- a/src/Database/Design/Ampersand/FSpec/ShowMeatGrinder.hs +++ b/src/Database/Design/Ampersand/FSpec/ShowMeatGrinder.hs @@ -2,7 +2,7 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE DeriveDataTypeable #-} module Database.Design.Ampersand.FSpec.ShowMeatGrinder - (makeMetaPopulationFile,MetaType(..)) + (makeMetaPopulationFile) where import Data.List @@ -14,27 +14,25 @@ import Data.Typeable import Database.Design.Ampersand.FSpec.FSpec import Database.Design.Ampersand.FSpec.FSpecAux import Database.Design.Ampersand.FSpec.Motivations -import Database.Design.Ampersand.FSpec.SQL -import Database.Design.Ampersand.FSpec.ToFSpec.NormalForms (conjNF) import Database.Design.Ampersand.Basics import Database.Design.Ampersand.Misc import Database.Design.Ampersand.FSpec.ShowADL import Database.Design.Ampersand.Core.AbstractSyntaxTree -import Database.Design.Ampersand.Classes.ConceptStructure -makeMetaPopulationFile :: MetaType -> FSpec -> (FilePath,String) -makeMetaPopulationFile mType fSpec - = ("MetaPopulationFile"++show mType++".adl", content popKind mType fSpec) - where popKind = case mType of - Generics -> generics fSpec - AST -> metaPops fSpec +makeMetaPopulationFile :: FSpec -> (FilePath,String) +makeMetaPopulationFile fSpec + = ("MetaPopulationFile.adl", content fSpec) {-SJ 2015-11-06 Strange that the function 'content' generates text. I would have expected a P-structure (of even an A-structure) instead. -Is there a reason? -} -content :: (FSpec -> [Pop]) -> MetaType -> FSpec -> String -content popKind mType fSpec = unlines +Is there a reason? +Answer: HJO: By directly generate a string, the resulting file can contain comment, which is + usefull for debugging. However, the idea is good. In future, we might change + it to create a P_Context in stead of a String. +-} +content :: FSpec -> String +content fSpec = unlines ([ "{- Do not edit manually. This code has been generated!!!" , " Generated with "++ampersandVersionStr , " Generated at "++show (genTime (getOpts fSpec)) @@ -49,38 +47,12 @@ content popKind mType fSpec = unlines , "" , "-}" , "" - , "CONTEXT "++show mType++" IN ENGLISH -- (the language is chosen arbitrary, for it is mandatory but irrelevant."] - ++ (concat.intersperse []) (map (lines . showADL ) (popKind fSpec)) + , "CONTEXT FormalAmpersand IN ENGLISH -- (the language is chosen arbitrary, for it is mandatory but irrelevant."] + ++ intercalate [] (map (lines . showADL ) (metaPops fSpec fSpec)) ++ [ "" , "ENDCONTEXT" ]) -instance GenericPopulations FSpec where - generics _ fSpec = - filter (not.nullContent) - ( - [ Pop "versionInfo" "Context" "AmpersandVersion" - [(dirtyId fSpec, show ampersandVersionStr)] - , Pop "contextName" "Context" "ContextName" - [(dirtyId fSpec, (show.name) fSpec)] - , Pop "dbName" "Context" "DatabaseName" - [(dirtyId fSpec, (show.dbName.getOpts) fSpec)] - , Comment " ", Comment $ "[Relations]--: (count="++(show.length.vrels) fSpec++")" ] - ++ concatMap (generics fSpec) (vrels fSpec) - ++[ Comment " ", Comment $ "[Concepts]--: (count="++(show.length) [c | c <- concs fSpec]++")"] - ++ concatMap (generics fSpec) [c | c <- concs fSpec] - ++[ Comment " ", Comment $ "[TableColumnInfo]--: (count="++(show.length) allSqlPlugs++")"] - ++ concatMap (generics fSpec) allSqlPlugs - ++[ Comment " ", Comment $ "[Rules]--: (count="++(show.length.fallRules) fSpec++")"] - ++ concatMap (generics fSpec) (fallRules fSpec) - ++[ Comment " ", Comment $ "[Conjuncts]--: (count="++(show.length.vconjs) fSpec++")"] - ++ concatMap (generics fSpec) (vconjs fSpec) - ++[ Comment " ", Comment $ "[Roles]--: (count="++(show.length.fRoles) fSpec++")"] - ++ concatMap (generics fSpec) [role | (role,_) <- fRoles fSpec] - ) - where - allSqlPlugs = [plug | InternalPlug plug <- plugInfos fSpec] - instance MetaPopulations FSpec where metaPops _ fSpec = filter (not.nullContent) @@ -92,10 +64,6 @@ instance MetaPopulations FSpec where [(dirtyId fSpec, (show.name) fSpec)] , Pop "dbName" "Context" "DatabaseName" [(dirtyId fSpec, (show.dbName.getOpts) fSpec)] --- , Pop "concs" "Context" "Concept" --- [(dirtyId fSpec, show "SESSION"), (dirtyId fSpec, show "ONE")] --- , Pop "name" "Context" "ContextIdentifier" --- [(dirtyId fSpec, (show.name) fSpec)] , Pop "allRoles" "Context" "Role" [(dirtyId fSpec, show "SystemAdmin")] , Pop "name" "Role" "RoleName" @@ -107,8 +75,6 @@ instance MetaPopulations FSpec where ++ concatMap (metaPops fSpec) (vgens fSpec) ++[ Comment " ", Comment $ "PATTERN Concept: (count="++(show.length.concs) fSpec++")"] ++ concatMap (metaPops fSpec) ((sortBy (comparing name).concs) fSpec) --- ++[ Comment " ", Comment $ "PATTERN Atoms: (count="++(show.length) (allAtoms fSpec)++")"] --- ++ concatMap (metaPops fSpec) (allAtoms fSpec) ++[ Comment " ", Comment $ "PATTERN Signature: (count="++(show.length.allSigns) fSpec++")"] ++ concatMap (metaPops fSpec) (allSigns fSpec) ++[ Comment " ", Comment $ "PATTERN Relation: (count="++(show.length.vrels) fSpec++")"] @@ -117,13 +83,11 @@ instance MetaPopulations FSpec where ++ concatMap (metaPops fSpec) (allExprs fSpec) ++[ Comment " ", Comment $ "PATTERN Rules: (count="++(show.length.fallRules) fSpec++")"] ++ concatMap (metaPops fSpec) ((sortBy (comparing name).fallRules) fSpec) - ++[ Comment " ", Comment $ "PATTERN Plugs: (count="++(show.length) allSqlPlugs++")"] - ++ concatMap (metaPops fSpec) allSqlPlugs --- ++[ Comment " ", Comment $ "[Initial pairs]--: (count="++(show.length.allLinks) fSpec++")"] --- ++ concatMap (metaPops fSpec) (allLinks fSpec) + ++[ Comment " ", Comment $ "PATTERN Conjuncts: (count="++(show.length.allConjuncts) fSpec++")"] + ++ concatMap (metaPops fSpec) (allConjuncts fSpec) + ++[ Comment " ", Comment $ "PATTERN Plugs: (count="++(show.length.plugInfos) fSpec++")"] + ++ concatMap (metaPops fSpec) ((sortBy (comparing name).plugInfos) fSpec) ) - where - allSqlPlugs = sortBy (comparing name) [plug | InternalPlug plug <- plugInfos fSpec] instance MetaPopulations Pattern where metaPops fSpec pat = @@ -153,99 +117,73 @@ instance MetaPopulations A_Gen where ] ] -instance GenericPopulations A_Concept where - generics fSpec cpt = - case cpt of - PlainConcept{} -> - [ Comment " " - , Comment $ " Concept `"++name cpt++"` " - , Pop "allConcepts" "Context" "Concept" - [(dirtyId fSpec,dirtyId cpt)] - , Pop "name" "Concept" "Identifier" - [(dirtyId cpt, (show.name) cpt)] - , Pop "affectedInvConjunctIds" "Concept" "ConjunctID" - [(dirtyId cpt, dirtyId conj) | conj <- filterFrontEndInvConjuncts affConjs] - , Pop "affectedSigConjunctIds" "Concept" "ConjunctID" - [(dirtyId cpt, dirtyId conj) | conj <- filterFrontEndSigConjuncts affConjs] - , Pop "conceptTableFields" "Concept" "TableColumn" - [(dirtyId cpt, dirtyId att) | att <- tablesAndAttributes] - ] - ONE -> - [ Comment " " - , Comment $ " Concept ONE " - , Pop "allConcepts" "Context" "Concept" - [(dirtyId fSpec,dirtyId cpt)] - , Pop "name" "Concept" "Identifier" - [(dirtyId cpt, (show.name) cpt)] - , Pop "conceptTableFields" "Concept" "TableColumn" - [(dirtyId cpt, dirtyId att) | att <- tablesAndAttributes] - ] - where - affConjs = nub [ conj - | Just conjs<-[lookup cpt (allConjsPerConcept fSpec)] - , conj<-conjs - ] - largerConcs = largerConcepts (vgens fSpec) cpt++[cpt] - tablesAndAttributes = nub . concatMap (lookupCpt fSpec) $ largerConcs - instance MetaPopulations A_Concept where metaPops fSpec cpt = [ Comment " " , Comment $ " Concept `"++name cpt++"` " , Pop "ttype" "Concept" "TType" - [(dirtyId cpt,dirtyId ((cptTType fSpec) cpt))] + [(dirtyId cpt, dirtyId (cptTType fSpec cpt))] + , Pop "name" "Concept" "Identifier" + [(dirtyId cpt, dirtyId cpt)] ]++ case cpt of PlainConcept{} -> [ Comment $ " Concept `"++name cpt++"` " , Pop "concs" "Context" "Concept" [(dirtyId fSpec,dirtyId cpt)] - , Pop "name" "Concept" "Identifier" - [(dirtyId cpt, dirtyId cpt)] -- , Pop "conceptColumn" "Concept" "SqlAttribute" -- [(dirtyId cpt, dirtyId att) | att <- tablesAndAttributes] -- , Pop "cptdf" "Concept" "ConceptDefinition" -- [(dirtyId cpt,(show.showADL) cdef) | cdef <- conceptDefs fSpec, name cdef == name cpt] - , Pop "cptpurpose" "Concept" "Purpose" - [(dirtyId cpt,(show.showADL) x) | lang <- allLangs, x <- fromMaybe [] (purposeOf fSpec lang cpt) ] +-- , Pop "cptpurpose" "Concept" "Purpose" +-- [(dirtyId cpt,(show.showADL) x) | lang <- allLangs, x <- fromMaybe [] (purposeOf fSpec lang cpt) ] ] - ONE -> [] + ONE -> + [ ] where largerConcs = largerConcepts (vgens fSpec) cpt++[cpt] tablesAndAttributes = nub . concatMap (lookupCpt fSpec) $ largerConcs -instance GenericPopulations PlugSQL where - generics fSpec plug = - [ Comment " " - , Comment $ "Plug: '"++name plug++"'" - , Pop "tableInfo" "Context" "DBTable" - [(dirtyId fSpec, dirtyId plug)] - ] ++ concatMap (generics fSpec) [(plug,att) | att <- plugAttributes plug] +instance MetaPopulations Conjunct where + metaPops fSpec conj = + [ Comment $ " Conjunct `"++rc_id conj++"` " + , Pop "allConjuncts" "Context" "Conjunct" + [(dirtyId fSpec,dirtyId conj)] + , Pop "originatesFrom" "Conjunct" "Rule" + [(dirtyId conj, dirtyId rul) | rul <- rc_orgRules conj] + , Pop "conjunct" "Conjunct" "Expression" + [(dirtyId conj, dirtyId (rc_conjunct conj))] + ] + +instance MetaPopulations PlugInfo where + metaPops fSpec plug = + [ Comment $ " Plug `"++name plug++"` " + , Pop "maintains" "Plug" "Rule" [{-STILL TODO. -}] --HJO, 20150205: Waar halen we deze info vandaan?? + , Pop "in" "Concept" "Plug" + [(dirtyId cpt,dirtyId plug)| cpt <- concs plug] + , Pop "relsInPlug" "Plug" "Relation" + [(dirtyId plug,dirtyId dcl)| dcl <- relsMentionedIn plug] + ]++ + (case plug of + InternalPlug plugSQL -> metaPops fSpec plugSQL + ExternalPlug _ -> fatal 167 "ExternalPlug is not implemented in the meatgrinder. " + ) instance MetaPopulations PlugSQL where metaPops fSpec plug = - -- [ Pop "context" "PlugInfo" "Context" - -- [(dirtyId plug, dirtyId fSpec)] - -- , Pop "key" "PlugInfo" "SqlAttribute" - -- [(dirtyId plug, dirtyId (plug, head . plugAttributes $ plug))] - -- ] ++ - concatMap (metaPops fSpec) [(plug,att) | att <- plugAttributes plug] - -instance GenericPopulations (PlugSQL,SqlAttribute) where - generics _ (plug,att) = - [ Pop "columninfo" "DBTable" "TableColumn" - [(dirtyId plug, dirtyId (plug,att)) ] - , Pop "concept" "TableColumn" "Concept" - [(dirtyId (plug,att), dirtyId.target.attExpr $ att)] - , Pop "unique" "TableColumn" "Boolean" - [(dirtyId (plug,att), (dirtyId.attUniq) att)] - , Pop "null" "TableColumn" "Boolean" - [(dirtyId (plug,att), (dirtyId.attNull) att)] - ] + case plug of + TblSQL{} -> + [ Pop "rootConcept" "TblSQL" "Concept" + [(dirtyId plug, dirtyId . target . attExpr . head . plugAttributes $ plug)] + , Pop "key" "TblSQL" "SqlAttribute" + [(dirtyId plug, dirtyId(plug,head . plugAttributes $ plug))] + ] ++ + concatMap (metaPops fSpec) [(plug,att) | att <- plugAttributes plug] + BinSQL{} -> [] instance MetaPopulations (PlugSQL,SqlAttribute) where metaPops _ (plug,att) = - [ Pop "table" "SqlAttribute" "PlugInfo" + [ Pop "table" "SqlAttribute" "SQLPlug" [(dirtyId (plug,att), dirtyId plug) ] , Pop "concept" "SqlAttribute" "Concept" [(dirtyId (plug,att), dirtyId.target.attExpr $ att)] @@ -261,17 +199,6 @@ instance MetaPopulations (PlugSQL,SqlAttribute) where EFlp (EDcD dcl) -> Just dcl EDcI cpt -> Just (Isn cpt) _ -> Nothing -instance GenericPopulations Role where - generics fSpec rol = - [ Comment $ "Role: '"++name rol++"'" - , Pop "allRoles" "Context" "Role" - [(dirtyId fSpec, dirtyId rol) ] - , Pop "name" "Role" "TEXT" - [(dirtyId rol, dirtyId rol) ] - , Pop "maintains" "Role" "Rule" - [(dirtyId rol, dirtyId rul) | (rol',rul) <- fRoleRuls fSpec, rol==rol' ] - ] - instance MetaPopulations Role where metaPops fSpec rol = [ Pop "allRoles" "Context" "Role" @@ -298,40 +225,9 @@ instance MetaPopulations Signature where [(dirtyId sgn, dirtyId (target sgn))] ] -instance GenericPopulations Declaration where - generics fSpec dcl = - case dcl of - Sgn{} -> - [ Comment " " - , Comment $ " Relation '"++name dcl++showSign (sign dcl)++"'" - , Pop "allRelations" "Context" "Relation" - [(dirtyId fSpec, dirtyId dcl)] - , Pop "name" "Relation" "RelationName" - [(dirtyId dcl, (show.name) dcl)] - , Pop "srcConcept" "Relation" "Concept" - [(dirtyId dcl,dirtyId (source dcl))] - , Pop "tgtConcept" "Relation" "Concept" - [(dirtyId dcl,dirtyId (target dcl))] - , Pop "table" "Relation" "DBTable" - [(dirtyId dcl,dirtyId table)] - , Pop "srcCol" "Relation" "DBTableColumn" - [(dirtyId dcl,dirtyId (table,srcCol))] - , Pop "tgtCol" "Relation" "DBTableColumn" - [(dirtyId dcl,dirtyId (table,tgtCol))] - , Pop "affectedInvConjunctIds" "Relation" "ConjunctID" - [(dirtyId dcl,dirtyId conj) | conj <- filterFrontEndInvConjuncts affConjs ] - , Pop "affectedSigConjunctIds" "Relation" "ConjunctID" - [(dirtyId dcl,dirtyId conj) | conj <- filterFrontEndSigConjuncts affConjs ] - ] - Isn{} -> fatal 157 "Isn is not implemented yet" - Vs{} -> fatal 158 "Vs is not implemented yet" - where - (table,srcCol,tgtCol) = getDeclarationTableInfo fSpec dcl -- type: (PlugSQL,SqlAttribute,SqlAttribute) - affConjs = fromMaybe [] (lookup dcl $ allConjsPerDecl fSpec) - instance MetaPopulations Declaration where metaPops fSpec dcl = - case dcl of + (case dcl of Sgn{} -> [ Comment " " , Comment $ " Relation `"++name dcl++" ["++(name.source.decsgn) dcl++" * "++(name.target.decsgn) dcl++"]"++"` " @@ -362,7 +258,18 @@ instance MetaPopulations Declaration where , Pop "decpurpose" "Relation" "Purpose" [(dirtyId dcl, (show.showADL) x) | x <- explanations dcl] ] - Isn ONE -> [Comment "No population for the declaration ONE" ] + Isn ONE -> + [ Comment " " + , Comment " Relation `I[ONE]` " + , Pop "context" "Relation" "Context" + [(dirtyId dcl,dirtyId fSpec)] + , Pop "name" "Relation" "Identifier" + [(dirtyId dcl, (show.name) dcl)] + , Pop "source" "Relation" "Concept" + [(dirtyId dcl,dirtyId (source dcl))] + , Pop "target" "Relation" "Concept" + [(dirtyId dcl,dirtyId (target dcl))] + ] Isn{} -> [ Comment " " , Comment $ " Relation `I["++name (source dcl)++"]`" @@ -382,6 +289,8 @@ instance MetaPopulations Declaration where [(dirtyId dcl,dirtyId (target dcl))] ] Vs{} -> fatal 158 "Vs is not implemented yet" + )++ + metaPops fSpec (sign dcl) where (table,srcCol,tgtCol) = getDeclarationTableInfo fSpec dcl -- type: (PlugSQL,SqlAttribute,SqlAttribute) @@ -400,9 +309,9 @@ instance MetaPopulations Expression where case expr of EBrk e -> metaPops fSpec e _ -> - [ Pop "src" "Term" "Concept" + [ Pop "src" "Expression" "Concept" [(dirtyId expr, dirtyId (source expr))] - , Pop "tgt" "Term" "Concept" + , Pop "tgt" "Expression" "Concept" [(dirtyId expr, dirtyId (target expr))] ]++ ( case expr of @@ -422,25 +331,31 @@ instance MetaPopulations Expression where (EFlp e) -> makeUnaryTerm Converse e (ECpl e) -> makeUnaryTerm UnaryMinus e (EBrk _) -> fatal 348 "This should not happen, because EBrk has been handled before" - (EDcD dcl) -> [Pop "bind" "Term" "Relation" [(dirtyId expr,dirtyId dcl)] + (EDcD dcl) -> [Pop "bind" "Expression" "Relation" + [(dirtyId expr,dirtyId dcl)] + ] + (EDcI cpt) -> [Pop "bind" "Expression" "Relation" + [(dirtyId expr,dirtyId (Isn cpt))] + ] + EEps{} -> [] + (EDcV sgn) -> [Pop "userSrc" (show "V") "Concept" + [(dirtyId expr,dirtyId (source sgn))] + ,Pop "userTrg" (show "V") "Concept" + [(dirtyId expr,dirtyId (target sgn))] + ] + (EMp1 v c) -> [ --TODO! + -- Pop "singleton" "Atom" "Expression" + -- [(dirtyId expr,dirtyId (c,v))] + -- ,Pop "pop" "Atom" "Concept" + -- [(dirtyId (c,v),dirtyId c)] ] --- EDcI{} -> --- EEps{} -> --- EDcV{} -> --- EMp1{} -> - _ -> [Comment $ "TODO(in instance MetaPopulations Expression): "++showADL expr] --- TODO: Work on the rest of the expressions (get rid of the statement above) ) where makeBinaryTerm :: BinOp -> Expression -> Expression -> [Pop] makeBinaryTerm op lhs rhs = - [ Pop "lhs" "BinaryTerm" "Term" - [(dirtyId expr,dirtyId lhs)] - , Pop "rhs" "BinaryTerm" "Term" - [(dirtyId expr,dirtyId rhs)] - , Pop "first" "BinaryTerm" "Expression" + [ Pop "first" "BinaryTerm" "Expression" [(dirtyId expr,dirtyId lhs)] - , Pop "second" "BinaryTerm" "Expreseeion" + , Pop "second" "BinaryTerm" "Expression" [(dirtyId expr,dirtyId rhs)] , Pop "operator" "BinaryTerm" "Operator" [(dirtyId expr,dirtyId op)] @@ -477,70 +392,6 @@ instance Unique BinOp where showUnique = show -instance GenericPopulations Rule where - generics fSpec rul = - [ Comment " " - , Comment $ " Rule `"++name rul++"` " - , Pop "allRules" "Context" "Rule" - [(dirtyId fSpec, dirtyId rul)] - , Pop "name" "Rule" "RuleID" - [(dirtyId rul, (show.name) rul)] - , Pop "ruleAdl" "Rule" "Adl" - [(dirtyId rul,(show.showADL.rrexp) rul)] - , Pop "origin" "Rule" "Origin" - [(dirtyId rul,(show.show.origin) rul)] - , Pop "meaning" "Rule" "Meaning" - [(dirtyId rul,aMarkup2String ReST m) | m <- (maybeToList . meaning (fsLang fSpec)) rul ] - , Pop "message" "Rule" "Message" - [(dirtyId rul,aMarkup2String ReST m) | m <- rrmsg rul, amLang m == fsLang fSpec ] - , Pop "srcConcept" "Rule" "Concept" - [(dirtyId rul,(dirtyId.source.rrexp) rul)] - , Pop "tgtConcept" "Rule" "Concept" - [(dirtyId rul,(dirtyId.target.rrexp) rul)] - , Pop "conjunctIds" "Rule" "ConjunctID" - [(dirtyId rul,dirtyId conj) | (rule,conjs)<-allConjsPerRule fSpec, rule==rul,conj <- conjs] - ]++case rrviol rul of - Nothing -> [] - Just pve -> - [ Pop "pairView" "Rule" "PairView" - [(dirtyId rul, dirtyId pve)] - ]++generics fSpec pve - - -instance GenericPopulations (PairView Expression) where - generics fSpec pve = - [ Comment " " - ]++concatMap makeSegment (zip [0..] (ppv_segs pve)) - where - makeSegment :: (Int,PairViewSegment Expression) -> [Pop] - makeSegment (i,pvs) = - [ Pop "segment" "PairView" "PairViewSegment" - [(dirtyId pve,dirtyId pvs)] - , Pop "sequenceNr" "PairViewSegment" "Int" - [(dirtyId pvs,show i)] - , Pop "segmentType" "PairViewSegment" "PairViewSegmentType" - [(dirtyId pvs, case pvs of - PairViewText{} -> "Text" - PairViewExp{} -> "Exp") - ] - ]++ - case pvs of - PairViewText{} -> - [Pop "text" "PairViewSegment" "String" - [(dirtyId pvs, pvsStr pvs)] - ] - PairViewExp{} -> - [Pop "srcOrTgt" "PairViewSegment" "SourceOrTarget" - [(dirtyId pvs, show (pvsSoT pvs))] - ,Pop "expTgt" "PairViewSegment" "Concept" - [(dirtyId pvs, dirtyId (case pvsSoT pvs of - Src -> source (pvsExp pvs) - Tgt -> target (pvsExp pvs) - ))] - ,Pop "expSQL" "PairViewSegment" "MySQLQuery" - [(dirtyId pvs, sqlQuery fSpec (pvsExp pvs))] - ] - instance MetaPopulations Rule where metaPops fSpec rul = [ Comment " " @@ -560,9 +411,11 @@ instance MetaPopulations Rule where [(dirtyId rul, (dirtyId.source.rrexp) rul)] , Pop "tgtConcept" "Rule" "Concept" [(dirtyId rul, (dirtyId.target.rrexp) rul)] - , Pop "conjunctIds" "Rule" "ConjunctID" + , Pop "conjunctIds" "Rule" "Conjunct" [(dirtyId rul, dirtyId conj) | (rule,conjs)<-allConjsPerRule fSpec, rule==rul,conj <- conjs] - , Pop "rrexp" "Rule" "Expression" + , Pop "originatesFrom" "Conjunct" "Rule" + [(dirtyId conj,dirtyId rul) | (rule,conjs)<-allConjsPerRule fSpec, rule==rul,conj <- conjs] + , Pop "term" "Rule" "Expression" [(dirtyId rul, dirtyId (rrexp rul))] , Pop "rrmean" "Rule" "Meaning" [(dirtyId rul, show (aMarkup2String ReST m)) | m <- (maybeToList . meaning (fsLang fSpec)) rul ] @@ -578,33 +431,9 @@ instance MetaPopulations Rule where ] - -instance MetaPopulations PlugInfo where - metaPops _ plug = - [ Comment $ " Plug `"++name plug++"` " - , Pop "maintains" "Plug" "Rule" [{-STILL TODO. -}] --HJO, 20150205: Waar halen we deze info vandaan?? - , Pop "in" "Concept" "Plug" - [(dirtyId cpt,dirtyId plug)| cpt <- concs plug] --- , Pop "relsMentionedIn" "Plug" "Relation" --- [(dirtyId plug,dirtyId dcl)| dcl <- relsMentionedIn plug] - ] - instance MetaPopulations a => MetaPopulations [a] where metaPops fSpec = concatMap $ metaPops fSpec -instance GenericPopulations Conjunct where - generics fSpec conj = - [ Comment $ "Conjunct: '"++rc_id conj++"'." - , Pop "allConjuncts" "Context" "Conjunct" - [(dirtyId fSpec, dirtyId conj)] - , Pop "signalRuleNames" "Conjunct" "Rule" - [(dirtyId conj,dirtyId r) | r <- rc_orgRules conj, isFrontEndSignal r] - , Pop "invariantRuleNames" "Conjunct" "Rule" - [(dirtyId conj,dirtyId r) | r <- rc_orgRules conj, isFrontEndInvariant r] - , Pop "violationsSQL" "Conjunct" "MySQLQuery" - [(dirtyId conj , sqlQuery fSpec (conjNF (getOpts fSpec) (notCpl (rc_conjunct conj))) - )] - ] ----------------------------------------------------- @@ -642,6 +471,7 @@ instance AdlId ConceptDef instance AdlId Declaration instance AdlId Prop instance AdlId Expression + where dirtyId = show . show . hash . camelCase . uniqueShow False -- Need to hash, because otherwise too long (>255) instance AdlId BinOp instance AdlId UnaryOp instance AdlId FSpec @@ -650,8 +480,9 @@ instance AdlId Pattern instance AdlId PlugInfo instance AdlId PlugSQL instance AdlId (PlugSQL,SqlAttribute) - where dirtyId (plug,att) = concatDirtyIdStrings $ [dirtyId plug, (show.camelCase.attName) att] + where dirtyId (plug,att) = concatDirtyIdStrings [dirtyId plug, (show.camelCase.attName) att] instance AdlId Purpose +instance AdlId (A_Concept,PSingleton) instance AdlId Rule instance AdlId Role instance AdlId Signature @@ -695,8 +526,6 @@ nullContent _ = False class MetaPopulations a where metaPops :: FSpec -> a -> [Pop] -class GenericPopulations a where - generics :: FSpec -> a -> [Pop] --------- Below here are some functions copied from Generate.hs TODO: Clean up. @@ -706,13 +535,13 @@ isFrontEndInvariant :: Rule -> Bool isFrontEndInvariant r = not (isSignal r) && not (ruleIsInvariantUniOrInj r) isFrontEndSignal :: Rule -> Bool -isFrontEndSignal r = isSignal r +isFrontEndSignal = isSignal -- NOTE that results from filterFrontEndInvConjuncts and filterFrontEndSigConjuncts may overlap (conjunct appearing in both invariants and signals) -- and that because of extra condition in isFrontEndInvariant (not (ruleIsInvariantUniOrInj r)), some parameter conjuncts may not be returned -- as either inv or sig conjuncts (i.e. conjuncts that appear only in uni or inj rules) filterFrontEndInvConjuncts :: [Conjunct] -> [Conjunct] -filterFrontEndInvConjuncts conjs = filter (\c -> any isFrontEndInvariant $ rc_orgRules c) conjs +filterFrontEndInvConjuncts = filter (any isFrontEndInvariant . rc_orgRules) filterFrontEndSigConjuncts :: [Conjunct] -> [Conjunct] -filterFrontEndSigConjuncts conjs = filter (\c -> any isFrontEndSignal $ rc_orgRules c) conjs +filterFrontEndSigConjuncts = filter (any isFrontEndSignal . rc_orgRules) diff --git a/src/Database/Design/Ampersand/FSpec/ToFSpec/ADL2FSpec.hs b/src/Database/Design/Ampersand/FSpec/ToFSpec/ADL2FSpec.hs index b0561446d2..1b260ab2b7 100644 --- a/src/Database/Design/Ampersand/FSpec/ToFSpec/ADL2FSpec.hs +++ b/src/Database/Design/Ampersand/FSpec/ToFSpec/ADL2FSpec.hs @@ -74,7 +74,7 @@ makeFSpec opts context , grules = filter (not.isUserDefined) allrules , invariants = filter (not.isSignal) allrules , signals = filter isSignal allrules - , vconjs = allConjs + , allConjuncts = allConjs , allConjsPerRule = fSpecAllConjsPerRule , allConjsPerDecl = fSpecAllConjsPerDecl , allConjsPerConcept = fSpecAllConjsPerConcept @@ -525,7 +525,7 @@ tblcontents ci ps plug --(r,s,t)<-mLkpTbl: s is assumed to be in the kernel, attExpr t is expected to hold r or (flp r), s and t are assumed to be different case attributes plug of [] -> fatal 593 "no attributes in plug." - f:fs -> transpose + f:fs -> (nub.transpose) ( map Just cAtoms : [case fExp of EDcI c -> [ if a `elem` atomValuesOf ci ps c then Just a else Nothing | a<-cAtoms ] @@ -539,7 +539,12 @@ tblcontents ci ps plug = case [ p | p<-pairs, a==apLeft p ] of [] -> Nothing [p] -> Just (apRight p) - _ -> fatal 428 ("(this could happen when using --dev flag, when there are violations)\n"++ + ps' -> trace ("Plug: "++name plug) $ + trace ("Attibutes: "++(show . map name)(f:fs)) $ + trace ("Atoms: "++(intercalate "\n " . map show) cAtoms) $ + trace ("Pairs: "++(intercalate "\n " . map showADL) pairs) $ + trace ("ps' : "++(intercalate "\n " . map showADL) ps') $ + fatal 428 ("(this could happen when using --dev flag, when there are violations, or if you have INCLUDE \"MinimalAST.xlsx\" in formalampersand.)\n"++ "Looking for: '"++showValADL a++"'.\n"++ "Multiple values in one attribute. \n" ) diff --git a/src/Database/Design/Ampersand/FSpec/ToFSpec/CreateFspec.hs b/src/Database/Design/Ampersand/FSpec/ToFSpec/CreateFspec.hs index f473d80a19..9e16f18efe 100644 --- a/src/Database/Design/Ampersand/FSpec/ToFSpec/CreateFspec.hs +++ b/src/Database/Design/Ampersand/FSpec/ToFSpec/CreateFspec.hs @@ -12,14 +12,25 @@ import Database.Design.Ampersand.FSpec.ShowMeatGrinder import Database.Design.Ampersand.Input import Database.Design.Ampersand.FSpec.ToFSpec.ADL2FSpec import System.FilePath -import Database.Design.Ampersand.Core.ToMeta import Control.Monad -- | create an FSpec, based on the provided command-line options. +-- Without the command-line switch "--meta-tables", +-- Ampersand compiles its script (userP_Ctx) straightforwardly in first order relation algebra. +-- This is useful for simple scripts and the compilation process is easy to understand. +-- +-- With "--meta-tables" switched on, Ampersand does more. +-- This switch is useful for higher order Ampersand, +-- in which the user can work with the rules, relations and concepts of the model inside the model. +-- Besides the user script, userP_Ctx, Ampersand creates its own metamodel, rapP_Ctx, which is generated from "AST.adl" +-- This metamodel is populated with the result of grinding userP_Ctx, being populationPctx. +-- Grinding means to analyse the script down to the binary relations that constitute the metamodel. +-- The combination of model and populated metamodel results in the Guarded FSpec, +-- which is the result of createFSpec. createFSpec :: Options -- ^The options derived from the command line -> IO(Guarded FSpec) createFSpec opts = - do userP_Ctx <- parseADL opts (Left (fileName opts)) -- the P_Context of the user's sourceFile + do userP_Ctx <- parseADL opts (fileName opts) -- the P_Context of the user's sourceFile genFiles userP_Ctx >> genTables userP_Ctx where genFiles :: Guarded P_Context -> IO(Guarded ()) @@ -27,31 +38,21 @@ createFSpec opts = = case pCtx2Fspec uCtx of Errors es -> return(Errors es) Checked uFspec - -> when (genASTFile opts) (doGenMetaFile AST uFspec) - >> when (genGenericsFile opts) (doGenMetaFile Generics uFspec) + -> when (genASTFile opts) (doGenMetaFile uFspec) >> return (Checked ()) genTables :: Guarded P_Context -> IO(Guarded FSpec) - genTables uCtx= case whatTablesToCreateExtra of - Nothing + genTables uCtx= case genASTTables opts of + False -> return (pCtx2Fspec uCtx) - Just mType - -> do rapP_Ctx <- getFormalFile mType -- the P_Context of the - let populationPctx = join ( grind mType <$> pCtx2Fspec uCtx) + True + -> do rapP_Ctx <- parseMeta opts -- the P_Context of the + let populationPctx = join ( grind <$> pCtx2Fspec uCtx) populatedRapPctx = merge.sequenceA $ [rapP_Ctx,populationPctx] - metaPopulatedRapPctx = toMeta opts <$> populatedRapPctx + metaPopulatedRapPctx = populatedRapPctx allCombinedPctx = merge.sequenceA $ [uCtx, metaPopulatedRapPctx] return $ pCtx2Fspec allCombinedPctx -- the RAP specification that is populated with the user's 'things' is returned. - whatTablesToCreateExtra :: Maybe MetaType - whatTablesToCreateExtra - | genASTTables opts = Just AST - | genGenericTables opts = Just Generics - | otherwise = Nothing - - getFormalFile :: MetaType -> IO(Guarded P_Context) - getFormalFile mType - = do parseADL opts (Right mType) toFspec :: A_Context -> Guarded FSpec @@ -63,10 +64,10 @@ createFSpec opts = where f [] = fatal 77 $ "merge must not be applied to an empty list" f (c:cs) = foldr mergeContexts c cs - grind :: MetaType -> FSpec -> Guarded P_Context - grind mType fSpec + grind :: FSpec -> Guarded P_Context + grind fSpec = fmap fstIfNoIncludes $ parseCtx f c - where (f,c) = makeMetaPopulationFile mType fSpec + where (f,c) = makeMetaPopulationFile fSpec fstIfNoIncludes (a,includes) = case includes of [] -> a @@ -74,11 +75,11 @@ createFSpec opts = -doGenMetaFile :: MetaType -> FSpec -> IO() -doGenMetaFile mType fSpec = - do { verboseLn (getOpts fSpec) $ "Generating "++show mType++" meta file for "++name fSpec +doGenMetaFile :: FSpec -> IO() +doGenMetaFile fSpec = + do { verboseLn (getOpts fSpec) $ "Generating meta file for "++name fSpec ; writeFile outputFile contents - ; verboseLn (getOpts fSpec) $ show mType++" written into " ++ outputFile ++ "" + ; verboseLn (getOpts fSpec) $ "Meatgrinder output written into " ++ outputFile ++ "" } where outputFile = combine (dirOutput (getOpts fSpec)) $ fpath - (fpath,contents) = makeMetaPopulationFile mType fSpec + (fpath,contents) = makeMetaPopulationFile fSpec diff --git a/src/Database/Design/Ampersand/Graphic/ClassDiag2Dot.hs b/src/Database/Design/Ampersand/Graphic/ClassDiag2Dot.hs index 04a9434a05..bfda717549 100644 --- a/src/Database/Design/Ampersand/Graphic/ClassDiag2Dot.hs +++ b/src/Database/Design/Ampersand/Graphic/ClassDiag2Dot.hs @@ -149,7 +149,7 @@ classdiagram2dot opts cd } ------------------------------- --- GENERALIZATIONS: -- -- Ampersand statements such as "SPEC Dolphin ISA Animal" are called generalization. +-- GENERALIZATIONS: -- -- Ampersand statements such as "CLASSIFY Dolphin ISA Animal" are called generalization. -- -- -- Generalizations are represented by a red arrow with a (larger) open triangle as arrowhead ------------------------------- generalization2edges :: Generalization -> [DotEdge String] diff --git a/src/Database/Design/Ampersand/Graphic/Fspec2ClassDiagrams.hs b/src/Database/Design/Ampersand/Graphic/Fspec2ClassDiagrams.hs index ef27abb7d1..c3e79e6a4a 100644 --- a/src/Database/Design/Ampersand/Graphic/Fspec2ClassDiagrams.hs +++ b/src/Database/Design/Ampersand/Graphic/Fspec2ClassDiagrams.hs @@ -7,7 +7,6 @@ import Database.Design.Ampersand.ADL1 import Database.Design.Ampersand.Classes import Database.Design.Ampersand.Basics import Database.Design.Ampersand.FSpec -import Database.Design.Ampersand.FSpec.FSpec(getConceptTableFor,Typology(..)) import Data.Maybe import Data.Either import Database.Design.Ampersand.Graphic.ClassDiagram diff --git a/src/Database/Design/Ampersand/Graphic/Graphics.hs b/src/Database/Design/Ampersand/Graphic/Graphics.hs index 25fbc3b34f..52f3ef794a 100644 --- a/src/Database/Design/Ampersand/Graphic/Graphics.hs +++ b/src/Database/Design/Ampersand/Graphic/Graphics.hs @@ -5,7 +5,6 @@ module Database.Design.Ampersand.Graphic.Graphics import Data.GraphViz import Database.Design.Ampersand.ADL1 import Database.Design.Ampersand.FSpec.FSpec -import Database.Design.Ampersand.Classes import Database.Design.Ampersand.FSpec.Switchboard import Database.Design.Ampersand.Misc import Database.Design.Ampersand.Basics @@ -260,7 +259,7 @@ writePicture opts pict = sequence_ ( [createDirectoryIfMissing True (takeDirectory (imagePath opts pict)) ]++ [writeDot DotOutput | genFSpec opts ]++ --Pretty-printed Dot output with no layout performed. --- [writeDot Png | genFSpec opts ] ++ + [writeDot Png | genFSpec opts ] ++ --handy format to include in github comments/issues [writeDot Svg | genFSpec opts ] ++ [writePdf Eps | genFSpec opts ] -- .eps file that is postprocessed to a .pdf file ) diff --git a/src/Database/Design/Ampersand/Input.hs b/src/Database/Design/Ampersand/Input.hs index f81ddf725b..b8a2c099f4 100644 --- a/src/Database/Design/Ampersand/Input.hs +++ b/src/Database/Design/Ampersand/Input.hs @@ -3,5 +3,5 @@ module Database.Design.Ampersand.Input , module Database.Design.Ampersand.Input.Parsing ) where import Database.Design.Ampersand.Input.ADL1.CtxError (CtxError,Guarded(..),showErr) -import Database.Design.Ampersand.Input.Parsing (parseADL,parseADL1pExpr,parseRule,parseCtx) +import Database.Design.Ampersand.Input.Parsing (parseADL,parseMeta,parseADL1pExpr,parseRule,parseCtx) \ No newline at end of file diff --git a/src/Database/Design/Ampersand/Input/ADL1/Lexer.hs b/src/Database/Design/Ampersand/Input/ADL1/Lexer.hs index 7947126959..a7470e3e0f 100644 --- a/src/Database/Design/Ampersand/Input/ADL1/Lexer.hs +++ b/src/Database/Design/Ampersand/Input/ADL1/Lexer.hs @@ -26,6 +26,7 @@ import Database.Design.Ampersand.Input.ADL1.LexerMonad import Database.Design.Ampersand.Input.ADL1.LexerMessage import Data.Char hiding(isSymbol) import Data.Set (member, fromList) +import Data.List (nub) import Database.Design.Ampersand.Basics (fatal) import Database.Design.Ampersand.Misc import Data.Time.Calendar @@ -34,32 +35,45 @@ import Numeric -- | Retrieves a list of keywords accepted by the ampersand language keywords :: [String] -- ^ The keywords -keywords = [ "INCLUDE" - , "CONTEXT", "ENDCONTEXT", "EXTENDS", "THEMES" - , "META" +keywords = nub [ "CONTEXT", "ENDCONTEXT" + , "IN", "ENGLISH", "DUTCH" + , "INCLUDE" + , "META", "THEMES" , "PATTERN", "ENDPATTERN" - , "PROCESS", "ENDPROCESS" - , "INTERFACE", "FOR", "BOX", "ROWS", "TABS", "COLS", "INITIAL", "SQLPLUG", "PHPPLUG" - , "REPRESENT", "TYPE", "LINKTO" + , "CONCEPT" + -- Keywords for Relation-statements + , "RELATION", "PRAGMA", "MEANING" + , "UNI", "INJ", "SUR", "TOT", "SYM", "ASY", "TRN", "RFX", "IRF", "PROP" , "POPULATION", "CONTAINS" - , "UNI", "INJ", "SUR", "TOT", "SYM", "ASY", "TRN", "RFX", "IRF", "PROP", "ALWAYS" - , "RULE", "MESSAGE", "VIOLATION", "SRC", "TGT", "TEST" - , "RELATION", "MEANING", "CONCEPT", "IDENT" - , "VIEW", "ENDVIEW", "DEFAULT", "TXT", "PRIMHTML", "TEMPLATE" - , "IMPORT", "SPEC", "ISA", "IS", "I", "V" - , "CLASSIFY" - , "PRAGMA", "PURPOSE", "IN", "REF", "ENGLISH", "DUTCH" + -- Keywords for rules + , "RULE", "MESSAGE", "VIOLATION", "TXT", "SRC", "TGT" + , "I", "V", "ONE" + , "ROLE", "MAINTAINS" + -- Keywords for purposes + , "PURPOSE", "REF" , "REST", "HTML", "LATEX", "MARKDOWN" - , "ONE" - , "BYPLUG" - , "ROLE", "SERVICE", "EDITS", "MAINTAINS" + -- Keywords for interfaces + , "INTERFACE", "FOR", "LINKTO" + , "BOX", "ROWS", "TABS", "COLS" + -- Keywords for identitys + , "IDENT" + -- Keywords for views + , "VIEW", "ENDVIEW", "DEFAULT" + , "TEMPLATE", "HTML" + -- Keywords for generalisations: + , "CLASSIFY", "ISA", "IS" -- Keywords for TType: + , "REPRESENT", "TYPE" , "ALPHANUMERIC", "BIGALPHANUMERIC", "HUGEALPHANUMERIC", "PASSWORD" , "BINARY", "BIGBINARY", "HUGEBINARY" , "DATE", "DATETIME", "BOOLEAN", "INTEGER", "FLOAT", "AUTOINCREMENT" -- Keywords for values of atoms: , "TRUE", "FALSE" --for booleans - ] + -- Experimental stuff: + , "BYPLUG", "SQLPLUG", "PHPPLUG" + , "SERVICE", "EDITS" + -- Depreciated keywords: + , "SPEC", "PROCESS", "ENDPROCESS"] -- | Retrieves a list of operators accepted by the ampersand language operators :: [String] -- ^ The operators diff --git a/src/Database/Design/Ampersand/Input/ADL1/Parser.hs b/src/Database/Design/Ampersand/Input/ADL1/Parser.hs index 7860f195db..b43ac8614e 100644 --- a/src/Database/Design/Ampersand/Input/ADL1/Parser.hs +++ b/src/Database/Design/Ampersand/Input/ADL1/Parser.hs @@ -373,13 +373,6 @@ pIndex = P_Id <$> currPos pIndSegment :: AmpParser P_IdentSegment pIndSegment = P_IdentExp <$> pAtt --- | A view definition looks like: --- VIEW onSSN: Person("social security number":ssn) --- or --- VIEW SaveAdlFile: SaveAdlFile(PRIMHTML "", filename/\V[SaveAdlFile*FileName], PRIMHTML "") --- which can be used to define a proper user interface by assigning labels and markup to the attributes in a view. --- ViewDef ::= FancyViewDef | ViewDefLegacy pViewDef :: AmpParser P_ViewDef diff --git a/src/Database/Design/Ampersand/Input/Parsing.hs b/src/Database/Design/Ampersand/Input/Parsing.hs index 78b1fa454c..1b7afb2e1a 100644 --- a/src/Database/Design/Ampersand/Input/Parsing.hs +++ b/src/Database/Design/Ampersand/Input/Parsing.hs @@ -3,7 +3,7 @@ -- return an FSpec, as tuned by the command line options. -- This might include that RAP is included in the returned FSpec. module Database.Design.Ampersand.Input.Parsing ( - parseADL, parseADL1pExpr, parseRule, parseCtx, runParser + parseADL,parseMeta , parseADL1pExpr, parseRule, parseCtx, runParser ) where import Control.Applicative @@ -27,16 +27,18 @@ import Database.Design.Ampersand.Prototype.StaticFiles_Generated(getStaticFileCo -- | Parse an Ampersand file and all transitive includes parseADL :: Options -- ^ The options given through the command line - -> Either FilePath MetaType -- ^ The path of the file to be parsed OR the MetaType. In the latter case, the files will be taken from `allStaticFiles` + -> FilePath -- ^ The path of the file to be parsed -> IO (Guarded P_Context) -- ^ The resulting context -parseADL opts thingToParse = +parseADL opts fp = parseThing opts (fp,Nothing) False +parseMeta :: Options -> IO (Guarded P_Context) +parseMeta opts = parseThing opts ("AST.adl",Just $ Origin "Formal Ampersand specification") True -- This is the top file from FormalAmpersand. + +parseThing :: Options -> SingleFileToParse -> Bool -> IO (Guarded P_Context) +parseThing opts mainFile useAllStaticFiles = whenCheckedIO (parseSingleADL opts useAllStaticFiles mainFile) $ \(ctxt, includes) -> whenCheckedIO (parseADLs opts useAllStaticFiles [fst mainFile] includes) $ \ctxts -> return $ Checked $ foldl mergeContexts ctxt ctxts - where (mainFile, useAllStaticFiles) = case thingToParse of - Left fp -> ((fp ,Nothing),False) - Right Generics -> (("Generics.adl",Nothing),True ) - Right AST -> (("AST.adl" ,Nothing),True ) + -- | Parses several ADL files parseADLs :: Options -- ^ The options given through the command line -> Bool -- ^ True iff the file is from FormalAmpersand files in `allStaticFiles` diff --git a/src/Database/Design/Ampersand/Misc.hs b/src/Database/Design/Ampersand/Misc.hs index af18663146..c09983d210 100644 --- a/src/Database/Design/Ampersand/Misc.hs +++ b/src/Database/Design/Ampersand/Misc.hs @@ -8,6 +8,6 @@ import Database.Design.Ampersand.Misc.Languages import Database.Design.Ampersand.Misc.Options (getOptions, Options(..), verboseLn, verbose, FSpecFormat(..), - helpNVersionTexts,MetaType(..)) + helpNVersionTexts) import Database.Design.Ampersand.Misc.Explain (string2Blocks, blocks2String, PandocFormat(..)) diff --git a/src/Database/Design/Ampersand/Misc/Options.hs b/src/Database/Design/Ampersand/Misc/Options.hs index 32db4ad886..1da46d530a 100644 --- a/src/Database/Design/Ampersand/Misc/Options.hs +++ b/src/Database/Design/Ampersand/Misc/Options.hs @@ -3,7 +3,6 @@ module Database.Design.Ampersand.Misc.Options (Options(..),getOptions,usageInfo' ,verboseLn,verbose,FSpecFormat(..) , helpNVersionTexts - ,MetaType(..) ) where import System.Environment (getArgs, getProgName,getEnvironment,getExecutablePath ) @@ -71,9 +70,6 @@ data Options = Options { showVersion :: Bool , test :: Bool , genASTTables :: Bool -- When set, generate the meta-tables of AST into the prototype , genASTFile :: Bool -- When set, the standard RAP is 'merged' into the generated prototype.(experimental) - , genGenericsFile :: Bool -- Generate the meta-population in generics format and output it to an .adl file - , genGenericTables :: Bool -- When set, generate the meta-tables of generics into the prototype - , metaTablesHaveUnderscore :: Bool -- Separate the extra tables used with ASTTables or GenericTables by letting them have underscores , sqlHost :: String -- do database queries to the specified host , sqlLogin :: String -- pass login name to the database server , sqlPwd :: String -- pass password on to the database server @@ -161,11 +157,8 @@ getOptions = , baseName = takeBaseName fName , export2adl = False , test = False - , genGenericTables = False - , genGenericsFile = False , genASTTables = False , genASTFile = False - , metaTablesHaveUnderscore = False , sqlHost = "localhost" , sqlLogin = "ampersand" , sqlPwd = "ampersand" @@ -184,7 +177,6 @@ getOptions = return opts data DisplayMode = Public | Hidden deriving Eq -data MetaType = Generics | AST deriving (Show) data FSpecFormat = FPandoc| Fasciidoc| Fcontext| Fdocbook| Fhtml| FLatex| Fman| Fmarkdown| Fmediawiki| Fopendocument| Forg| Fplain| Frst| Frtf| Ftexinfo| Ftextile deriving (Show, Eq) allFSpecFormats :: String @@ -385,26 +377,14 @@ options = [ (Option ['v'] ["version"] (NoArg (\opts -> return opts{test = True})) "Used for test purposes only." , Hidden) - , (Option [] ["ast-tables"] + , (Option [] ["meta-tables"] (NoArg (\opts -> return opts{genASTTables = True})) "When set, generate the meta-tables of AST into the prototype" , Hidden) - , (Option [] ["ast-file"] + , (Option [] ["meta-file"] (NoArg (\opts -> return opts{genASTFile = True})) "Generate the meta-population in AST format and output it to an .adl file" , Hidden) - , (Option [] ["generic-tables"] - (NoArg (\opts -> return opts{genGenericTables = True})) - "Generate the meta-tables of generics into the prototype" - , Hidden) - , (Option [] ["generic-file"] - (NoArg (\opts -> return opts{genGenericsFile = True})) - "Generate the meta-population in Generics format and output it to an .adl file" - , Hidden) - , (Option [] ["meta-tables-have-underscore"] - (NoArg (\opts -> return opts{metaTablesHaveUnderscore = True})) - "Separate the extra tables used with ast-tables or generic-tables by letting them have underscores" - , Hidden) , (Option [] ["no-static-files"] (NoArg (\opts -> return opts{genStaticFiles = False})) "Do not generate static files into the prototype directory" diff --git a/src/Database/Design/Ampersand/Output/FSpec2Excel.hs b/src/Database/Design/Ampersand/Output/FSpec2Excel.hs index 969fe1ca6f..a70bf7952f 100644 --- a/src/Database/Design/Ampersand/Output/FSpec2Excel.hs +++ b/src/Database/Design/Ampersand/Output/FSpec2Excel.hs @@ -5,7 +5,6 @@ import Text.XML.SpreadsheetML.Types import Text.XML.SpreadsheetML.Writer (showSpreadsheet) import Database.Design.Ampersand.Misc import Database.Design.Ampersand.FSpec -import Database.Design.Ampersand.Core.AbstractSyntaxTree import Database.Design.Ampersand.FSpec.FPA import Database.Design.Ampersand.Basics import Data.Maybe diff --git a/src/Database/Design/Ampersand/Output/FSpec2SQL.hs b/src/Database/Design/Ampersand/Output/FSpec2SQL.hs index bfcba4df60..399938f34b 100644 --- a/src/Database/Design/Ampersand/Output/FSpec2SQL.hs +++ b/src/Database/Design/Ampersand/Output/FSpec2SQL.hs @@ -1,26 +1,49 @@ module Database.Design.Ampersand.Output.FSpec2SQL (dumpSQLqueries) where +import Database.Design.Ampersand.Basics import Database.Design.Ampersand.Prototype.Generate (generateDBstructQueries, generateAllDefPopQueries ) import Database.Design.Ampersand.FSpec -import Database.Design.Ampersand.FSpec.FSpec import Database.Design.Ampersand.FSpec.SQL import Data.List dumpSQLqueries :: FSpec -> String dumpSQLqueries fSpec = intercalate "\n" $ - header "Database structure queries" + header ampersandVersionStr + ++header "Database structure queries" ++generateDBstructQueries fSpec True ++header "Initial population queries" - ++generateAllDefPopQueries fSpec True + ++generateAllDefPopQueries fSpec ++header "Violations of conjuncts" - ++concatMap showConjunct (vconjs fSpec) + ++concatMap showConjunct (allConjuncts fSpec) ++header "Queries per declaration" ++concatMap showDecl (vrels fSpec) + ++header "Queries of interfaces" + ++concatMap showInterface (interfaceS fSpec ++ interfaceG fSpec) where + showInterface :: Interface -> [String] + showInterface ifc + = header ("INTERFACE: "++name ifc) + ++(map ((++) " ") . showObjDef . ifcObj) ifc + where + showObjDef :: ObjectDef -> [String] + showObjDef obj + = (header . showADL . objctx) obj + ++(lines . prettySQLQueryWithPlaceholder 2 fSpec . objctx) obj + ++case objmsub obj of + Nothing -> [] + Just sub -> showSubInterface sub + ++header "Broad query of above stuff" + ++(lines . prettyBroadQueryWithPlaceholder 2 fSpec $ obj) + showSubInterface :: SubInterface -> [String] + showSubInterface sub = + case sub of + Box{} -> concatMap showObjDef . siObjs $ sub + InterfaceRef{} -> [] + showConjunct :: Conjunct -> [String] showConjunct conj = header (rc_id conj) diff --git a/src/Database/Design/Ampersand/Output/ToJSON/Conjuncts.hs b/src/Database/Design/Ampersand/Output/ToJSON/Conjuncts.hs index df7f494631..b1c74a184d 100644 --- a/src/Database/Design/Ampersand/Output/ToJSON/Conjuncts.hs +++ b/src/Database/Design/Ampersand/Output/ToJSON/Conjuncts.hs @@ -22,7 +22,7 @@ instance ToJSON JSONConjunct where instance ToJSON Conjuncts where toJSON = amp2Jason instance JSON FSpec Conjuncts where - fromAmpersand fSpec _ = Conjuncts (map (fromAmpersand fSpec) (vconjs fSpec)) + fromAmpersand fSpec _ = Conjuncts (map (fromAmpersand fSpec) (allConjuncts fSpec)) instance JSON Conjunct JSONConjunct where fromAmpersand fSpec conj = JSONConjunct { cnjJSONid = rc_id conj diff --git a/src/Database/Design/Ampersand/Output/ToJSON/Interfaces.hs b/src/Database/Design/Ampersand/Output/ToJSON/Interfaces.hs index e64a4e27ef..471f2812c6 100644 --- a/src/Database/Design/Ampersand/Output/ToJSON/Interfaces.hs +++ b/src/Database/Design/Ampersand/Output/ToJSON/Interfaces.hs @@ -6,7 +6,6 @@ module Database.Design.Ampersand.Output.ToJSON.Interfaces where import Database.Design.Ampersand.Output.ToJSON.JSONutils import Database.Design.Ampersand.Core.AbstractSyntaxTree -import Database.Design.Ampersand.Prototype.ProtoUtil import Database.Design.Ampersand.FSpec.ToFSpec.NormalForms import Database.Design.Ampersand.FSpec.ToFSpec.Calc import Database.Design.Ampersand.FSpec.ShowADL @@ -106,9 +105,10 @@ instance JSON ObjectDef JSONexpr where , exprJSONisUni = isUni normalizedInterfaceExp , exprJSONisTot = isTot normalizedInterfaceExp , exprJSONisIdent = isIdent normalizedInterfaceExp - , exprJSONquery = sqlQuery fSpec normalizedInterfaceExp + , exprJSONquery = query } where + query = broadQueryWithPlaceholder fSpec object{objctx=normalizedInterfaceExp} normalizedInterfaceExp = conjNF (getOpts fSpec) $ objctx object (srcConcept, tgtConcept) = case getExpressionRelation normalizedInterfaceExp of diff --git a/src/Database/Design/Ampersand/Output/ToJSON/JSONutils.hs b/src/Database/Design/Ampersand/Output/ToJSON/JSONutils.hs index 0b4cd724cb..f767497447 100644 --- a/src/Database/Design/Ampersand/Output/ToJSON/JSONutils.hs +++ b/src/Database/Design/Ampersand/Output/ToJSON/JSONutils.hs @@ -15,7 +15,7 @@ import Data.Aeson import Data.Aeson.Types import Data.List import Database.Design.Ampersand.FSpec.FSpec -import Database.Design.Ampersand.FSpec.SQL (sqlQuery) +import Database.Design.Ampersand.FSpec.SQL (sqlQuery,sqlQueryWithPlaceholder,placeHolderSQL,broadQueryWithPlaceholder) import Database.Design.Ampersand.Misc import Database.Design.Ampersand.Basics import Database.Design.Ampersand.Classes @@ -44,7 +44,7 @@ ampersandDefault :: Data.Aeson.Types.Options ampersandDefault = defaultOptions {fieldLabelModifier = stripLabel} where stripLabel str = case filter (isPrefixOf pfx) (tails str) of - [] -> fatal 71 $ "Label at Haskall side must contain `JSON`: "++str + [] -> fatal 71 $ "Label at Haskell side must contain `JSON`: "++str xs -> snd . splitAt (length pfx) . head $ xs where pfx = "JSON" diff --git a/src/Database/Design/Ampersand/Output/ToJSON/MySQLInstaller.hs b/src/Database/Design/Ampersand/Output/ToJSON/MySQLInstaller.hs index f98fa8113d..3252ac4387 100644 --- a/src/Database/Design/Ampersand/Output/ToJSON/MySQLInstaller.hs +++ b/src/Database/Design/Ampersand/Output/ToJSON/MySQLInstaller.hs @@ -16,5 +16,5 @@ instance ToJSON MySQLInstaller where instance JSON FSpec MySQLInstaller where fromAmpersand fSpec _ = MySQLInstaller { msiJSONallDBstructQueries = generateDBstructQueries fSpec False - , msiJSONallDefPopQueries = generateAllDefPopQueries fSpec False + , msiJSONallDefPopQueries = generateAllDefPopQueries fSpec } \ No newline at end of file diff --git a/src/Database/Design/Ampersand/Output/ToJSON/Roles.hs b/src/Database/Design/Ampersand/Output/ToJSON/Roles.hs index 16f4439e43..9744c0f424 100644 --- a/src/Database/Design/Ampersand/Output/ToJSON/Roles.hs +++ b/src/Database/Design/Ampersand/Output/ToJSON/Roles.hs @@ -7,7 +7,6 @@ where import Database.Design.Ampersand.Output.ToJSON.JSONutils import Database.Design.Ampersand.Core.AbstractSyntaxTree -import Database.Design.Ampersand.Prototype.ProtoUtil data Roles = Roles [RoleJson] deriving (Generic, Show) data RoleJson = RoleJson diff --git a/src/Database/Design/Ampersand/Output/ToPandoc/ChapterInterfaces.hs b/src/Database/Design/Ampersand/Output/ToPandoc/ChapterInterfaces.hs index 44ecaea8e1..c6b73997c9 100644 --- a/src/Database/Design/Ampersand/Output/ToPandoc/ChapterInterfaces.hs +++ b/src/Database/Design/Ampersand/Output/ToPandoc/ChapterInterfaces.hs @@ -54,7 +54,7 @@ chpInterfacesBlocks lev fSpec = -- lev is the header level (0 is chapter level) plainText ("Deze interface is gerubriceerd als " ++ showLang lang (fpType interfaceFP) ++ " " ++ showLang lang (fpComplexity interfaceFP) ++ ", en is daarmee " ++ show (fpVal interfaceFP) ++ " functiepunten waard.") - else plainText "" -- TODO: vervangen door de Pandoc-aanduiding voor "niks" + else mempty ) <> docCrudMatrix ifc <> (plain . strong . text) "Interfacestructuur:" <> diff --git a/src/Database/Design/Ampersand/Prototype/Generate.hs b/src/Database/Design/Ampersand/Prototype/Generate.hs index 6700223ca4..b005f6a8c2 100644 --- a/src/Database/Design/Ampersand/Prototype/Generate.hs +++ b/src/Database/Design/Ampersand/Prototype/Generate.hs @@ -7,7 +7,6 @@ import Database.Design.Ampersand.Core.AbstractSyntaxTree import Prelude hiding (writeFile,readFile,getContents,exp) import Data.List import Database.Design.Ampersand.FSpec -import Database.Design.Ampersand.Classes import Database.Design.Ampersand.Prototype.PHP (getTableName, signalTableSpec) @@ -110,8 +109,8 @@ commentBlockSQL xs = map (\cmmnt -> "/* "++cmmnt++" */") $ hbar ++ xs ++ hbar where hbar = [replicate (maximum . map length $ xs) '-'] -generateAllDefPopQueries :: FSpec -> Bool -> [String] -generateAllDefPopQueries fSpec withComment +generateAllDefPopQueries :: FSpec -> [String] +generateAllDefPopQueries fSpec = fillSignalTable (initialConjunctSignals fSpec) ++ populateTablesWithPops diff --git a/src/Database/Design/Ampersand/Prototype/PHP.hs b/src/Database/Design/Ampersand/Prototype/PHP.hs index 02d829d8b7..9a45a0b20d 100644 --- a/src/Database/Design/Ampersand/Prototype/PHP.hs +++ b/src/Database/Design/Ampersand/Prototype/PHP.hs @@ -15,7 +15,6 @@ import Database.Design.Ampersand.FSpec.SQL import Database.Design.Ampersand.FSpec import Database.Design.Ampersand.Basics hiding (putStrLn) import Database.Design.Ampersand.Misc -import Database.Design.Ampersand.Classes import Database.Design.Ampersand.Core.AbstractSyntaxTree createTablesPHP :: FSpec -> [String] diff --git a/src/Database/Design/Ampersand/Prototype/ProtoUtil.hs b/src/Database/Design/Ampersand/Prototype/ProtoUtil.hs index e447c2d97a..39c5aa62fd 100644 --- a/src/Database/Design/Ampersand/Prototype/ProtoUtil.hs +++ b/src/Database/Design/Ampersand/Prototype/ProtoUtil.hs @@ -12,7 +12,6 @@ module Database.Design.Ampersand.Prototype.ProtoUtil ) where import Prelude hiding (putStrLn, readFile, writeFile) -import Data.Char import Data.List import System.Directory import System.FilePath @@ -139,14 +138,6 @@ phpIndent i | i < 0 = " " --space instead of \n | otherwise = '\n':replicate i ' ' --- Create an identifier that does not start with a digit and consists only of upper/lowercase ascii letters, underscores, and digits. --- This function is injective. -escapeIdentifier :: String -> String -escapeIdentifier "" = "_EMPTY_" -escapeIdentifier (c0:cs) = encode False c0 ++ concatMap (encode True) cs - where encode allowNum c | isAsciiLower c || isAsciiUpper c || allowNum && isDigit c = [c] - | c == '_' = "__" -- shorthand for '_' to improve readability - | otherwise = "_" ++ show (ord c) ++ "_" addSlashes :: String -> String addSlashes ('\'': cs) = "\\'"++addSlashes cs diff --git a/src/Database/Design/Ampersand/Prototype/ValidateSQL.hs b/src/Database/Design/Ampersand/Prototype/ValidateSQL.hs index 510569a1e7..9b0a4361ea 100644 --- a/src/Database/Design/Ampersand/Prototype/ValidateSQL.hs +++ b/src/Database/Design/Ampersand/Prototype/ValidateSQL.hs @@ -8,7 +8,6 @@ import System.IO hiding (hPutStr,hGetContents) import Database.Design.Ampersand.FSpec import Database.Design.Ampersand.Core.AbstractSyntaxTree import Database.Design.Ampersand.Prototype.PHP(createTablesPHP,populateTablesPHP,evaluateExpSQL,executePHPStr,sqlServerConnectPHP,createTempDbPHP,showPHP) -import Database.Design.Ampersand.ADL1.Expression (notCpl) {- Validate the generated SQL for all rules in the fSpec, by comparing the evaluation results with the results from Haskell-based Ampersand rule evaluator. The latter is much simpler and diff --git a/src/Database/Design/Ampersand/Test/Parser/ParserTest.hs b/src/Database/Design/Ampersand/Test/Parser/ParserTest.hs index 1a5522bffa..6046daa131 100644 --- a/src/Database/Design/Ampersand/Test/Parser/ParserTest.hs +++ b/src/Database/Design/Ampersand/Test/Parser/ParserTest.hs @@ -16,7 +16,7 @@ import System.IO (hPutStrLn, stderr) parseScripts :: Options -> [FilePath] -> IO Bool parseScripts _ [] = return True parseScripts opts (f:fs) = - do parsed <- parseADL opts (Left f) + do parsed <- parseADL opts f case parsed of Checked _ -> do { putStrLn ("Parsed: " ++ f); parseScripts opts fs } Errors e -> do { putStrLn ("Cannot parse: " ++ f); showErrors e; return False } diff --git a/stack.yaml b/stack.yaml index e9e8bc65eb..0856f734ee 100644 --- a/stack.yaml +++ b/stack.yaml @@ -3,7 +3,7 @@ # Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) # resolver: lts-3.18 # resolver: nightly-2015-09-21 -resolver: lts-5.15 +resolver: lts-6.2 # Local packages, usually specified by relative directory name packages: diff --git a/static/zwolle/api/v1/admin.php b/static/zwolle/api/v1/admin.php index c074693e6c..f01cd24980 100644 --- a/static/zwolle/api/v1/admin.php +++ b/static/zwolle/api/v1/admin.php @@ -194,4 +194,18 @@ print json_encode($content, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); }); + +$app->get('/admin/report/conjuncts', function () use ($app){ + if(Config::get('productionEnv')) throw new Exception ("Reports are not allowed in production environment", 403); + + $content = array(); + foreach(Conjunct::getAllConjuncts() as $conj){ + if($conj->isInvConj()) $content['invConjuncts'][] = $conj->__toString(); + if($conj->isSigConj()) $content['sigConjuncts'][] = $conj->__toString(); + if(!$conj->isInvConj() && !$conj->isSigConj()) $content['unused'][] = $conj->__toString(); + } + + print json_encode($content, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); +}); + ?> \ No newline at end of file diff --git a/static/zwolle/api/v1/index.php b/static/zwolle/api/v1/index.php index e3086e694d..86d1eb5aa4 100644 --- a/static/zwolle/api/v1/index.php +++ b/static/zwolle/api/v1/index.php @@ -1,6 +1,7 @@ error(function (Exception $e) use ($app) { $app->response->setStatus($e->getCode()); try{ + Logger::getLogger("API")->error($e->getMessage()); $notifications = Notifications::getAll(); print json_encode(array('error' => $e->getCode(), 'msg' => $e->getMessage(), 'notifications' => $notifications)); }catch(Exception $b){ + Logger::getLogger("API")->error($b->getMessage()); print json_encode(array('error' => $b->getCode(), 'msg' => $b->getMessage(), 'notifications' => array())); } diff --git a/static/zwolle/api/v1/sessions.php b/static/zwolle/api/v1/sessions.php index 308c7ed52a..4da9e44fca 100644 --- a/static/zwolle/api/v1/sessions.php +++ b/static/zwolle/api/v1/sessions.php @@ -31,11 +31,13 @@ ,'appMenu' => $GLOBALS['navBar']['appMenu'] ,'roleMenu' => $GLOBALS['navBar']['roleMenu'] ,'defaultSettings' => array ('notifications' => Notifications::getDefaultSettings() - ,'switchAutoCommit' => Config::get('interfaceAutoCommitChanges', 'transactions') - ,'cacheGetCalls' => Config::get('interfaceCacheGetCalls', 'transactions')) + ,'switchAutoCommit' => Config::get('interfaceAutoCommitChanges', 'transactions') + ,'cacheGetCalls' => Config::get('interfaceCacheGetCalls', 'transactions') + ,'switchAutoSave' => Config::get('interfaceAutoSaveChanges', 'transactions') + ) ,'notifications' => Notifications::getAll() ,'session' => array ( 'id' => $session->id - , 'loggedIn' => $session->sessionUserLoggedIn()) + ,'loggedIn' => $session->sessionUserLoggedIn()) ,'sessionRoles' => array_values($session->getSessionRoles()) // return numeric array ,'sessionVars' => $session->getSessionVars() ); diff --git a/static/zwolle/app/controllers/static_navigationBarController.js b/static/zwolle/app/controllers/static_navigationBarController.js index bd31268267..65def5a692 100644 --- a/static/zwolle/app/controllers/static_navigationBarController.js +++ b/static/zwolle/app/controllers/static_navigationBarController.js @@ -75,6 +75,10 @@ AmpersandApp.controller('static_navigationBarController', function ($scope, $roo if($scope.$storage.switchAutoCommit === undefined){ $scope.resetSwitchAutoCommit(); } + // Default setting for switchAutoCommit + if($scope.$storage.switchAutoSave === undefined){ + $scope.resetSwitchAutoSave(); + } // Default setting for cacheGetCalls if($scope.$storage.cacheGetCalls === undefined){ @@ -106,13 +110,15 @@ AmpersandApp.controller('static_navigationBarController', function ($scope, $roo $scope.resetSettings = function(){ // all off + $.each($scope.$storage.notificationPrefs, function(index, value){ $scope.$storage.notificationPrefs[index] = false }); $scope.$storage.switchAutoCommit = false; - $.each($scope.$storage.notificationPrefs, function(index, value){ $scope.$storage.notificationPrefs[index] = false }); + $scope.$storage.switchAutoSave = false; $timeout(function() { // reset to default $scope.resetNotificationSettings(); $scope.resetSwitchAutoCommit(); + $scope.resetSwitchAutoSave(); }, 500); }; @@ -123,6 +129,10 @@ AmpersandApp.controller('static_navigationBarController', function ($scope, $roo $scope.resetSwitchAutoCommit = function(){ $scope.$storage.switchAutoCommit = $scope.defaultSettings.switchAutoCommit; }; + + $scope.resetSwitchAutoSave = function(){ + $scope.$storage.switchAutoSave = $scope.defaultSettings.switchAutoSave; + }; // Set request type based upon switchAutoCommit $rootScope.defaultRequestType = $scope.$storage.switchAutoCommit ? 'promise' : 'feedback'; diff --git a/static/zwolle/app/css/ampersand.css b/static/zwolle/app/css/ampersand.css index fb6f18a148..7fcdc3d2fe 100644 --- a/static/zwolle/app/css/ampersand.css +++ b/static/zwolle/app/css/ampersand.css @@ -3,6 +3,10 @@ html { min-height : 100%; } +body { + font-size : 12px; +} + /********* HEADER *****************/ #header { diff --git a/static/zwolle/app/lib/angular/angular-file-upload/angular-file-upload.min.map b/static/zwolle/app/lib/angular/angular-file-upload/angular-file-upload.min.map deleted file mode 100644 index 7b7ee0cba3..0000000000 --- a/static/zwolle/app/lib/angular/angular-file-upload/angular-file-upload.min.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"angular-file-upload.min.js","sources":["angular-file-upload.js"],"names":["angular","factory","define","amd","module","value","url","alias","headers","queue","progress","autoUpload","removeAfterUpload","method","filters","formData","queueLimit","Number","MAX_VALUE","withCredentials","fileUploaderOptions","$rootScope","$http","$window","$compile","FileUploader","options","settings","copy","extend","this","isUploading","_nextIndex","_failFilterIndex","_directives","select","drop","over","unshift","name","fn","_queueLimitFilter","_folderFilter","FileLikeObject","fileOrInput","isInput","isElement","fakePathOrObject","postfix","isString","FileItem","uploader","some","input","element","file","isReady","isUploaded","isSuccess","isCancel","isError","index","_file","_input","_replaceNode","FileDirective","prop","push","_saveLinks","bind","FileSelect","super_","apply","arguments","isHTML5","removeAttr","FileDrop","FileOver","prototype","File","FormData","addToQueue","files","list","isArrayLikeObject","arrayOfFilters","_getFilters","count","length","addedFileItems","forEach","temp","_isValidFile","fileItem","_onAfterAddingFile","filter","_onWhenAddingFileFailed","_onAfterAddingAll","_getTotalProgress","_render","uploadAll","removeFromQueue","getIndexOfItem","item","cancel","splice","_destroy","clearQueue","remove","uploadItem","transport","_prepareToUploading","cancelItem","abort","items","getNotUploadedItems","upload","cancelAll","isFile","isFileLikeObject","isObject","isNumber","indexOf","getReadyItems","sort","item1","item2","destroy","key","object","onAfterAddingAll","onAfterAddingFile","onWhenAddingFileFailed","onBeforeUploadItem","onProgressItem","onProgressAll","onSuccessItem","onErrorItem","onCancelItem","onCompleteItem","onCompleteAll","notUploaded","uploaded","ratio","current","Math","round","isUndefined","isArray","names","match","$$phase","$apply","size","type","every","call","_isSuccessCode","status","_transformResponse","response","headersGetter","_headersGetter","defaults","transformResponse","transformFn","_parseHeaders","val","i","parsed","split","line","slice","trim","toLowerCase","parsedHeaders","_xhrTransport","xhr","_xhr","XMLHttpRequest","form","that","_onBeforeUploadItem","obj","append","onprogress","event","lengthComputable","loaded","total","_onProgressItem","onload","getAllResponseHeaders","gist","_onCompleteItem","onerror","_onErrorItem","onabort","_onCancelItem","open","setRequestHeader","send","_iframeTransport","iframe","Date","now","_form","replaceWith","action","target","enctype","encoding","html","contentDocument","body","innerHTML","e","dummy","_onSuccessItem","unbind","after","submit","_onBeforeUpload","_onProgress","_onSuccess","_onError","_onCancel","_onComplete","nextItem","isDefined","inherit","source","Object","create","constructor","_createFromFakePath","path","lastModifiedDate","lastIndexOf","_createFromObject","onBeforeUpload","onProgress","onSuccess","onError","onCancel","onComplete","clone","scope","css","events","$destroy","change","getOptions","getFilters","isEmptyAfterSelection","attr","onChange","dragover","dragleave","onDrop","transfer","_getTransfer","_preventAndStop","_removeOverClass","onDragOver","_haveFiles","types","dropEffect","_addOverClass","onDragLeave","currentTarget","dataTransfer","originalEvent","preventDefault","stopPropagation","contains","addOverClass","removeOverClass","overClass","addClass","getOverClass","removeClass","directive","$parse","link","attributes","$eval","TypeError"],"mappings":"CAIC,SAASA,EAASC,GAC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AAI9J,GAAS,GAAIxG,GAAa6C,YAC1BnB,SAAUA,EACVG,QAASA,GAGb2E,GAAO2H,WAAa+B,EAAOE,EAAWnQ,SAAS2C,KAAK4D,EAAQsH,GAC5DtH,EAAO4H,WAAa,WAAY,MAAOgC,GAAW/Q,cAM7D4Q,UAAU,cAAe,SAAU,eAAgB,SAASC,EAAQlQ,GACjE,OACImQ,KAAM,SAASrC,EAAOjM,EAASuO,GAC3B,GAAI1O,GAAWoM,EAAMuC,MAAMD,EAAW1O,SAEtC,MAAMA,YAAoB1B,IACtB,KAAM,IAAIsQ,WAAU,iDAGxB,IAAK5O,EAASuB,QAAd,CAEA,GAAIuD,GAAS,GAAIxG,GAAamD,UAC1BzB,SAAUA,EACVG,QAASA,GAGb2E,GAAO2H,WAAa+B,EAAOE,EAAWnQ,SAAS2C,KAAK4D,EAAQsH,GAC5DtH,EAAO4H,WAAa,WAAY,MAAOgC,GAAW/Q,eAM7D4Q,UAAU,cAAe,eAAgB,SAASjQ,GAC/C,OACImQ,KAAM,SAASrC,EAAOjM,EAASuO,GAC3B,GAAI1O,GAAWoM,EAAMuC,MAAMD,EAAW1O,SAEtC,MAAMA,YAAoB1B,IACtB,KAAM,IAAIsQ,WAAU,iDAGxB,IAAI9J,GAAS,GAAIxG,GAAaoD,UAC1B1B,SAAUA,EACVG,QAASA,GAGb2E,GAAOuJ,aAAe,WAClB,MAAOK,GAAWP,WAAaxP,KAAKwP,gBAM7ClR"} \ No newline at end of file diff --git a/static/zwolle/app/lib/angular/angular-resource.min.js.map b/static/zwolle/app/lib/angular/angular-resource.min.js.map deleted file mode 100644 index aede37e1e6..0000000000 --- a/static/zwolle/app/lib/angular/angular-resource.min.js.map +++ /dev/null @@ -1,8 +0,0 @@ -{ -"version":3, -"file":"angular-resource.min.js", -"lineCount":12, -"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA6BtCC,QAASA,EAAmB,CAACC,CAAD,CA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CAAsBG,CAAtB,CAAiC,SAAjC,CAA4C,GAA5C,CAAZ,CAA8D,QAAQ,CAACG,CAAD,CACxEE,CADwE,CACxDC,CADwD,CAClD,CACxB,MAAsB,GAAtB,EAAIA,CAAA3F,OAAA,CAAY,CAAZ,CAAJ,CACS2F,CADT,CAGSD,CAHT,CAG0BC,CAJF,CADpB,CARoC,CAA9C,CAoBIb,EAAAxE,SAAAC,qBAAJ,GACEY,CADF,CACQA,CAAAgE,QAAA,CAAY,MAAZ,CAAoB,EAApB,CADR,EACmC,GADnC,CAMAhE,EAAA,CAAMA,CAAAgE,QAAA,CAAY,mBAAZ,CAAiC,GAAjC,CAENP,EAAAzD,IAAA,CAAaA,CAAAgE,QAAA,CAAY,QAAZ,CAAsB,IAAtB,CAIbvF,EAAA,CAAQwD,CAAR,CAAgB,QAAQ,CAACvD,CAAD,CAAQC,CAAR,CAAa,CAC9BgF,CAAA7D,UAAA,CAAenB,CAAf,CAAL,GACE8E,CAAAxB,OACA,CADgBwB,CAAAxB,OAChB,EADiC,EACjC,CAAAwB,CAAAxB,OAAA,CAActD,CAAd,CAAA,CAAqBD,CAFvB,CADmC,CAArC,CAnDgD,CADlC,CA+OlB,OAAOqB,EApSuC,CAApC,CAjBmB,CADnC,CA3VsC,CAArC,CAAD,CAspBG5B,MAtpBH,CAspBWA,MAAAC,QAtpBX;", -"sources":["angular-resource.js"], -"names":["window","angular","undefined","shallowClearAndCopy","src","dst","forEach","value","key","hasOwnProperty","charAt","$resourceMinErr","$$minErr","MEMBER_NAME_REGEX","module","provider","defaults","stripTrailingSlashes","actions","method","isArray","$get","$http","$q","Route","template","extend","urlParams","resourceFactory","url","paramDefaults","options","extractParams","data","actionParams","ids","isFunction","path","test","keys","split","i","ii","length","obj","defaultResponseInterceptor","response","resource","Resource","route","prototype","toJSON","Resource.prototype.toJSON","$promise","$resolved","action","name","hasBody","a1","a2","a3","a4","params","success","error","arguments","isInstanceCall","httpConfig","responseInterceptor","interceptor","responseErrorInterceptor","responseError","copy","setUrlParams","promise","then","item","push","noop","reject","headers","result","call","bind","Resource.bind","additionalParamDefaults","config","actionUrl","self","val","encodedVal","param","RegExp","replace","_","urlParam","isDefined","encodeURIComponent","match","p1","leadingSlashes","tail"] -} diff --git a/static/zwolle/app/lib/angular/angular-route.min.js.map b/static/zwolle/app/lib/angular/angular-route.min.js.map deleted file mode 100644 index 486443e714..0000000000 --- a/static/zwolle/app/lib/angular/angular-route.min.js.map +++ /dev/null @@ -1,8 +0,0 @@ -{ -"version":3, -"file":"angular-route.min.js", -"lineCount":14, -"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkBC,CAAlB,CAA6B,CA82BtCC,QAASA,EAAa,CAACC,CAAD,CAASC,CAAT,CAAwBC,CAAxB,CAAkC,CACtD,MAAO,CACLC,SAAU,KADL,CAELC,SAAU,CAAA,CAFL,CAGLC,SAAU,GAHL,CAILC,WAAY,SAJP,CAKLC,KAAMA,QAAQ,CAACC,CAAD,CAAQC,CAAR,CAAkBC,CAAlB,CAAwBC,CAAxB,CAA8BC,CAA9B,CAA2C,CAUrDC,QAASA,EAAe,EAAG,CACrBC,CAAJ,GACEZ,CAAAa,OAAA,CAAgBD,CAAhB,CACA,CAAAA,CAAA,CAAyB,IAF3B,CAKIE,EAAJ,GACEA,CAAAC,SAAA,EACA,CAAAD,CAAA,CAAe,IAFjB,CAIIE,EAAJ,GACEJ,CAIA,CAJyBZ,CAAAiB,MAAA,CAAeD,CAAf,CAIzB,CAHAJ,CAAAM,KAAA,CAA4B,QAAQ,EAAG,CACrCN,CAAA,CAAyB,IADY,CAAvC,CAGA,CAAAI,CAAA,CAAiB,IALnB,CAVyB,CAmB3BG,QAASA,EAAM,EAAG,CAAA,IACZC,EAAStB,CAAAuB,QAATD,EAA2BtB,CAAAuB,QAAAD,OAG/B,IAAIzB,CAAA2B,UAAA,CAFWF,CAEX,EAFqBA,CAAAG,UAErB,CAAJ,CAAiC,CAC3BC,IAAAA,EAAW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AAwG,UAAA,CAAwB,QAAxB,CAAkClH,CAAlC,CAgLAvC,EAAA0J,QAAA,CAAwB,CAAC,QAAD,CAAW,eAAX,CAA4B,UAA5B,CA6ExBnH,EAAAmH,QAAA,CAAmC,CAAC,UAAD,CAAa,aAAb,CAA4B,QAA5B,CA17BG,CAArC,CAAD,CAu9BG7J,MAv9BH,CAu9BWA,MAAAC,QAv9BX;", -"sources":["angular-route.js"], -"names":["window","angular","undefined","ngViewFactory","$route","$anchorScroll","$animate","restrict","terminal","priority","transclude","link","scope","$element","attr","ctrl","$transclude","cleanupLastView","previousLeaveAnimation","cancel","currentScope","$destroy","currentElement","leave","then","update","locals","current","isDefined","$template","newScope","$new","clone","enter","onNgViewEnter","autoScrollExp","$eval","$emit","onloadExp","autoscroll","onload","$on","ngViewFillContentFactory","$compile","$controller","html","contents","controller","$scope","controllerAs","data","children","ngRouteModule","module","provider","$RouteProvider","inherit","parent","extra","extend","Object","create","pathRegExp","path","opts","insensitive","caseInsensitiveMatch","ret","originalPath","regexp","keys","replace","_","slash","key","option","optional","star","push","name","RegExp","routes","when","this.when","route","routeCopy","copy","isUndefined","reloadOnSearch","redirectPath","length","substr","redirectTo","otherwise","this.otherwise","params","$get","$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","prepareRoute","$locationEvent","lastRoute","preparedRouteIsUpdateOnly","preparedRoute","parseRoute","$$route","equals","pathParams","forceReload","$broadcast","defaultPrevented","preventDefault","commitRoute","nextRoute","isString","interpolate","search","url","resolve","template","templateUrl","forEach","value","get","invoke","isFunction","getTrustedResourceUrl","loadedTemplateUrl","all","error","match","m","exec","on","i","len","val","string","result","split","segment","segmentMatch","join","reload","$evalAsync","updateParams","newParams","$routeMinErr","$$minErr","$RouteParamsProvider","this.$get","directive","$inject"] -} diff --git a/static/zwolle/app/lib/angular/angular-sanitize.min.js.map b/static/zwolle/app/lib/angular/angular-sanitize.min.js.map deleted file mode 100644 index 00cc8e2e9b..0000000000 --- a/static/zwolle/app/lib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CACA7B,EAAAe,KAAA,CAAU,MAAV,CAX0B,CA5B5B,GAAKc,CAAAA,CAAL,CAAW,MAAOA,EAMlB,KALA,IAAIV,CAAJ,CACIyE,EAAM/D,CADV,CAEI7B,EAAO,EAFX,CAGI0F,CAHJ,CAII7F,CACJ,CAAQsB,CAAR,CAAgByE,CAAAzE,MAAA,CAAUkE,CAAV,CAAhB,CAAA,CAEEK,CAQA,CARMvE,CAAA,CAAM,CAAN,CAQN,CANKA,CAAA,CAAM,CAAN,CAML,EANkBA,CAAA,CAAM,CAAN,CAMlB,GALEuE,CAKF,EALSvE,CAAA,CAAM,CAAN,CAAA,CAAW,SAAX,CAAuB,SAKhC,EAL6CuE,CAK7C,EAHA7F,CAGA,CAHIsB,CAAAS,MAGJ,CAFA4D,CAAA,CAAQI,CAAAC,OAAA,CAAW,CAAX,CAAchG,CAAd,CAAR,CAEA,CADA4F,CAAA,CAAQC,CAAR,CAAavE,CAAA,CAAM,CAAN,CAAAF,QAAA,CAAiBqE,CAAjB,CAAgC,EAAhC,CAAb,CACA,CAAAM,CAAA,CAAMA,CAAArD,UAAA,CAAc1C,CAAd,CAAkBsB,CAAA,CAAM,CAAN,CAAArB,OAAlB,CAER0F,EAAA,CAAQI,CAAR,CACA,OAAOR,EAAA,CAAUpF,CAAAT,KAAA,CAAU,EAAV,CAAV,CApBqB,CAL+C,CAAlC,CAA7C,CA9mBsC,CAArC,CAAD,CAiqBGT,MAjqBH,CAiqBWA,MAAAC,QAjqBX;", -"sources":["angular-sanitize.js"], -"names":["window","angular","undefined","sanitizeText","chars","buf","htmlSanitizeWriter","writer","noop","join","makeMap","str","obj","items","split","i","length","htmlParser","html","handler","parseStartTag","tag","tagName","rest","unary","lowercase","blockElements","stack","last","inlineElements","parseEndTag","optionalEndTagElements","voidElements","push","attrs","replace","ATTR_REGEXP","match","name","doubleQuotedValue","singleQuotedValue","unquotedValue","decodeEntities","start","pos","end","index","text","stack.last","specialElements","RegExp","all","COMMENT_REGEXP","CDATA_REGEXP","indexOf","lastIndexOf","comment","substring","DOCTYPE_REGEXP","test","BEGING_END_TAGE_REGEXP","END_TAG_REGEXP","BEGIN_TAG_REGEXP","START_TAG_REGEXP","$sanitizeMinErr","value","hiddenPre","innerHTML","textContent","encodeEntities","SURROGATE_PAIR_REGEXP","hi","charCodeAt","low","NON_ALPHANUMERIC_REGEXP","uriValidator","ignore","out","bind","validElements","forEach","key","lkey","isImage","validAttrs","uriAttrs","$$minErr","optionalEndTagBlockElements","optionalEndTagInlineElements","extend","svgElements","htmlAttrs","svgAttrs","document","createElement","module","provider","$SanitizeProvider","$get","$$sanitizeUri","uri","filter","$sanitize","LINKY_URL_REGEXP","MAILTO_REGEXP","target","addText","addLink","url","isDefined","raw","substr"] -} diff --git a/static/zwolle/app/lib/angular/angular.min.js.map b/static/zwolle/app/lib/angular/angular.min.js.map deleted file mode 100644 index b054603685..0000000000 --- a/static/zwolle/app/lib/angular/angular.min.js.map +++ /dev/null @@ -1,8 +0,0 @@ -{ -"version":3, -"file":"angular.min.js", -"lineCount":250, -"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAmBC,CAAnB,CAA8B,CAgCvCC,QAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,MAAAA,SAAAA,EAAAA,CAAAA,IAAAA,EAAAA,SAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,GAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,EAAAA,EAAAA,CAAAA,CAAAA,uCAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,EAAAA,EAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,SAAAA,OAAAA,CAAAA,CAAAA,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,EAAAA,CAAAA,CAAAA,GAAAA,CAAAA,GAAAA,EAA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"], -"names":["window","document","undefined","minErr","isArrayLike","obj","isWindow","length","nodeType","NODE_TYPE_ELEMENT","isString","isArray","forEach","iterator","context","key","isFunction","hasOwnProperty","call","isPrimitive","forEachSorted","keys","Object","sort","i","reverseParams","iteratorFn","value","nextUid","uid","setHashKey","h","$$hashKey","extend","dst","ii","arguments","j","jj","int","str","parseInt","inherit","parent","extra","create","noop","identity","$","valueFn","isUndefined","isDefined","isObject","isNumber","isDate","toString","isRegExp","isScope","$evalAsync","$watch","isBoolean","isElement","node","nodeName","prop","attr","find","makeMap","items","split","nodeName_","element","lowercase","arrayRemove","array","index","indexOf","splice","copy","source","destination","stackSource","stackDest","ngMinErr","push","result","Date","getTime","RegExp","match","lastIndex","emptyObject","getPrototypeOf","shallowCopy","src","charAt","equals","o1","o2","t1","t2","keySet","concat","array1","array2","slice","bind","self","fn","curryArgs","startIndex","apply","toJsonReplacer","val","toJson","pretty","JSON","stringify","fromJson","json","parse","startingTag","jqLite","clone","empty","e","elemHtml","append","html","NODE_TYPE_TEXT","replace","tryDecodeURIComponent","decodeURIComponent","parseKeyValue","keyValue","key_value","toKeyValue","parts","arrayValue","encodeUriQuery","join","encodeUriSegment","pctEncodeSpaces","encodeURIComponent","getNgAttribute","ngAttr","ngAttrPrefixes","angularInit","bootstrap","appElement","module","config","prefix","name","hasAttribute","getAttribute","candidate","querySelector","strictDi","modules","defaultConfig","doBootstrap","injector","tag","unshift","$provide","debugInfoEnabled","$compileProvider","createInjector","invoke","bootstrapApply","scope","compile","$apply","data","NG_ENABLE_DEBUG_INFO","NG_DEFER_BOOTSTRAP","test","angular","resumeBootstrap","angular.resumeBootstrap","extraModules","resumeDeferredBootstrap","reloadWithDebugInfo","location","reload","getTestability","rootElement","get","snake_case","separator","SNAKE_CASE_REGEXP","letter","pos","toLowerCase","bindJQuery","originalCleanData","bindJQueryFired","jQuery","on","JQLitePrototype","isolateScope","controller","inheritedData","cleanData","jQuery.cleanData","elems","events","skipDestroyOnNextJQueryCleanData","elem","_data","$destroy","triggerHandler","JQLite","assertArg","arg","reason","assertArgFn","acceptArrayAnnotation","constructor","assertNotHasOwnProperty","getter","path","bindFnToScope","lastInstance","len","getBlockNodes","nodes","endNode","blockNodes","nextSibling","createMap","setupModuleLoader","ensure","factory","$injectorMinErr","$$minErr","requires","configFn","invokeLater","provider","method","insertMethod","queue","invokeQueue","moduleInstance","configBlocks","runBlocks","_invokeQueue","_configBlocks","_runBlocks","service","constant","animation","filter","directive","run","block","publishExternalAPI","version","uppercase","counter","csp","angularModule","$LocaleProvider","ngModule","$$sanitizeUri","$$SanitizeUriProvider","$CompileProvider","a","htmlAnchorDirective","input","inputDirective","textarea","form","formDirective","script","scriptDirective","select","selectDirective","style","styleDirective","option","optionDirective","ngBind","ngBindDirective","ngBindHtml","ngBindHtmlDirective","ngBindTemplate","ngBindTemplateDirective","ngClass","ngClassDirective","ngClassEven","ngClassEvenDirective","ngClassOdd","ngClassOddDirective","ngCloak","ngCloakDirective","ngController","ngControllerDirective","ngForm","ngFormDirective","ngHide","ngHideDirective","ngIf","ngIfDirective","ngInclude","ngIncludeDirective","ngInit","ngInitDirective","ngNonBindable","ngNonBindableDirective","ngPluralize","ngPluralizeDirective","ngRepeat","ngRepeatDirective","ngShow","ngShowDirective","ngStyle","ngStyleDirective","ngSwitch","ngSwitchDirective","ngSwitchWhen","ngSwitchWhenDirective","ngSwitchDefault","ngSwitchDefaultDirective","ngOptions","ngOptionsDirective","ngTransclude","ngTranscludeDirective","ngModel","ngModelDirective","ngList","ngListDirective","ngChange","ngChangeDirective","pattern","patternDirective","ngPattern","required","requiredDirective","ngRequired","minlength","minlengthDirective","ngMinlength","maxlength","maxlengthDirective","ngMaxlength","ngValue","ngValueDirective","ngModelOptions","ngModelOptionsDirective","ngIncludeFillContentDirective","ngAttributeAliasDirectives","ngEventDirectives","$anchorScroll","$AnchorScrollProvider","$animate","$AnimateProvider","$browser","$BrowserProvider","$cacheFactory","$CacheFactoryProvider","$controller","$ControllerProvider","$document","$DocumentProvider","$exceptionHandler","$ExceptionHandlerProvider","$filter","$FilterProvider","$interpolate","$InterpolateProvider","$interval","$IntervalProvider","$http","$HttpProvider","$httpBackend","$HttpBackendProvider","$location","$LocationProvider","$log","$LogProvider","$parse","$ParseProvider","$rootScope","$RootScopeProvider","$q","$QProvider","$$q","$$QProvider","$sce","$SceProvider","$sceDelegate","$SceDelegateProvider","$sniffer","$SnifferProvider","$templateCache","$TemplateCacheProvider","$templateRequest","$TemplateRequestProvider","$$testability","$$TestabilityProvider","$timeout","$TimeoutProvider","$window","$WindowProvider","$$rAF","$$RAFProvider","$$asyncCallback","$$AsyncCallbackProvider","$$jqLite","$$jqLiteProvider","camelCase","SPECIAL_CHARS_REGEXP","_","offset","toUpperCase","MOZ_HACK_REGEXP","jqLiteAcceptsData","NODE_TYPE_DOCUMENT","jqLiteBuildFragment","tmp","fragment","createDocumentFragment","HTML_REGEXP","appendChild","createElement","TAG_NAME_REGEXP","exec","wrap","wrapMap","_default","innerHTML","XHTML_TAG_REGEXP","lastChild","childNodes","firstChild","textContent","createTextNode","argIsString","trim","jqLiteMinErr","parsed","SINGLE_TAG_REGEXP","jqLiteAddNodes","jqLiteClone","cloneNode","jqLiteDealoc","onlyDescendants","jqLiteRemoveData","querySelectorAll","descendants","l","jqLiteOff","type","unsupported","expandoStore","jqLiteExpandoStore","handle","listenerFns","removeEventListener","expandoId","ng339","jqCache","createIfNecessary","jqId","jqLiteData","isSimpleSetter","isSimpleGetter","massGetter","jqLiteHasClass","selector","jqLiteRemoveClass","cssClasses","setAttribute","cssClass","jqLiteAddClass","existingClasses","root","elements","jqLiteController","jqLiteInheritedData","documentElement","names","parentNode","NODE_TYPE_DOCUMENT_FRAGMENT","host","jqLiteEmpty","removeChild","jqLiteRemove","keepData","jqLiteDocumentLoaded","action","win","readyState","setTimeout","getBooleanAttrName","booleanAttr","BOOLEAN_ATTR","BOOLEAN_ELEMENTS","getAliasedAttrName","ALIASED_ATTR","createEventHandler","eventHandler","event","isDefaultPrevented","event.isDefaultPrevented","defaultPrevented","eventFns","eventFnsLength","immediatePropagationStopped","originalStopImmediatePropagation","stopImmediatePropagation","event.stopImmediatePropagation","stopPropagation","isImmediatePropagationStopped","event.isImmediatePropagationStopped","$get","this.$get","hasClass","classes","addClass","removeClass","hashKey","nextUidFn","objType","HashMap","isolatedUid","this.nextUid","put","anonFn","args","fnText","STRIP_COMMENTS","FN_ARGS","modulesToLoad","supportObject","delegate","provider_","providerInjector","instantiate","providerCache","providerSuffix","enforceReturnValue","enforcedReturnValue","instanceInjector","factoryFn","enforce","loadModules","moduleFn","runInvokeQueue","invokeArgs","loadedModules","message","stack","createInternalInjector","cache","getService","serviceName","caller","INSTANTIATING","err","shift","locals","$inject","$$annotate","Type","instance","prototype","returnedValue","annotate","has","$injector","instanceCache","decorator","decorFn","origProvider","orig$get","origProvider.$get","origInstance","$delegate","autoScrollingEnabled","disableAutoScrolling","this.disableAutoScrolling","getFirstAnchor","list","Array","some","scrollTo","scrollIntoView","scroll","yOffset","getComputedStyle","position","getBoundingClientRect","bottom","elemTop","top","scrollBy","hash","elm","getElementById","getElementsByName","autoScrollWatch","autoScrollWatchAction","newVal","oldVal","supported","Browser","completeOutstandingRequest","outstandingRequestCount","outstandingRequestCallbacks","pop","error","startPoller","interval","check","pollFns","pollFn","pollTimeout","cacheStateAndFireUrlChange","cacheState","fireUrlChange","history","state","cachedState","lastCachedState","lastBrowserUrl","url","lastHistoryState","urlChangeListeners","listener","safeDecodeURIComponent","rawDocument","clearTimeout","pendingDeferIds","isMock","$$completeOutstandingRequest","$$incOutstandingRequestCount","self.$$incOutstandingRequestCount","notifyWhenNoOutstandingRequests","self.notifyWhenNoOutstandingRequests","callback","addPollFn","self.addPollFn","href","baseElement","reloadLocation","self.url","sameState","sameBase","stripHash","substr","self.state","urlChangeInit","onUrlChange","self.onUrlChange","$$checkUrlChange","baseHref","self.baseHref","lastCookies","lastCookieString","cookiePath","cookies","self.cookies","cookieLength","cookie","warn","cookieArray","substring","defer","self.defer","delay","timeoutId","cancel","self.defer.cancel","deferId","cacheFactory","cacheId","options","refresh","entry","freshEnd","staleEnd","n","link","p","nextEntry","prevEntry","caches","size","stats","id","capacity","Number","MAX_VALUE","lruHash","lruEntry","remove","removeAll","destroy","info","cacheFactory.info","cacheFactory.get","$$sanitizeUriProvider","parseIsolateBindings","directiveName","LOCAL_REGEXP","bindings","definition","scopeName","$compileMinErr","mode","collection","optional","attrName","hasDirectives","COMMENT_DIRECTIVE_REGEXP","CLASS_DIRECTIVE_REGEXP","ALL_OR_NOTHING_ATTRS","REQUIRE_PREFIX_REGEXP","EVENT_HANDLER_ATTR_REGEXP","this.directive","registerDirective","directiveFactory","Suffix","directives","priority","require","restrict","$$isolateBindings","aHrefSanitizationWhitelist","this.aHrefSanitizationWhitelist","regexp","imgSrcSanitizationWhitelist","this.imgSrcSanitizationWhitelist","this.debugInfoEnabled","enabled","safeAddClass","$element","className","$compileNodes","transcludeFn","maxPriority","ignoreDirective","previousCompileContext","nodeValue","compositeLinkFn","compileNodes","$$addScopeClass","namespace","publicLinkFn","cloneConnectFn","parentBoundTranscludeFn","transcludeControllers","futureParentElement","$$boundTransclude","$linkNode","wrapTemplate","controllerName","$$addScopeInfo","nodeList","$rootElement","childLinkFn","childScope","childBoundTranscludeFn","stableNodeList","nodeLinkFnFound","linkFns","idx","nodeLinkFn","$new","transcludeOnThisElement","createBoundTranscludeFn","transclude","elementTranscludeOnThisElement","templateOnThisElement","attrs","linkFnFound","Attributes","collectDirectives","applyDirectivesToNode","$$element","terminal","previousBoundTranscludeFn","elementTransclusion","boundTranscludeFn","transcludedScope","cloneFn","controllers","containingScope","$$transcluded","attrsMap","$attr","addDirective","directiveNormalize","isNgAttr","nAttrs","attributes","attrStartName","attrEndName","ngAttrName","NG_ATTR_BINDING","PREFIX_REGEXP","directiveNName","directiveIsMultiElement","nName","addAttrInterpolateDirective","animVal","addTextInterpolateDirective","NODE_TYPE_COMMENT","byPriority","groupScan","attrStart","attrEnd","depth","groupElementsLinkFnWrapper","linkFn","compileNode","templateAttrs","jqCollection","originalReplaceDirective","preLinkFns","postLinkFns","addLinkFns","pre","post","newIsolateScopeDirective","$$isolateScope","cloneAndAnnotateFn","getControllers","elementControllers","retrievalMethod","$searchElement","linkNode","controllersBoundTransclude","cloneAttachFn","hasElementTranscludeDirective","scopeToChild","controllerDirectives","$scope","$attrs","$transclude","controllerInstance","controllerAs","templateDirective","$$originalDirective","isolateScopeController","isolateBindingContext","identifier","bindToController","lastValue","parentGet","parentSet","compare","$observe","$$observers","$$scope","literal","b","assign","parentValueWatch","parentValue","$stateful","unwatch","$watchCollection","$on","invokeLinkFn","template","templateUrl","terminalPriority","newScopeDirective","nonTlbTranscludeDirective","hasTranscludeDirective","hasTemplate","$compileNode","$template","childTranscludeFn","$$start","$$end","directiveValue","assertNoDuplicate","$$tlb","createComment","replaceWith","replaceDirective","contents","denormalizeTemplate","removeComments","templateNamespace","newTemplateAttrs","templateDirectives","unprocessedDirectives","markDirectivesAsIsolate","mergeTemplateAttributes","compileTemplateUrl","Math","max","tDirectives","startAttrName","endAttrName","multiElement","srcAttr","dstAttr","$set","tAttrs","linkQueue","afterTemplateNodeLinkFn","afterTemplateChildLinkFn","beforeTemplateCompileNode","origAsyncDirective","derivedSyncDirective","getTrustedResourceUrl","then","content","tempTemplateAttrs","beforeTemplateLinkNode","linkRootElement","$$destroyed","oldClasses","delayedNodeLinkFn","ignoreChildLinkFn","diff","what","previousDirective","text","interpolateFn","textInterpolateCompileFn","templateNode","templateNodeParent","hasCompileParent","$$addBindingClass","textInterpolateLinkFn","$$addBindingInfo","expressions","interpolateFnWatchAction","wrapper","getTrustedContext","attrNormalizedName","HTML","RESOURCE_URL","allOrNothing","trustedContext","attrInterpolatePreLinkFn","newValue","$$inter","oldValue","$updateClass","elementsToRemove","newNode","firstElementToRemove","removeCount","j2","replaceChild","expando","k","kk","annotation","attributesToCopy","$normalize","$addClass","classVal","$removeClass","newClasses","toAdd","tokenDifference","toRemove","writeAttr","booleanKey","aliasedKey","observer","trimmedSrcset","srcPattern","rawUris","nbrUrisWith2parts","floor","innerIdx","lastTuple","removeAttr","listeners","startSymbol","endSymbol","binding","isolated","noTemplate","dataName","str1","str2","values","tokens1","tokens2","token","jqNodes","globals","CNTRL_REG","register","this.register","allowGlobals","this.allowGlobals","addIdentifier","expression","later","ident","$controllerMinErr","controllerPrototype","exception","cause","defaultHttpResponseTransform","headers","tempData","JSON_PROTECTION_PREFIX","contentType","jsonStart","JSON_START","JSON_ENDS","parseHeaders","line","headersGetter","headersObj","transformData","status","fns","defaults","transformResponse","transformRequest","d","common","CONTENT_TYPE_APPLICATION_JSON","patch","xsrfCookieName","xsrfHeaderName","useApplyAsync","this.useApplyAsync","interceptorFactories","interceptors","requestConfig","response","resp","reject","executeHeaderFns","headerContent","processedHeaders","headerFn","header","mergeHeaders","defHeaders","reqHeaders","defHeaderName","reqHeaderName","lowercaseDefHeaderName","chain","serverRequest","reqData","withCredentials","sendReq","promise","when","reversedInterceptors","interceptor","request","requestError","responseError","thenFn","rejectFn","success","promise.success","promise.error","done","headersString","statusText","resolveHttpPromise","resolvePromise","$applyAsync","$$phase","deferred","resolve","resolvePromiseWithResult","removePendingReq","pendingRequests","cachedResp","buildUrl","params","defaultCache","xsrfValue","urlIsSameOrigin","timeout","responseType","v","toISOString","interceptorFactory","createShortMethods","createShortMethodsWithData","createXhr","XMLHttpRequest","createHttpBackend","callbacks","$browserDefer","jsonpReq","callbackId","async","body","called","addEventListener","timeoutRequest","jsonpDone","xhr","abort","completeRequest","open","setRequestHeader","onload","xhr.onload","responseText","urlResolve","protocol","getAllResponseHeaders","onerror","onabort","send","this.startSymbol","this.endSymbol","escape","ch","mustHaveExpression","unescapeText","escapedStartRegexp","escapedEndRegexp","parseStringifyInterceptor","getTrusted","valueOf","newErr","$interpolateMinErr","endIndex","parseFns","textLength","expressionPositions","startSymbolLength","exp","endSymbolLength","compute","interpolationFn","$$watchDelegate","objectEquality","$watchGroup","interpolateFnWatcher","oldValues","currValue","$interpolate.startSymbol","$interpolate.endSymbol","count","invokeApply","setInterval","clearInterval","iteration","skipApply","$$intervalId","tick","notify","intervals","interval.cancel","NUMBER_FORMATS","DECIMAL_SEP","GROUP_SEP","PATTERNS","minInt","minFrac","maxFrac","posPre","posSuf","negPre","negSuf","gSize","lgSize","CURRENCY_SYM","DATETIME_FORMATS","MONTH","SHORTMONTH","DAY","SHORTDAY","AMPMS","medium","fullDate","longDate","mediumDate","shortDate","mediumTime","shortTime","ERANAMES","ERAS","pluralCat","num","encodePath","segments","parseAbsoluteUrl","absoluteUrl","locationObj","parsedUrl","$$protocol","$$host","hostname","$$port","port","DEFAULT_PORTS","parseAppUrl","relativeUrl","prefixed","$$path","pathname","$$search","search","$$hash","beginsWith","begin","whole","trimEmptyHash","stripFile","lastIndexOf","LocationHtml5Url","appBase","basePrefix","$$html5","appBaseNoFile","$$parse","this.$$parse","pathUrl","$locationMinErr","$$compose","this.$$compose","$$url","$$absUrl","$$parseLinkUrl","this.$$parseLinkUrl","relHref","appUrl","prevAppUrl","rewrittenUrl","LocationHashbangUrl","hashPrefix","withoutBaseUrl","withoutHashUrl","windowsFilePathExp","firstPathSegmentMatch","LocationHashbangInHtml5Url","locationGetter","property","locationGetterSetter","preprocess","html5Mode","requireBase","rewriteLinks","this.hashPrefix","this.html5Mode","setBrowserUrlWithFallback","oldUrl","oldState","$$state","afterLocationChange","$broadcast","absUrl","LocationMode","initialUrl","IGNORE_URI_REGEXP","ctrlKey","metaKey","shiftKey","which","button","target","absHref","preventDefault","initializing","newUrl","newState","$digest","$locationWatch","currentReplace","$$replace","urlOrStateChanged","debug","debugEnabled","this.debugEnabled","flag","formatError","Error","sourceURL","consoleLog","console","logFn","log","hasApply","arg1","arg2","ensureSafeMemberName","fullExpression","$parseMinErr","ensureSafeObject","children","isConstant","setter","setValue","fullExp","propertyObj","isPossiblyDangerousMemberName","cspSafeGetterFn","key0","key1","key2","key3","key4","expensiveChecks","eso","o","eso0","eso1","eso2","eso3","eso4","cspSafeGetter","pathVal","getterFnWithEnsureSafeObject","s","getterFn","getterFnCache","getterFnCacheExpensive","getterFnCacheDefault","pathKeys","pathKeysLength","code","needsEnsureSafeObject","lookupJs","evaledFnGetter","Function","sharedGetter","fn.assign","getValueOf","objectValueOf","cacheDefault","cacheExpensive","wrapSharedExpression","wrapped","collectExpressionInputs","inputs","expressionInputDirtyCheck","oldValueOfValue","inputsWatchDelegate","parsedExpression","inputExpressions","$$inputs","lastResult","oldInputValue","expressionInputWatch","newInputValue","oldInputValueOfValues","expressionInputsWatch","changed","oneTimeWatchDelegate","oneTimeWatch","oneTimeListener","old","$$postDigest","oneTimeLiteralWatchDelegate","isAllDefined","allDefined","constantWatchDelegate","constantWatch","constantListener","addInterceptor","interceptorFn","watchDelegate","regularInterceptedExpression","oneTimeInterceptedExpression","$parseOptions","$parseOptionsExpensive","oneTime","cacheKey","parseOptions","lexer","Lexer","parser","Parser","qFactory","nextTick","exceptionHandler","callOnce","resolveFn","Promise","simpleBind","scheduleProcessQueue","processScheduled","pending","Deferred","$qMinErr","TypeError","onFulfilled","onRejected","progressBack","catch","finally","handleCallback","$$reject","$$resolve","progress","makePromise","resolved","isResolved","callbackOutput","errback","$Q","Q","resolver","all","promises","results","requestAnimationFrame","webkitRequestAnimationFrame","cancelAnimationFrame","webkitCancelAnimationFrame","webkitCancelRequestAnimationFrame","rafSupported","raf","timer","createChildScopeClass","ChildScope","$$watchers","$$nextSibling","$$childHead","$$childTail","$$listeners","$$listenerCount","$$watchersCount","$id","$$ChildScope","TTL","$rootScopeMinErr","lastDirtyWatch","applyAsyncId","digestTtl","this.digestTtl","destroyChildScope","$event","currentScope","Scope","$parent","$$prevSibling","$root","beginPhase","phase","decrementListenerCount","current","initWatchVal","flushApplyAsync","applyAsyncQueue","scheduleApplyAsync","isolate","child","watchExp","watcher","last","eq","deregisterWatch","watchExpressions","watchGroupAction","changeReactionScheduled","firstRun","newValues","deregisterFns","shouldCall","deregisterWatchGroup","expr","unwatchFn","watchGroupSubAction","$watchCollectionInterceptor","_value","bothNaN","newItem","oldItem","internalArray","oldLength","changeDetected","newLength","internalObject","veryOldValue","trackVeryOldValue","changeDetector","initRun","$watchCollectionAction","watch","watchers","dirty","ttl","watchLog","logIdx","asyncTask","asyncQueue","$eval","isNaN","msg","next","postDigestQueue","eventName","this.$watchGroup","$applyAsyncExpression","namedListeners","indexOfListener","$emit","targetScope","listenerArgs","$$asyncQueue","$$postDigestQueue","$$applyAsyncQueue","sanitizeUri","uri","isImage","regex","normalizedVal","adjustMatcher","matcher","$sceMinErr","escapeForRegexp","adjustMatchers","matchers","adjustedMatchers","SCE_CONTEXTS","resourceUrlWhitelist","resourceUrlBlacklist","this.resourceUrlWhitelist","this.resourceUrlBlacklist","matchUrl","generateHolderType","Base","holderType","trustedValue","$$unwrapTrustedValue","this.$$unwrapTrustedValue","holderType.prototype.valueOf","holderType.prototype.toString","htmlSanitizer","trustedValueHolderBase","byType","CSS","URL","JS","trustAs","Constructor","maybeTrusted","allowed","this.enabled","msie","sce","isEnabled","sce.isEnabled","sce.getTrusted","parseAs","sce.parseAs","enumValue","lName","eventSupport","android","userAgent","navigator","boxee","vendorPrefix","vendorRegex","bodyStyle","transitions","animations","webkitTransition","webkitAnimation","pushState","hasEvent","divElm","handleRequestFn","tpl","ignoreRequestError","totalPendingRequests","transformer","httpOptions","handleError","testability","testability.findBindings","opt_exactMatch","getElementsByClassName","matches","dataBinding","bindingName","testability.findModels","prefixes","attributeEquals","testability.getLocation","testability.setLocation","testability.whenStable","deferreds","$$timeoutId","timeout.cancel","urlParsingNode","requestUrl","originUrl","filters","suffix","currencyFilter","dateFilter","filterFilter","jsonFilter","limitToFilter","lowercaseFilter","numberFilter","orderByFilter","uppercaseFilter","comparator","matchAgainstAnyProp","predicateFn","createPredicateFn","shouldMatchPrimitives","actual","expected","item","deepCompare","dontMatchWholeObject","actualType","expectedType","expectedVal","matchAnyProperty","actualVal","$locale","formats","amount","currencySymbol","fractionSize","formatNumber","number","groupSep","decimalSep","isFinite","isNegative","abs","numStr","formatedText","hasExponent","toFixed","parseFloat","fractionLen","min","round","fraction","lgroup","group","padNumber","digits","neg","dateGetter","date","dateStrGetter","shortForm","getFirstThursdayOfYear","year","dayOfWeekOnFirst","getDay","weekGetter","firstThurs","getFullYear","thisThurs","getMonth","getDate","eraGetter","jsonStringToDate","string","R_ISO8601_STR","tzHour","tzMin","dateSetter","setUTCFullYear","setFullYear","timeSetter","setUTCHours","setHours","m","ms","format","timezone","NUMBER_STRING","DATE_FORMATS_SPLIT","setMinutes","getMinutes","getTimezoneOffset","DATE_FORMATS","object","spacing","limit","Infinity","sortPredicate","reverseOrder","reverseComparator","comp","descending","objectToString","v1","v2","map","predicate","ngDirective","FormController","controls","parentForm","$$parentForm","nullFormCtrl","$error","$$success","$pending","$name","$dirty","$pristine","$valid","$invalid","$submitted","$addControl","$rollbackViewValue","form.$rollbackViewValue","control","$commitViewValue","form.$commitViewValue","form.$addControl","$$renameControl","form.$$renameControl","newName","oldName","$removeControl","form.$removeControl","$setValidity","addSetValidityMethod","ctrl","set","unset","$setDirty","form.$setDirty","PRISTINE_CLASS","DIRTY_CLASS","$setPristine","form.$setPristine","setClass","SUBMITTED_CLASS","$setUntouched","form.$setUntouched","$setSubmitted","form.$setSubmitted","stringBasedInputType","$formatters","$isEmpty","baseInputType","composing","ev","ngTrim","$viewValue","$$hasNativeValidators","$setViewValue","deferListener","origValue","keyCode","$render","ctrl.$render","createDateParser","mapping","iso","ISO_DATE_REGEXP","yyyy","MM","dd","HH","getHours","mm","ss","getSeconds","sss","getMilliseconds","part","NaN","createDateInputType","parseDate","dynamicDateInputType","isValidDate","parseObservedDateValue","badInputChecker","$options","previousDate","$$parserName","$parsers","parsedDate","$ngModelMinErr","timezoneOffset","ngMin","minVal","$validators","ctrl.$validators.min","$validate","ngMax","maxVal","ctrl.$validators.max","validity","VALIDITY_STATE_PROPERTY","badInput","typeMismatch","parseConstantExpr","fallback","parseFn","classDirective","arrayDifference","arrayClasses","digestClassCounts","classCounts","classesToUpdate","ngClassWatchAction","$index","old$index","mod","cachedToggleClass","switchValue","classCache","toggleValidationCss","validationErrorKey","isValid","VALID_CLASS","INVALID_CLASS","setValidity","isObjectEmpty","PENDING_CLASS","combinedState","REGEX_STRING_REGEXP","documentMode","isActive_","active","full","major","minor","dot","codeName","JQLite._data","MOUSE_EVENT_MAP","mouseleave","mouseenter","optgroup","tbody","tfoot","colgroup","caption","thead","th","td","ready","trigger","fired","removeData","removeAttribute","css","lowercasedName","specified","getNamedItem","ret","getText","$dv","multiple","selected","nodeCount","jqLiteOn","types","related","relatedTarget","contains","off","one","onFn","replaceNode","insertBefore","contentDocument","prepend","wrapNode","detach","after","newElement","toggleClass","condition","classCondition","nextElementSibling","getElementsByTagName","extraParameters","dummyEvent","handlerArgs","eventFnsCopy","arg3","unbind","FN_ARG_SPLIT","FN_ARG","argDecl","underscore","$animateMinErr","$$selectors","classNameFilter","this.classNameFilter","$$classNameFilter","runAnimationPostDigest","cancelFn","$$cancelFn","defer.promise.$$cancelFn","ngAnimatePostDigest","ngAnimateNotifyComplete","resolveElementClasses","hasClasses","cachedClassManipulation","op","asyncPromise","currentDefer","applyStyles","styles","from","to","animate","enter","leave","move","$$addClassImmediately","$$removeClassImmediately","add","createdCache","STORAGE_KEY","$$setClassImmediately","APPLICATION_JSON","PATH_MATCH","locationPrototype","paramValue","Location","Location.prototype.state","CALL","APPLY","BIND","CONSTANTS","null","true","false","constantGetter","OPERATORS","+","-","*","/","%","===","!==","==","!=","<",">","<=",">=","&&","||","!","ESCAPE","lex","tokens","readString","peek","readNumber","isIdent","readIdent","is","isWhitespace","ch2","ch3","op2","op3","op1","operator","throwError","chars","isExpOperator","start","end","colStr","peekCh","quote","rawString","hex","String","fromCharCode","rep","ZERO","statements","primary","expect","filterChain","consume","arrayDeclaration","functionCall","objectIndex","fieldAccess","peekToken","e1","e2","e3","e4","peekAhead","t","unaryFn","right","$parseUnaryFn","binaryFn","left","isBranching","$parseBinaryFn","$parseConstant","$parseStatements","inputFn","argsFn","$parseFilter","every","assignment","ternary","$parseAssignment","logicalOR","middle","$parseTernary","logicalAND","equality","relational","additive","multiplicative","unary","$parseFieldAccess","indexFn","$parseObjectIndex","fnGetter","contextGetter","expressionText","$parseFunctionCall","elementFns","$parseArrayLiteral","valueFns","$parseObjectLiteral","yy","y","MMMM","MMM","M","H","hh","EEEE","EEE","ampmGetter","Z","timeZoneGetter","zone","paddedZone","ww","w","G","GG","GGG","GGGG","longEraGetter","xlinkHref","propName","normalized","ngBooleanAttrWatchAction","htmlAttr","ngAttrAliasWatchAction","nullFormRenameControl","formDirectiveFactory","isNgForm","ngFormCompile","formElement","nameAttr","ngFormPreLink","handleFormSubmission","parentFormCtrl","URL_REGEXP","EMAIL_REGEXP","NUMBER_REGEXP","DATE_REGEXP","DATETIMELOCAL_REGEXP","WEEK_REGEXP","MONTH_REGEXP","TIME_REGEXP","inputType","textInputType","weekParser","isoWeek","existingDate","week","minutes","hours","seconds","milliseconds","addDays","numberInputType","urlInputType","ctrl.$validators.url","modelValue","viewValue","emailInputType","email","ctrl.$validators.email","radioInputType","checked","checkboxInputType","trueValue","ngTrueValue","falseValue","ngFalseValue","ctrl.$isEmpty","ctrls","CONSTANT_VALUE_REGEXP","tplAttr","ngValueConstantLink","ngValueLink","valueWatchAction","$compile","ngBindCompile","templateElement","ngBindLink","ngBindWatchAction","ngBindTemplateCompile","ngBindTemplateLink","ngBindHtmlCompile","tElement","ngBindHtmlGetter","ngBindHtmlWatch","getStringValue","ngBindHtmlLink","ngBindHtmlWatchAction","getTrustedHtml","$viewChangeListeners","forceAsyncEvents","ngEventHandler","previousElements","ngIfWatchAction","newScope","srcExp","onloadExp","autoScrollExp","autoscroll","changeCounter","previousElement","currentElement","cleanupLastIncludeContent","parseAsResourceUrl","ngIncludeWatchAction","afterAnimation","thisChangeId","namespaceAdaptedClone","trimValues","NgModelController","$modelValue","$$rawModelValue","$asyncValidators","$untouched","$touched","parsedNgModel","parsedNgModelAssign","ngModelGet","ngModelSet","pendingDebounce","parserValid","$$setOptions","this.$$setOptions","getterSetter","invokeModelGetter","invokeModelSetter","$$$p","this.$isEmpty","currentValidationRunId","this.$setPristine","this.$setDirty","this.$setUntouched","UNTOUCHED_CLASS","TOUCHED_CLASS","$setTouched","this.$setTouched","this.$rollbackViewValue","$$lastCommittedViewValue","this.$validate","prevValid","prevModelValue","allowInvalid","$$runValidators","allValid","$$writeModelToScope","this.$$runValidators","doneCallback","processSyncValidators","syncValidatorsValid","validator","processAsyncValidators","validatorPromises","validationDone","localValidationRunId","processParseErrors","errorKey","this.$commitViewValue","$$parseAndValidate","this.$$parseAndValidate","this.$$writeModelToScope","this.$setViewValue","updateOnDefault","$$debounceViewValueCommit","this.$$debounceViewValueCommit","debounceDelay","debounce","ngModelWatch","formatters","ngModelCompile","ngModelPreLink","modelCtrl","formCtrl","ngModelPostLink","updateOn","DEFAULT_REGEXP","that","BRACE","IS_WHEN","updateElementText","newText","numberExp","whenExp","whens","whensExpFns","braceReplacement","watchRemover","lastCount","attributeName","tmpMatch","whenKey","ngPluralizeWatchAction","countIsNaN","ngRepeatMinErr","updateScope","valueIdentifier","keyIdentifier","arrayLength","$first","$last","$middle","$odd","$even","ngRepeatCompile","ngRepeatEndComment","lhs","rhs","aliasAs","trackByExp","trackByExpGetter","trackByIdExpFn","trackByIdArrayFn","trackByIdObjFn","hashFnLocals","ngRepeatLink","lastBlockMap","ngRepeatAction","previousNode","nextNode","nextBlockMap","collectionLength","trackById","collectionKeys","nextBlockOrder","trackByIdFn","itemKey","blockKey","ngRepeatTransclude","ngShowWatchAction","NG_HIDE_CLASS","tempClasses","NG_HIDE_IN_PROGRESS_CLASS","ngHideWatchAction","ngStyleWatchAction","newStyles","oldStyles","ngSwitchController","cases","selectedTranscludes","selectedElements","previousLeaveAnimations","selectedScopes","spliceFactory","ngSwitchWatchAction","selectedTransclude","caseElement","selectedScope","anchor","ngOptionsMinErr","NG_OPTIONS_REGEXP","nullModelCtrl","optionsMap","ngModelCtrl","unknownOption","databound","init","self.init","ngModelCtrl_","nullOption_","unknownOption_","addOption","self.addOption","removeOption","self.removeOption","hasOption","renderUnknownOption","self.renderUnknownOption","unknownVal","self.hasOption","setupAsSingle","selectElement","selectCtrl","ngModelCtrl.$render","emptyOption","setupAsMultiple","lastView","selectMultipleWatch","setupAsOptions","callExpression","exprFn","valueName","keyName","createIsSelectedFn","selectedSet","trackFn","trackIndex","isSelected","compareValueFn","selectAsFn","scheduleRendering","renderScheduled","render","updateLabelMap","labelMap","label","added","optionGroups","optionGroupNames","optionGroupName","optionGroup","existingParent","existingOptions","existingOption","valuesFn","anySelected","optionId","trackKeysCache","groupByFn","displayFn","nullOption","groupIndex","groupLength","optionGroupsCache","optGroupTemplate","lastElement","optionTemplate","optionsExp","selectAs","track","selectionChanged","selectedKey","viewValueFn","getLabels","toDisplay","ngModelCtrl.$isEmpty","nullSelectCtrl","selectCtrlName","interpolateWatchAction","ctrl.$validators.required","patternExp","ctrl.$validators.pattern","intVal","ctrl.$validators.maxlength","ctrl.$validators.minlength","$$csp"] -} diff --git a/static/zwolle/app/views/static_navigationBar.html b/static/zwolle/app/views/static_navigationBar.html index 07b421cbe5..f1de6764f8 100644 --- a/static/zwolle/app/views/static_navigationBar.html +++ b/static/zwolle/app/views/static_navigationBar.html @@ -27,6 +27,7 @@
  • Auto hide successes
  • Auto commit changes
  • +
  • Auto save changes
  • Default settings
  • diff --git a/static/zwolle/extensions/ExecEngine/functions/insDelPairAtom.php b/static/zwolle/extensions/ExecEngine/functions/insDelPairAtom.php index 242c75d699..81e3c2131b 100644 --- a/static/zwolle/extensions/ExecEngine/functions/insDelPairAtom.php +++ b/static/zwolle/extensions/ExecEngine/functions/insDelPairAtom.php @@ -34,7 +34,7 @@ // Use: VIOLATION (TXT "InsPair;;;;;") function InsPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom){ if(func_num_args() != 5) throw new Exception("Wrong number of arguments supplied for function InsPair(): ".func_num_args()." arguments", 500); - Logger::getLogger('EXECENGINE')->debug("InsPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom)"); + Logger::getLogger('EXECENGINE')->info("InsPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom)"); try{ // Check if relation signature exists: $relationName[$srcConceptName*$tgtConceptName] $relation = Relation::getRelation($relationName, $srcConceptName, $tgtConceptName); @@ -42,7 +42,10 @@ function InsPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom if($srcAtom == "NULL" or $tgtAtom == "NULL") throw new Exception("Use of keyword NULL is deprecated, use '_NEW'", 500); // if either srcAtomIdStr or tgtAtom is not provided by the pairview function (i.e. value set to '_NULL'): skip the insPair - if($srcAtom == '_NULL' or $tgtAtom == '_NULL') return 'InsPair ignored because src and/or tgt atom is _NULL'; + if($srcAtom == '_NULL' or $tgtAtom == '_NULL'){ + Logger::getLogger('EXECENGINE')->debug("InsPair ignored because src and/or tgt atom is _NULL"); + return; + } // if srcAtomIdStr is specified as _NEW, a new atom of srcConcept is created $srcConcept = Concept::getConcept($srcConceptName); @@ -78,7 +81,7 @@ function InsPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom // Use: VIOLATION (TXT "DelPair;;;;;") function DelPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom){ if(func_num_args() != 5) throw new Exception("Wrong number of arguments supplied for function DelPair(): ".func_num_args()." arguments", 500); - Logger::getLogger('EXECENGINE')->debug("DelPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom)"); + Logger::getLogger('EXECENGINE')->info("DelPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom)"); try{ // Check if relation signature exists: $relationName[$srcConceptName*$tgtConceptName] $relation = Relation::getRelation($relationName, $srcConceptName, $tgtConceptName); @@ -86,7 +89,10 @@ function DelPair($relationName,$srcConceptName,$srcAtom,$tgtConceptName,$tgtAtom if($srcAtom == "NULL" or $tgtAtom == "NULL") throw new Exception("Use of keyword NULL is deprecated, use '_NEW'", 500); // if either srcAtomIdStr or tgtAtom is not provided by the pairview function (i.e. value set to '_NULL'): skip the insPair - if($srcAtom == '_NULL' or $tgtAtom == '_NULL') return 'DelPair ignored because src and/or tgt atom is _NULL'; + if($srcAtom == '_NULL' or $tgtAtom == '_NULL'){ + Logger::getLogger('EXECENGINE')->debug("DelPair ignored because src and/or tgt atom is _NULL"); + return; + } $srcAtoms = explode('_AND', $srcAtom); $tgtAtoms = explode('_AND', $tgtAtom); @@ -132,7 +138,7 @@ function NewStruct(){ // arglist: ($ConceptC[,$newAtom][,$relation,$srcConcept,$ $c = Concept::getConcept(func_get_arg(0)); // Concept for which atom is to be created $atom = $c->createNewAtom(); // Default marker for atom-to-be-created. - Logger::getLogger('EXECENGINE')->debug("Newstruct for concept '{$c}'"); + Logger::getLogger('EXECENGINE')->info("Newstruct for concept '{$c}'"); // Check if name of new atom is explicitly specified if (func_num_args() % 5 == 2) $atom = new Atom(func_get_arg(1), $c->name); // If so, we'll be using this to create the new atom @@ -177,12 +183,13 @@ function NewStruct(){ // arglist: ($ConceptC[,$newAtom][,$relation,$srcConcept,$ // Use: VIOLATION (TXT "InsAtom;") -- this may not be of any use in Ampersand, though. function InsAtom($conceptName){ if(func_num_args() != 1) throw new Exception("Wrong number of arguments supplied for function InsAtom(): ".func_num_args()." arguments", 500); - Logger::getLogger('EXECENGINE')->debug("InsAtom($conceptName)"); + Logger::getLogger('EXECENGINE')->info("InsAtom($conceptName)"); try{ $database = Database::singleton(); $concept = Concept::getConcept($conceptName); - $database->addAtomToConcept($atom = $concept->createNewAtom()); // insert new atom in database + $atom = $concept->createNewAtom(); + $atom->addAtom(); // insert new atom in database Logger::getLogger('EXECENGINE')->debug("Atom '{$atom->__toString()}' created and added to database"); @@ -200,7 +207,7 @@ function InsAtom($conceptName){ // Use: VIOLATION (TXT "DelAtom;;") function DelAtom($concept, $atomId){ if(func_num_args() != 2) throw new Exception("Wrong number of arguments supplied for function DelAtom(): ".func_num_args()." arguments", 500); - Logger::getLogger('EXECENGINE')->debug("DelAtom($concept,$atomId)"); + Logger::getLogger('EXECENGINE')->info("DelAtom($concept,$atomId)"); try{ $database = Database::singleton(); @@ -222,7 +229,7 @@ function DelAtom($concept, $atomId){ // Use: VIOLATION (TXT "SetConcept;;;") function SetConcept($conceptA, $conceptB, $atom){ if(func_num_args() != 3) throw new Exception("Wrong number of arguments supplied for function SetConcept(): ".func_num_args()." arguments", 500); - Logger::getLogger('EXECENGINE')->debug("SetConcept($conceptA,$conceptB,$atom)"); + Logger::getLogger('EXECENGINE')->info("SetConcept($conceptA,$conceptB,$atom)"); try{ $database = Database::singleton(); @@ -243,7 +250,7 @@ function SetConcept($conceptA, $conceptB, $atom){ // Use: VIOLATION (TXT "ClearConcept;;") function ClearConcept($concept, $atom){ if(func_num_args() != 2) throw new Exception("Wrong number of arguments supplied for function ClearConcept(): ".func_num_args()." arguments", 500); - Logger::getLogger('EXECENGINE')->debug("ClearConcept($concept,$atom)"); + Logger::getLogger('EXECENGINE')->info("ClearConcept($concept,$atom)"); try{ $database = Database::singleton(); diff --git a/static/zwolle/extensions/Mutation/Mutation.php b/static/zwolle/extensions/Mutation/Mutation.php deleted file mode 100644 index 8643f76c7b..0000000000 --- a/static/zwolle/extensions/Mutation/Mutation.php +++ /dev/null @@ -1,74 +0,0 @@ - '\Ampersand\Extension\Mutation\Mutation', 'function' => 'mutUpdate', 'filename' => 'Mutation.php', 'filepath' => 'extensions/Mutation', - 'params' => array('$fullRelationSignature', '$stableAtom', '$stableConcept', '$modifiedAtom', '$modifiedConcept', '$source')); -$insertHook = array('class' => '\Ampersand\Extension\Mutation\Mutation', 'function' => 'mutInsert', 'filename' => 'Mutation.php', 'filepath' => 'extensions/Mutation', - 'params' => array('$fullRelationSignature', '$stableAtom', '$stableConcept', '$modifiedAtom', '$modifiedConcept', '$source')); -$deleteHook = array('class' => '\Ampersand\Extension\Mutation\Mutation', 'function' => 'mutDelete', 'filename' => 'Mutation.php', 'filepath' => 'extensions/Mutation', - 'params' => array('$fullRelationSignature', '$stableAtom', '$stableConcept', '$modifiedAtom', '$modifiedConcept', '$source')); -Hooks::addHook('postDatabaseUpdate', $updateHook); -Hooks::addHook('postDatabaseInsert', $insertHook); -Hooks::addHook('postDatabaseDelete', $deleteHook); - -class Mutation { - - public static function mutUpdate($fullRelationSignature, $stableAtom, $stableConcept, $modifiedAtom, $modifiedConcept, $source){ - $operation = 'Changed'; - Mutation::saveMutation($operation, $fullRelationSignature, $stableAtom, $stableConcept, $modifiedAtom, $modifiedConcept, $source); - } - - public static function mutInsert($fullRelationSignature, $stableAtom, $stableConcept, $modifiedAtom, $modifiedConcept, $source){ - $operation = 'Added'; - Mutation::saveMutation($operation, $fullRelationSignature, $stableAtom, $stableConcept, $modifiedAtom, $modifiedConcept, $source); - } - - public static function mutDelete($fullRelationSignature, $stableAtom, $stableConcept, $modifiedAtom, $modifiedConcept, $source){ - $operation = 'Removed'; - Mutation::saveMutation($operation, $fullRelationSignature, $stableAtom, $stableConcept, $modifiedAtom, $modifiedConcept, $source); - } - - private static function saveMutation($operation, $fullRelationSignature, $stableAtom, $stableConcept, $modifiedAtom, $modifiedConcept, $source){ - if(array_key_exists($fullRelationSignature, Config::get('mutationConcepts', 'MutationExtension'))){ - - $database = Database::singleton(); - $database->setTrackAffectedConjuncts(false); // Don't track affected conjuncts for Mutation concept and relations; - - // New Mutation - $mutConcept = Concept::getConcept(Config::get('mutationConcepts', 'MutationExtension')[$fullRelationSignature]); - $mut = $mutConcept->createNewAtom(); - - // Add mut info - Relation::getRelation('mutRelation', $mut->concept->name, 'Relation')->addLink($mut, new Atom($fullRelationSignature, 'Relation'), false, 'MutationExtension'); - Relation::getRelation('mutDateTime', $mut->concept->name, 'DateTime')->addLink($mut, new Atom(date(DATE_ISO8601), 'DateTime'), false, 'MutationExtension'); - - if($source == 'User'){ - $session = Session::singleton(); - $accountId = $session->getSessionAccountId(); - }else{ - $accountId = $source; - } - - Relation::getRelation('mutBy', $mut->concept->name, 'Account')->addLink($mut, new Atom($accountId, 'Account'), false, 'MutationExtension'); - Relation::getRelation('mutOp', $mut->concept->name, 'Operation')->addLink($mut, new Atom($operation, 'Operation'), false, 'MutationExtension'); - // Relation::getRelation('mutReason', $mut->concept->name, 'MutationReason')->addLink($mut, new Atom('zomaar', 'MutationReason'), false, 'MutationExtension'); // TODO: get reason from somewhere - Relation::getRelation('mutValue', $mut->concept->name, 'MutationValue')->addLink($mut, new Atom($modifiedAtom, 'MutationValue'), false, 'MutationExtension'); - Relation::getRelation('mutStable', $mut->concept->name, $stableConcept)->addLink($mut, new Atom($stableAtom, $stableConcept), false, 'MutationExtension'); - Relation::getRelation('mutPublish', $mut->concept->name, $mut->concept->name)->addLink($mut, $mut, false, 'MutationExtension'); - - $database->setTrackAffectedConjuncts(true); // Enable tracking of affected conjuncts again!! - } - } -} - -?> diff --git a/static/zwolle/extensions/OAuthLogin/OAuthLogin.php b/static/zwolle/extensions/OAuthLogin/OAuthLogin.php index 31ee4612c6..8257782bb6 100644 --- a/static/zwolle/extensions/OAuthLogin/OAuthLogin.php +++ b/static/zwolle/extensions/OAuthLogin/OAuthLogin.php @@ -151,26 +151,27 @@ public static function callback($code, $idp){ // Set sessionUser $atom = new Atom($email, 'UserID'); - $accounts = array_column((array)$atom->ifc('AccountForUserid')->getContent(), '_id_'); + $accounts = $atom->ifc('AccountForUserid')->getTgtAtoms(); // create new user if(empty($accounts)){ - $accountConcept = Concept::getConcept('Account'); - $newAccount = $accountConcept->createNewAtom(); + $newAccount = Concept::getConcept('Account')->createNewAtom(); + + // Save email as accUserid $relAccUserid = Relation::getRelation('accUserid', $newAccount->concept->name, 'UserID'); $relAccUserid->addLink($newAccount, new Atom($email, 'UserID'), false, 'OAuthLoginExtension'); - // add to Organization + // If possible, add account to organization(s) based on domain name $domain = explode('@', $email)[1]; $atom = new Atom($domain, 'Domain'); - $orgs = array_column((array)$atom->ifc('DomainOrgs')->getContent(), '_id_'); - + $orgs = $atom->ifc('DomainOrgs')->getTgtAtoms(); $relAccOrg = Relation::getRelation('accOrg', $newAccount->concept->name, 'Organization'); foreach ($orgs as $org){ - $relAccOrg->addLink($newAccount, new Atom($org, 'Organization'), false, 'OAuthLoginExtension'); + $relAccOrg->addLink($newAccount, $org, false, 'OAuthLoginExtension'); } - - $accounts[] = $newAccount->id; + + // Account created, add to $accounts list (used lateron) + $accounts[] = $newAccount; } @@ -180,9 +181,7 @@ public static function callback($code, $idp){ $relAccMostRecentLogin = Relation::getRelation('accMostRecentLogin', 'Account', 'DateTime'); $relAccLoginTimestamps = Relation::getRelation('accLoginTimestamps', 'Account', 'DateTime'); - foreach ($accounts as $accountId){ - $account = new Atom($accountId, 'Account'); - + foreach ($accounts as $account){ // Set sessionAccount $relSessionAccount->addLink(new Atom(session_id(), 'SESSION'), $account, false, 'OAuthLoginExtension'); @@ -197,7 +196,7 @@ public static function callback($code, $idp){ } } - header('Location: '. Config::get('serverURL')); + header('Location: '. Config::get('redirectAfterLogin', 'OAuthLogin')); exit; } } diff --git a/static/zwolle/src/Ampersand/Core/Atom.php b/static/zwolle/src/Ampersand/Core/Atom.php index 4164627ff1..d9f1187fd3 100644 --- a/static/zwolle/src/Ampersand/Core/Atom.php +++ b/static/zwolle/src/Ampersand/Core/Atom.php @@ -60,7 +60,7 @@ class Atom { public $path; /** - *Specifies the interface from which this atom is instantiated + * Specifies the interface from which this atom is instantiated * @var InterfaceObject */ private $parentIfc; @@ -69,13 +69,13 @@ class Atom { * Label of atom to be displayed in user interfaces * @var string */ - public $label; + private $label; /** * Array of attributes of this atom to be used by the user interface frontend templates * @var array */ - public $view; + private $view; /** * Specifies the concept of which this atom is an instance @@ -95,36 +95,29 @@ class Atom { */ private $storedContent = null; + /** + * @var array|null $qData The row data (from database query) from which this atom is created + */ + private $qData = null; + /** * Atom constructor * @param string $atomId * @param string $conceptName * @param InterfaceObject $ifc + * @param array|null $qData the row data (from database query) from which this atom is created * @return void */ - public function __construct($atomId, $conceptName, $ifc = null){ + public function __construct($atomId, $conceptName, $ifc = null, $qData = null){ $this->database = Database::singleton(); $this->logger = Logger::getLogger('FW'); $this->parentIfc = $ifc; $this->concept = Concept::getConcept($conceptName); + $this->qData = $qData; $this->setId($atomId); - // View & label - if(!is_null($this->parentIfc)) $view = $this->parentIfc->view; // If parentIfc is set, use view as defined by interface - else $view = $this->concept->getDefaultView(); // Else use default view of concept (can be null) - - if(is_null($view)){ - $this->view = null; - $this->label = $this->id; - }else{ - $this->view = $this->getAtomView($view); - - $viewString = implode($this->view); - $this->label = empty($viewString) ? $this->id : $viewString; // empty viewString => label = id - } - // JSON-LD attributes $this->url = Config::get('serverURL') . Config::get('apiPath') . '/resource/' . $this->concept->name . '/' . $this->getJsonRepresentation(); @@ -140,16 +133,13 @@ public function __toString(){ */ public function setId($id){ // Decode url encoding for objects - $this->id = $this->concept->isObject ? urldecode($id) : $id; + $this->id = $this->concept->isObject ? rawurldecode($id) : $id; // Escape id for database queries $this->idEsc = $this->database->escape($this->getMysqlRepresentation()); - if(is_null($this->parentIfc)){ - $this->path = 'resources/' . $this->concept->name . '/' . $this->getJsonRepresentation(); - }else{ - $this->path = $this->parentIfc->isRef() ? $this->parentIfc->path : $this->parentIfc->path . '/' . $this->getJsonRepresentation(); - } + $this->path = is_null($this->parentIfc) ? 'resources/' . $this->concept->name : $this->parentIfc->path; + $this->path .= '/' . $this->getJsonRepresentation(); } /** @@ -157,9 +147,17 @@ public function setId($id){ * @return boolean */ public function atomExists(){ - if($this->id === '_NEW_') return true; // Return true if id is '_NEW_' (special case) - - return $this->database->atomExists($this); + if($this->concept->inAtomCache($this)){ + $this->logger->debug("#217 One query saved due to caching existing atoms that exist in database"); + return true; + }elseif($this->id === '_NEW'){ + return true; // Return true if id is '_NEW' (special case) + }elseif($this->database->atomExists($this)){ + $this->concept->addToAtomCache($this); + return true; + }else{ + return false; + } } /** @@ -167,7 +165,12 @@ public function atomExists(){ * @return void */ public function addAtom(){ - $this->database->addAtomToConcept($this); + if($this->atomExists()){ + $this->logger->debug("Atom '{$this->__toString()}' already exists in database"); + }else{ + $this->database->addAtomToConcept($this); + $this->concept->addToAtomCache($this); + } return $this; } @@ -178,7 +181,7 @@ public function addAtom(){ * @return array */ public function getAtom($options = array()){ - $result = array('_id_' => $this->getJsonRepresentation(), '_label_' => $this->label, '_view_' => $this->view); + $result = array('_id_' => $this->getJsonRepresentation(), '_label_' => $this->getLabel(), '_view_' => $this->getView()); if($options['navIfc']){ $ifcs = array(); @@ -191,33 +194,81 @@ public function getAtom($options = array()){ return $result; } + + /** + * Returns label (from view or atom id) for this atom + * @return string + */ + public function getLabel(){ + if(!isset($this->label)){ + $viewStr = implode($this->getView()); + $this->label = empty($viewStr) ? $this->id : $viewStr; // empty view => label = id + } + return $this->label; + } /** - * Returns view key-value pairs for this atom - * @param View $view + * Returns view array of key-value pairs for this atom * @return array */ - private function getAtomView($view){ - $viewStrs = array(); - foreach ($view->segments as $viewSegment){ - $key = is_null($viewSegment->label) ? $viewSegment->seqNr : $viewSegment->label; - - switch ($viewSegment->segType){ - case "Text" : - $viewStrs[$key] = $viewSegment->text; - break; - case "Exp" : - $query = "SELECT DISTINCT `tgt` FROM ({$viewSegment->expSQL}) AS `results` WHERE `src` = '{$this->idEsc}' AND `tgt` IS NOT NULL"; - $tgtAtoms = array_column((array)$this->database->Exe($query), 'tgt'); - $viewStrs[$key] = count($tgtAtoms) ? $tgtAtoms[0] : null; - break; - default : - throw new Exception("Unsupported segmentType '{$viewSegment->segType}' in view '{$view->label}' segment '{$viewSegment->seqNr}:{$viewSegment->label}'", 501); // 501: Not implemented - break; - } - } - return $viewStrs; + private function getView(){ + // If view is not already set + if(!isset($this->view)){ + $this->logger->debug("Get view for atom '{$this->__toString()}'"); + $this->view = array(); + + // If parentIfc is set, use view as defined by interface (can be null) + if(isset($this->parentIfc)) $viewDef = $this->parentIfc->view; + // Else use default view of concept (can be null) + else $viewDef = $this->concept->getDefaultView(); + + // If there is a view definition + if(!is_null($viewDef)){ + foreach ($viewDef->segments as $viewSegment){ + $key = is_null($viewSegment->label) ? $viewSegment->seqNr : $viewSegment->label; + + switch ($viewSegment->segType){ + case "Text" : + $this->view[$key] = $viewSegment->text; + break; + case "Exp" : + try { + // Try to get view segment from atom query data + $this->view[$key] = $this->getQueryData('view_' . $key); // column is prefixed with view_ + $this->logger->debug("VIEW <{$viewDef->label}:{$key}> #217 Query saved due to reusing data from source atom"); + + }catch (Exception $e) { + // Column not defined, perform query + if($e->getCode() == 1001){ // TODO: fix this 1001 exception code handling by proper construct + $query = "/* VIEW <{$viewDef->label}:{$key}> */ SELECT DISTINCT `tgt` FROM ({$viewSegment->expSQL}) AS `results` WHERE `src` = '{$this->idEsc}' AND `tgt` IS NOT NULL"; + $tgtAtoms = array_column((array)$this->database->Exe($query), 'tgt'); + $this->view[$key] = count($tgtAtoms) ? $tgtAtoms[0] : null; + }else{ + throw $e; + } + } + break; + default : + throw new Exception("Unsupported segmentType '{$viewSegment->segType}' in VIEW <{$viewDef->label}:{$key}>", 501); // 501: Not implemented + break; + } + } + } + } + return $this->view; } + + public function getQueryData($colName = null){ + if(is_null($this->qData)) throw new Exception("No query data available for atom '{$this->__toString()}'", 1001); + if(is_null($colName)){ + return $this->qData; + }else{ + // column name is prefixed with 'ifc_' to prevent duplicates with 'src' and 'tgt' cols, which are standard added to query data + $colName; + if(!array_key_exists($colName, $this->qData)) throw new Exception("Column '{$colName}' not defined in query data of atom '{$this->__toString()}'", 1001); + return $this->qData[$colName]; + } + } /** * Return json representation of Atom (identifier) according to Ampersand technical types (TTypes) @@ -296,16 +347,16 @@ public function getMysqlRepresentation(){ /** * Chains this atom to an interface as srcAtom * @param string $ifcId - * @param boolean $isRef specifies if $ifcId is reference to toplevel interface * @throws Exception * @return InterfaceObject */ - public function ifc($ifcId, $isRef = false){ - if(is_null($this->parentIfc) || $isRef) $ifc = InterfaceObject::getInterface($ifcId); + public function ifc($ifcId){ + if(is_null($this->parentIfc)) $ifc = InterfaceObject::getInterface($ifcId); + elseif($this->parentIfc->isRef()) $ifc = InterfaceObject::getInterface($ifcId); else $ifc = $this->parentIfc->getSubinterface($ifcId); $clone = clone $ifc; - $clone->setSrcAtom($this, $isRef); + $clone->setSrcAtom($this); return $clone; } @@ -319,7 +370,7 @@ public function ifc($ifcId, $isRef = false){ public function walkIfcPath($path){ $session = Session::singleton(); - if(!$this->atomExists()) throw new Exception ("Resource '$this->__toString()' not found", 404); + if(!$this->atomExists()) throw new Exception ("Resource '{$this->__toString()}' not found", 404); $atom = $this; // starting point @@ -391,8 +442,8 @@ public function getContent($options = array(), $recursionArr = array(), $depth = if(isset($options['depth']) && is_null($depth)) $depth = $options['depth']; // initialize depth, if specified in options array $content = array( '_id_' => $this->getJsonRepresentation() - , '_label_' => $this->label - , '_view_' => $this->view + , '_label_' => $this->getLabel() + , '_view_' => $this->getView() ); // Meta data @@ -539,7 +590,7 @@ public function doPatches($patches = array()){ $atomOrIfc->doPatchAdd($patch); break; case "remove" : - $atomOrIfc->doPatchRemove(); + $atomOrIfc->doPatchRemove($patch); break; default : throw new Exception("Unknown patch operation '" . $patch['op'] ."'. Supported are: 'replace', 'add' and 'remove'", 501); @@ -559,34 +610,37 @@ public function doPatches($patches = array()){ /** * Function not implemented. Use InterfaceObject->doPatchReplace() method instead. + * @var array $patch * @throws Exception */ - public function doPatchReplace(){ + public function doPatchReplace($patch){ throw new Exception ("Cannot patch replace from '{$this->path}'. Path ends with resource", 405); } /** * Function not implemented. Use InterfaceObject->doPatchAdd() method instead. + * @var array $patch * @throws Exception */ - public function doPatchAdd(){ + public function doPatchAdd($patch){ throw new Exception ("Cannot patch add from '{$this->path}'. Path ends with resource", 405); } /** * Remove (src,tgt) tuple from relation provided in $this->parentIfc + * @var array $patch * @throws Exception * @return void */ - public function doPatchRemove(){ + public function doPatchRemove($patch){ $ifc = $this->parentIfc; // CRUD check if(!$ifc->crudU) throw new Exception("Update is not allowed for path '{$this->path}'", 403); // Interface is property - if($ifc->isProp() && !$ifc->isIdent){ + if($ifc->isProp()){ // Properties must be treated as a 'replace', so not handled here throw new Exception("Cannot patch remove for property '{$ifc->path}'. Use patch replace instead", 500); @@ -602,7 +656,7 @@ public function doPatchRemove(){ $ifc->relation->deleteLink($this->parentIfc->srcAtom, $this, $ifc->relationIsFlipped); }else{ - throw new Exception ("Unknown patch add. Please contact the application administrator", 500); + throw new Exception ("Unknown patch remove. Please contact the application administrator", 500); } } diff --git a/static/zwolle/src/Ampersand/Core/Concept.php b/static/zwolle/src/Ampersand/Core/Concept.php index 59eab8a99a..94861375a8 100644 --- a/static/zwolle/src/Ampersand/Core/Concept.php +++ b/static/zwolle/src/Ampersand/Core/Concept.php @@ -42,6 +42,12 @@ class Concept { */ private $database; + /** + * Definition from which Concept object is created + * @var array + */ + private $def; + /** * Name (and unique identifier) of concept * @var string @@ -107,6 +113,12 @@ class Concept { * @var DatabaseTable */ private $mysqlConceptTable; + + /** + * @var Atom[] $atomCache array with atoms that exist in the concept (within database transaction) + * used to prevent unnecessary queries to check if atom is already in database + */ + private $atomCache = array(); /** * Concept constructor @@ -118,6 +130,8 @@ private function __construct($conceptDef){ $this->database = Database::singleton(); $this->logger = Logger::getLogger('FW'); + $this->def = $conceptDef; + $this->name = $conceptDef['name']; $this->type = $conceptDef['type']; $this->isObject = ($this->type == "OBJECT") ? true : false; @@ -128,7 +142,7 @@ private function __construct($conceptDef){ if ($conj->isSigConj()) $this->affectedSigConjuncts[] = $conj; if ($conj->isInvConj()) $this->affectedInvConjuncts[] = $conj; - if (!$conj->isSigConj() && !$conj->isInvConj()) $this->logger->warning("Affected conjunct '{$conj->id}' (specified for concept '[{$this->name}]') is not part of an invariant or signal rule"); + // if (!$conj->isSigConj() && !$conj->isInvConj()) $this->logger->warning("Affected conjunct '{$conj->id}' (specified for concept '[{$this->name}]') is not part of an invariant or signal rule"); } $this->specializations = (array)$conceptDef['specializations']; @@ -233,9 +247,16 @@ public function inSameClassificationTree($concept){ * @return mixed[] */ public function getAllAtomObjects(){ - $arr = array(); - foreach ($this->getAllAtomIds() as $tgtAtomId){ - $tgtAtom = new Atom($tgtAtomId, $this->name); + // Query all atoms in table + if(isset($this->def['allAtomsQuery'])) $query = $this->def['allAtomsQuery']; + else{ + $firstCol = current($this->mysqlConceptTable->getCols()); // We can query an arbitrary concept col for checking the existence of an atom + $query = "SELECT DISTINCT `{$firstCol->name}` as `atomId` FROM `{$this->mysqlConceptTable->name}` WHERE `{$firstCol->name}` IS NOT NULL"; + } + + $arr = array(); + foreach ((array)$this->database->Exe($query) as $row){ + $tgtAtom = new Atom($row['atomId'], $this->name, null, $row); $arr[] = $tgtAtom->getAtom(); } return $arr; @@ -330,6 +351,22 @@ public function createNewAtomId(){ public function createNewAtom(){ return new Atom($this->createNewAtomId(), $this->name); } + + /** + * @param Atom $atom check if atom exists in concept atom cache + * @return boolean + */ + public function inAtomCache($atom){ + return in_array($atom, $this->atomCache, true); // strict mode to prevent 'Nesting level too deep' error + } + + /** + * @param Atom $atom atom to add to concept atom cache + * @return void + */ + public function addToAtomCache($atom){ + $this->atomCache[] = $atom; + } /********************************************************************************************** * diff --git a/static/zwolle/src/Ampersand/Core/Relation.php b/static/zwolle/src/Ampersand/Core/Relation.php index 059a9fd9ec..ab4526a375 100644 --- a/static/zwolle/src/Ampersand/Core/Relation.php +++ b/static/zwolle/src/Ampersand/Core/Relation.php @@ -147,7 +147,7 @@ public function __construct($relationDef){ if ($conj->isSigConj()) $this->affectedSigConjuncts[] = $conj; if ($conj->isInvConj()) $this->affectedInvConjuncts[] = $conj; - if (!$conj->isSigConj() && !$conj->isInvConj()) $this->logger->warning("Affected conjunct '{$conj->id}' (specified for relation '{$this->__toString()}') is not part of an invariant or signal rule"); + // if (!$conj->isSigConj() && !$conj->isInvConj()) $this->logger->warning("Affected conjunct '{$conj->id}' (specified for relation '{$this->__toString()}') is not part of an invariant or signal rule"); } // Specify mysql table information diff --git a/static/zwolle/src/Ampersand/Database/Database.php b/static/zwolle/src/Ampersand/Database/Database.php index 8a33262381..b7bfba92ce 100644 --- a/static/zwolle/src/Ampersand/Database/Database.php +++ b/static/zwolle/src/Ampersand/Database/Database.php @@ -331,42 +331,34 @@ public function addAtomToConcept($atom){ // This function is under control of transaction check! if (!isset($this->transaction)) $this->startTransaction(); + + // Get table properties + $conceptTableInfo = $atom->concept->getConceptTableInfo(); + $conceptTable = $conceptTableInfo->name; + $conceptCols = $conceptTableInfo->getCols(); // Concept are registered in multiple cols in case of specializations. We insert the new atom in every column. - // If $atomId is not in $concept - if(!$this->atomExists($atom)){ - - // Get table properties - $conceptTableInfo = $atom->concept->getConceptTableInfo(); - $conceptTable = $conceptTableInfo->name; - $conceptCols = $conceptTableInfo->getCols(); // Concept are registered in multiple cols in case of specializations. We insert the new atom in every column. - - // Create query string: ``, ``, etc - $allConceptCols = '`' . implode('`, `', $conceptTableInfo->getColNames()) . '`'; - - - // Create query string: '', 'idEsc); - $allValues = "'".implode("', '", $atomIdsArray)."'"; - - foreach($conceptCols as $col) $str .= ", `$col->name` = '{$atom->idEsc}'"; - $duplicateStatement = substr($str, 1); - - $this->Exe("INSERT INTO `$conceptTable` ($allConceptCols) VALUES ($allValues)" - ." ON DUPLICATE KEY UPDATE $duplicateStatement"); - - // Check if query resulted in an affected row - if($this->db_link->affected_rows == 0) throw new Exception ("Oops.. something went wrong. No record inserted in Database::addAtomToConcept({$atom->__toString()})", 500); - - $this->addAffectedConcept($atom->concept); // add concept to affected concepts. Needed for conjunct evaluation. - - $this->logger->debug("Atom '{$atom->__toString()}' added to database"); - - Hooks::callHooks('postDatabaseAddAtomToConceptInsert', get_defined_vars()); - }else{ - $this->logger->debug("Atom '{$atom->__toString()}' already exists in database"); - - Hooks::callHooks('postDatabaseAddAtomToConceptSkip', get_defined_vars()); - } + // Create query string: ``, ``, etc + $allConceptCols = '`' . implode('`, `', $conceptTableInfo->getColNames()) . '`'; + + + // Create query string: '', 'idEsc); + $allValues = "'".implode("', '", $atomIdsArray)."'"; + + foreach($conceptCols as $col) $str .= ", `$col->name` = '{$atom->idEsc}'"; + $duplicateStatement = substr($str, 1); + + $this->Exe("INSERT INTO `$conceptTable` ($allConceptCols) VALUES ($allValues)" + ." ON DUPLICATE KEY UPDATE $duplicateStatement"); + + // Check if query resulted in an affected row + if($this->db_link->affected_rows == 0) throw new Exception ("Oops.. something went wrong. No record inserted in Database::addAtomToConcept({$atom->__toString()})", 500); + + $this->addAffectedConcept($atom->concept); // add concept to affected concepts. Needed for conjunct evaluation. + + $this->logger->debug("Atom '{$atom->__toString()}' added to database"); + + Hooks::callHooks('postDatabaseAddAtomToConceptInsert', get_defined_vars()); } /** @@ -561,7 +553,7 @@ function deleteAtom($atom){ // Delete atom from relation tables where atom is mentioned as src or tgt atom foreach (Relation::getAllRelations() as $relation){ - if(($tableName = $relation->getMysqlTable()->name) == $conceptTable->name) continue; // Skip this relation, row in table is already deleted + $tableName = $relation->getMysqlTable()->name; $cols = array(); if($relation->srcConcept->inSameClassificationTree($concept)) $cols[] = $relation->getMysqlTable()->srcCol(); diff --git a/static/zwolle/src/Ampersand/Interfacing/InterfaceObject.php b/static/zwolle/src/Ampersand/Interfacing/InterfaceObject.php index bfb96b46d8..d24585113e 100644 --- a/static/zwolle/src/Ampersand/Interfacing/InterfaceObject.php +++ b/static/zwolle/src/Ampersand/Interfacing/InterfaceObject.php @@ -266,7 +266,7 @@ public function __toString() { * @return boolean */ public function isProp(){ - return is_null($this->relation) ? false : $this->relation->isProp; + return is_null($this->relation) ? false : ($this->relation->isProp && !$this->isIdent); } /** @@ -280,15 +280,14 @@ public function isRef(){ /** * * @param Atom $atom - * @param boolean $isRef specifies if $this interface is used as reference in another subinterface + * @return void */ - public function setSrcAtom($atom, $isRef = false){ + public function setSrcAtom($atom){ // Check if atom can be used as source for this interface if(!in_array($atom->concept, $this->srcConcept->getGeneralizationsIncl())) throw new Exception ("Atom '{$atom->__toString()}' does not match source concept [{$this->srcConcept->name}] or any of its generalizations. Interface path: '{$this->path}'", 500); $this->srcAtom = $atom; - $this->path = $isRef ? $this->srcAtom->path : $this->srcAtom->path . '/' . $this->id; - + $this->path = $this->srcAtom->path . '/' . $this->id; } public function getSubinterface($ifcId){ @@ -305,7 +304,7 @@ public function getSubinterfaceByLabel($ifcLabel){ } private function getSubinterfaces(){ - if(is_null($this->refInterfaceId)) return $this->subInterfaces; + if(!$this->isRef()) return $this->subInterfaces; else return self::getInterface($this->refInterfaceId)->getSubinterfaces(); } @@ -325,7 +324,9 @@ public function atom($atomId){ $atom = new Atom($atomId, $this->tgtConcept->name, $this); // Check if tgtAtom is part of tgtAtoms of interface - if(in_array($atom->idEsc, $this->getTgtAtomIds())) $this->tgtAtom = $atom; + if(array_reduce($this->getTgtAtoms(), function($carry, $tgtAtom) use ($atom){ + return $carry || ($tgtAtom->id == $atom->id); + }, false)) $this->tgtAtom = $atom; // Check if atom does not exist and if it may be created here elseif(!$atom->atomExists() && $this->crudC){ @@ -348,20 +349,53 @@ public function atom($atomId){ * *************************************************************************************************/ + /** + * Returns query to get target atoms for this interface + * @param Atom $srcAtom atom to take as source atom for this interface expression query + * @return string + */ + private function getQuery($srcAtom){ + if(strpos($this->query, '_SRCATOM') !== false){ + $query = str_replace('_SRCATOM', $srcAtom->idEsc, $this->query); + $this->logger->debug("#426 Faster query because subquery saved by _SRCATOM placeholder"); + }else{ + $query = "SELECT DISTINCT * FROM ({$this->query}) AS `results` WHERE `src` = '{$srcAtom->idEsc}' AND `tgt` IS NOT NULL"; + } + return $query; + } + /** - * Returns list of target atom ids given the srcAtom of this interface object + * Returns list of target atoms given the srcAtom for this interface * @throws Exception - * @return array - */ - private function getTgtAtomIds(){ - $query = "SELECT DISTINCT `tgt` FROM ({$this->query}) AS `results` WHERE `src` = '{$this->srcAtom->idEsc}' AND `tgt` IS NOT NULL"; - $tgtAtomIds = array_column((array)$this->database->Exe($query), 'tgt'); - - // Integrity check - if($this->isUni && (count($tgtAtomIds) > 1)) throw new Exception("Univalent (sub)interface returns more than 1 resource: '{$this->path}'", 500); - - return (array)$tgtAtomIds; - } + * @return Atom[] [description] + */ + public function getTgtAtoms(){ + + $tgtAtoms = array(); + try { + // Try to get tgt atom from srcAtom query data (in case of uni relation in same table) + $tgt = $this->srcAtom->getQueryData('ifc_' . $this->id); // column is prefixed with ifc_ + $this->logger->debug("#217 One query saved due to reusing data from source atom"); + if(!is_null($tgt)) $tgtAtoms[] = new Atom($tgt, $this->tgtConcept->name, $this); + + }catch (Exception $e) { + // Column not defined, perform sub interface query + if($e->getCode() == 1001){ // TODO: fix this 1001 exception code handling by proper construct + $data = (array)$this->database->Exe($this->getQuery($this->srcAtom)); + + // Integrity check + if($this->isUni && (count($data) > 1)) throw new Exception("Univalent (sub)interface returns more than 1 resource: '{$this->path}'", 500); + + foreach ($data as $row) { + $tgtAtoms[] = new Atom($row['tgt'], $this->tgtConcept->name, $this, $row); + } + }else{ + throw $e; + } + } + + return $tgtAtoms; + } /** * Returns the content of this interface given the srcAtom of this interface object @@ -382,28 +416,26 @@ public function getContent($options = array(), $recursionArr = array(), $depth = $options['inclLinktoData'] = isset($options['inclLinktoData']) ? filter_var($options['inclLinktoData'], FILTER_VALIDATE_BOOLEAN) : false; if(isset($options['depth']) && is_null($depth)) $depth = $options['depth']; // initialize depth, if specified in options array - // Initialize result array - if($this->tgtConcept->isObject && !$this->isProp()) $result = array(); // return array if tgtConcept is an object (except properties), even if result is empty - elseif(!$this->isUni) $result = array(); // return array for non-univalent interfaces - else $result = null; // else (i.e. properties and univalent scalars) - - // Loop over target atoms - foreach ($this->getTgtAtomIds() as $tgtAtomId){ - - $tgtAtom = new Atom($tgtAtomId, $this->tgtConcept->name, $this); + // Initialize result + if($this->isProp() && empty($this->getSubinterfaces())) $result = false; // leaf properties are false by default (overwritten when tgt atom found) + elseif($this->tgtConcept->isObject) $result = array(); // array if tgtConcept is an object, even if result is empty + elseif(!$this->isUni) $result = array(); // array for non-univalent interfaces + else $result = null; // else (i.e. univalent scalars) + + // Loop over target atoms + foreach ($this->getTgtAtoms() as $tgtAtom){ // Reference to other interface - if(!is_null($this->refInterfaceId) + if($this->isRef() && (!$this->isLinkTo || $options['inclLinktoData']) // Include content is interface is not LINKTO or inclLinktoData is explicitly requested via the options && (!is_null($depth) || !in_array($tgtAtom->id, (array)$recursionArr[$this->refInterfaceId]))){ // Prevent infinite loops - $ifc = $tgtAtom->ifc($this->refInterfaceId, true); + $ifc = $tgtAtom->ifc($this->refInterfaceId); // Skip ref interface if not given read rights to prevent Exception if(!$ifc->crudR) break; // breaks foreach loop - foreach($ifc->getTgtAtomIds() as $refTgtAtomId){ - $refTgtAtom = new Atom($refTgtAtomId, $ifc->tgtConcept->name, $ifc); + foreach($ifc->getTgtAtoms() as $refTgtAtom){ // Add target atom to $recursionArr to prevent infinite loops if($options['inclLinktoData']) $recursionArr[$this->refInterfaceId][] = $refTgtAtom->id; @@ -426,9 +458,9 @@ public function getContent($options = array(), $recursionArr = array(), $depth = // Object if($this->tgtConcept->isObject){ - // Property leaf: a property at a leaf of a (sub)interface is presented as true/false - if($this->isProp() && !$this->isIdent && empty($this->getSubinterfaces())){ - $result = !is_null($tgtAtom->id); // convert NULL into false and everything else in true + // Property leaf: a property at a leaf of a (sub)interface is presented as true/false (false by default, see init above) + if($this->isProp() && empty($this->getSubinterfaces())){ + $result = true; // convert into true // Regular object, with or without subinterfaces }else{ @@ -495,9 +527,9 @@ public function create($data, $options = array()){ $newAtom->addAtom(); // Special case for CREATE in I[Concept] interfaces - if($this->srcAtom->id === '_NEW_'){ + if($this->srcAtom->id === '_NEW'){ $this->srcAtom->setId($newAtom->id); - $this->path = str_replace('_NEW_', $newAtom->getJsonRepresentation(), $this->path); + $this->path = str_replace('_NEW', $newAtom->getJsonRepresentation(), $this->path); } // If interface expression is a relation, also add tuple(this, newAtom) in this relation @@ -576,6 +608,7 @@ public function delete(){ /** * Replace (src,tgt) tuple by (src,tgt') in relation provided in this interface + * @var array $patch * @throws Exception * @return void */ @@ -591,7 +624,7 @@ public function doPatchReplace($patch){ $value = $patch['value']; // Interface is property - if($this->isProp() && !$this->isIdent){ + if($this->isProp()){ // Throw error when patch value is something else then true, false or null if(!(is_bool($value) || is_null($value))) throw new Exception("Interface '{$this->path}' is property, boolean expected, non-boolean provided"); @@ -619,6 +652,7 @@ public function doPatchReplace($patch){ /** * Add (src,tgt) tuple in relation provided in this interface + * @var array $patch * @throws Exception * @return void */ @@ -632,7 +666,7 @@ public function doPatchAdd($patch){ $tgtAtom = new Atom($patch['value'], $this->tgtConcept->name); // Interface is property - if($this->isProp() && !$this->isIdent){ + if($this->isProp()){ // Properties must be treated as a 'replace', so not handled here throw new Exception("Cannot patch add for property '{$this->path}'. Use patch replace instead", 500); @@ -655,12 +689,41 @@ public function doPatchAdd($patch){ } } - /** - * Function not implemented. Use Atom->doPatchRemove() method instead. - * @throws Exception - */ - public function doPatchRemove(){ - throw new Exception ("Cannot patch remove from '{$this->path}'. Missing resource identifier", 405); + /** + * Remove (src,tgt) tuple from relation provided in $this->parentIfc + * @var array $patch + * @throws Exception + * @return void + */ + public function doPatchRemove($patch){ + // CRUD check + if(!$this->crudU) throw new Exception("Update is not allowed for path '{$this->path}'", 403); + + // Check if patch value is provided + if(!array_key_exists('value', $patch)) throw new Exception ("Cannot patch remove. No 'value' specfied in '{$this->path}'", 400); + + $tgtAtom = new Atom($patch['value'], $this->tgtConcept->name); + + // Interface is property + if($this->isProp()){ + // Properties must be treated as a 'replace', so not handled here + throw new Exception("Cannot patch remove for property '{$this->path}'. Use patch replace instead", 500); + + // Interface is a relation to an object + }elseif($this->tgtConcept->isObject){ + + $this->relation->deleteLink($this->srcAtom, $tgtAtom, $this->relationIsFlipped); + + // Interface is a relation to a scalar (i.e. not an object) + }elseif(!$this->tgtConcept->isObject){ + if($this->isUni) throw new Exception("Cannot patch remove for univalent interface {$this->path}. Use patch replace instead", 500); + + $this->relation->deleteLink($this->srcAtom, $tgtAtom, $this->relationIsFlipped); + + }else{ + throw new Exception ("Unknown patch remove. Please contact the application administrator", 500); + } + } /************************************************************************************************** @@ -669,6 +732,15 @@ public function doPatchRemove(){ * *************************************************************************************************/ + /** + * Returns if interface exists + * @var string $ifcId Identifier of interface + * @return boolean + */ + public static function interfaceExists($ifcId){ + return array_key_exists($ifcId, self::getAllInterfaces()); + } + /** * Returns toplevel interface object * @param string $ifcId diff --git a/static/zwolle/src/Ampersand/Interfacing/ViewSegment.php b/static/zwolle/src/Ampersand/Interfacing/ViewSegment.php index b47c9c3cfd..6e3c222254 100644 --- a/static/zwolle/src/Ampersand/Interfacing/ViewSegment.php +++ b/static/zwolle/src/Ampersand/Interfacing/ViewSegment.php @@ -50,7 +50,6 @@ class ViewSegment { */ public $expSQL; - /** * Constructor of view segments * @param array $viewSegmentDef diff --git a/static/zwolle/src/Ampersand/Rule/Conjunct.php b/static/zwolle/src/Ampersand/Rule/Conjunct.php index ed6a4a5c1b..c9edd88f2a 100644 --- a/static/zwolle/src/Ampersand/Rule/Conjunct.php +++ b/static/zwolle/src/Ampersand/Rule/Conjunct.php @@ -179,7 +179,7 @@ public static function getConjunct($conjId){ * Returns array with all conjunct objects * @return Conjunct[] */ - private static function getAllConjuncts(){ + public static function getAllConjuncts(){ if(!isset(self::$allConjuncts)) self::setAllConjuncts(); return self::$allConjuncts; diff --git a/static/zwolle/src/Ampersand/Rule/Violation.php b/static/zwolle/src/Ampersand/Rule/Violation.php index 12b6c24762..712aed61b2 100644 --- a/static/zwolle/src/Ampersand/Rule/Violation.php +++ b/static/zwolle/src/Ampersand/Rule/Violation.php @@ -101,7 +101,7 @@ public function getViolationMessage(){ } // If empty array of strings (i.e. no violation segments defined), use default violation representation: ',' - $this->message = empty($strArr) ? "{$this->src->label},{$this->tgt->label}" : implode($strArr); + $this->message = empty($strArr) ? "{$this->src->getLabel()},{$this->tgt->getLabel()}" : implode($strArr); return $this->message; } diff --git a/static/zwolle/src/Ampersand/Session.php b/static/zwolle/src/Ampersand/Session.php index a9a3544fca..c615ab635b 100644 --- a/static/zwolle/src/Ampersand/Session.php +++ b/static/zwolle/src/Ampersand/Session.php @@ -49,14 +49,24 @@ class Session { private $sessionRoles; // when login enabled: all roles for loggedin user, otherwise all roles /** - * - * @var InterfaceObject[] + * @var InterfaceObject[] $accessibleInterfaces */ private $accessibleInterfaces = array(); // when login enabled: all interfaces for sessionRoles, otherwise: interfaces for active roles - private $ifcsOfActiveRoles = array(); // interfaces for active roles - public $rulesToMaintain = array(); // rules that are maintained by active roles - private $sessionAccountId; + /** + * @var InterfaceObject[] $ifcsOfActiveRoles + */ + private $ifcsOfActiveRoles = array(); // interfaces for active roles + + /** + * @var array $rulesToMaintain + */ + public $rulesToMaintain = array(); // rules that are maintained by active roles + + /** + * @var Atom|false $sessionAccount + */ + private $sessionAccount; private static $_instance = null; // Needed for singleton() pattern of Session class @@ -176,26 +186,25 @@ private function activateRole(&$role){ } public function getSessionRoles(){ - if(isset($this->sessionRoles)){ - return $this->sessionRoles; - }else{ + if(!isset($this->sessionRoles)){ + $sessionRoles = array(); if(Config::get('loginEnabled')){ - $sessionRoleLabels = array(); - $sessionRoles = array(); - - $session = new Atom(session_id(), 'SESSION'); - $options = array('metaData' => false, 'navIfc' => true); - $sessionRoleLabels = array_column((array)$session->ifc('SessionRoles')->getContent($options), '_id_'); - + $this->logger->debug("Getting interface 'SessionRoles' for {$this->sessionAtom->__toString()}"); + $sessionRoleLabels = array_map( + function($o){ + return $o->id; + }, $this->sessionAtom->ifc('SessionRoles')->getTgtAtoms() + ); foreach(Role::getAllRoles() as $role){ if(in_array($role->label, $sessionRoleLabels)) $sessionRoles[] = $role; } }else{ $sessionRoles = Role::getAllRoles(); } - - return $this->sessionRoles = $sessionRoles; + + $this->sessionRoles = $sessionRoles; } + return $this->sessionRoles; } /** @@ -210,67 +219,51 @@ public function getActiveRoles(){ return $activeRoles; } - private function setSessionAccount(){ - if(!Config::get('loginEnabled')){ - $this->sessionAccountId = false; - - }else{ - $session = new Atom(session_id(), 'SESSION'); - $sessionAccounts = array_column((array)$session->ifc('SessionAccount')->getContent(), '_id_'); - - if(count($sessionAccounts) > 1) throw new Exception('Multiple session users found. This is not allowed.', 500); - if(empty($sessionAccounts)){ - $this->sessionAccountId = false; - }else{ - $this->sessionAccountId = current($sessionAccounts); - $this->logger->debug("Session user set to '{$this->sessionAccountId}'"); - } - } - } - - public function getSessionAccountId(){ - if(!Config::get('loginEnabled')){ - return 'SYSTEM'; - - }else{ - if(!isset($this->sessionAccountId)) $this->setSessionAccount(); - - if($this->sessionAccountId === false){ - return $_SERVER['REMOTE_ADDR']; - }else{ - return $this->sessionAccountId; - } - } - } - + public function getSessionAccount(){ + if(!isset($this->sessionAccount)){ + if(!Config::get('loginEnabled')){ + $this->sessionAccount = false; + $this->logger->debug("Set sessionAccount: login not enabled"); + }else{ + $this->logger->debug("Getting interface 'SessionAccount' for {$this->sessionAtom->__toString()}"); + $sessionAccounts = $this->sessionAtom->ifc('SessionAccount')->getTgtAtoms(); + + if(count($sessionAccounts) > 1) throw new Exception('Multiple session users found. This is not allowed.', 500); + if(empty($sessionAccounts)){ + $this->sessionAccount = false; + $this->logger->debug("Set sessionAccount: no session account"); + }else{ + $this->sessionAccount = current($sessionAccounts); + $this->logger->debug("Set sessionAccount: '{$this->sessionAccount->id}'"); + } + } + } + return $this->sessionAccount; + } + public function sessionUserLoggedIn(){ if(!Config::get('loginEnabled')){ return false; - + }elseif($this->getSessionAccount() !== false){ + return true; }else{ - if(!isset($this->sessionAccountId)) $this->setSessionAccount(); - - if($this->sessionAccountId === false){ - return false; - }else{ - return true; - } + return false; } } public function getSessionVars(){ - if(!Config::get('loginEnabled')){ - return false; - - }else{ + if(InterfaceObject::interfaceExists('SessionVars')){ try { + $this->logger->debug("Getting interface 'SessionVars' for {$this->sessionAtom->__toString()}"); $options = array('metaData' => false, 'navIfc' => false); return $this->sessionAtom->ifc('SessionVars')->getContent($options); }catch (Exception $e){ + $this->logger->warning("Error while getting SessionVars interface: " . $e->getMessage()); return false; - } - - } + } + }else{ + return false; + } } public function getInterfacesForNavBar(){ diff --git a/static/zwolle/src/defaultSettings.php b/static/zwolle/src/defaultSettings.php index 0ec3c051a1..0a237de971 100644 --- a/static/zwolle/src/defaultSettings.php +++ b/static/zwolle/src/defaultSettings.php @@ -45,6 +45,7 @@ Config::set('checkDefaultPopulation', 'transactions', true); // For debugging set to false (commits the initial population, regardless if it has invariant violations) Config::set('ignoreInvariantViolations', 'transactions', false); // for debugging can be set to true (transactions will be committed regardless off invariant violations) Config::set('interfaceAutoCommitChanges', 'transactions', true); // specifies whether changes in an interface are automatically commited when allowed (all invariants hold) + Config::set('interfaceAutoSaveChanges', 'transactions', true); // specifies whether changes in interface are directly communicated (saved) to server Config::set('interfaceCacheGetCalls', 'transactions', false); // specifies whether GET calls should be cached by the frontend (e.g. angular) application // Default CRUD rights for interfaces diff --git a/static/zwolle/templates/controllers/controller.js b/static/zwolle/templates/controllers/controller.js index b832818a62..4d80fd0048 100644 --- a/static/zwolle/templates/controllers/controller.js +++ b/static/zwolle/templates/controllers/controller.js @@ -6,7 +6,7 @@ Generated by $ampersandVersionStr$ INTERFACE "$interfaceName$" : $expAdl$ :: $source$ * $target$ ($if(!isRoot)$non-$endif$root interface) Roles: [$roles;separator=", "$] $endif$*/ -AmpersandApp.controller('$interfaceName$Controller', function (\$scope, \$rootScope, \$route, \$routeParams, Restangular, \$location, \$timeout) { +AmpersandApp.controller('$interfaceName$Controller', function (\$scope, \$rootScope, \$route, \$routeParams, Restangular, \$location, \$timeout, \$localStorage) { if(typeof \$routeParams.resourceId != 'undefined') resourceId = \$routeParams.resourceId; else resourceId = \$scope.\$sessionStorage.session.id; @@ -17,10 +17,11 @@ AmpersandApp.controller('$interfaceName$Controller', function (\$scope, \$rootSc *********************************************************************************************/ // Set requested resource - if(\$routeParams['new'] && '$source$' == '$target$') resourceId = '_NEW_'; // Set resourceId to special '_NEW_' value in case new resource must be created + if(\$routeParams['new'] && '$source$' == '$target$') resourceId = '_NEW'; // Set resourceId to special '_NEW' value in case new resource must be created \$scope.resource = Restangular.one('resources').one('$source$', resourceId); // BaseURL to the API is already configured in AmpersandApp.js (i.e. 'http://pathToApp/api/v1/') \$scope.resource['_path_'] = '/resources/$source$/' + resourceId; \$scope.resource['_ifcEntryResource_'] = true; + \$scope.updatedResources = []; // contains list with updated resource objects in this interface. Used to check if there are uncommmitted changes // Create new resource and add data to \$scope.resource['$interfaceName$'] if(\$routeParams['new']){ @@ -84,26 +85,34 @@ AmpersandApp.controller('$interfaceName$Controller', function (\$scope, \$rootSc }; // Function to send all patches - \$scope.saveResource = function(resource, requestType){ + \$scope.saveResource = function(resource, requestType, save){ requestType = requestType || \$rootScope.defaultRequestType; // set requestType. This does not work if you want to pass in a falsey value i.e. false, null, undefined, 0 or "" + save = save || \$localStorage.switchAutoSave; + + // Add resource to \$scope.updatedResources + if(\$scope.updatedResources.indexOf(resource) === -1) \$scope.updatedResources.push(resource); - if(!Array.isArray(resource['_loading_'])) resource['_loading_'] = new Array(); - resource['_loading_'].push( // shows loading indicator - Restangular.one(resource['_path_']) - .patch(resource['_patchesCache_'], {'requestType' : requestType, 'topLevelIfc' : '$interfaceName$'}) - .then(function(data) { - // Update resource data - if(resource['_ifcEntryResource_']){ - resource['$interfaceName$'] = data.content; - //tlResource = resource; - } - else resource = \$.extend(resource, data.content); - - // Update visual feedback (notifications and buttons) - \$rootScope.updateNotifications(data.notifications); - processResponse(resource, data.invariantRulesHold, data.requestType); - }) - ); + if(save){ + if(!Array.isArray(resource['_loading_'])) resource['_loading_'] = new Array(); + resource['_loading_'].push( // shows loading indicator + Restangular.one(resource['_path_']) + .patch(resource['_patchesCache_'], {'requestType' : requestType, 'topLevelIfc' : '$interfaceName$'}) + .then(function(data) { + // Update resource data + if(resource['_ifcEntryResource_']){ + resource['$interfaceName$'] = data.content; + //tlResource = resource; + } + else resource = \$.extend(resource, data.content); + + // Update visual feedback (notifications and buttons) + \$rootScope.updateNotifications(data.notifications); + processResponse(resource, data.invariantRulesHold, data.requestType); + }) + ); + }else{ + processResponse(resource, true, 'feedback'); + } }; /********************************************************************************************** @@ -164,10 +173,10 @@ AmpersandApp.controller('$interfaceName$Controller', function (\$scope, \$rootSc // Construct path pathLength = patchResource['_path_'].length; - path = resource['_path_'].substring(pathLength) + '/' + ifc + '/' + value; + path = resource['_path_'].substring(pathLength) + '/' + ifc; // Construct patch - patches = [{ op : 'remove', path : path}]; + patches = [{ op : 'remove', path : path, value: value}]; $if(verbose)$console.log(patches);$endif$ // Patch! @@ -248,12 +257,9 @@ AmpersandApp.controller('$interfaceName$Controller', function (\$scope, \$rootSc // TODO: change check on showSaveButton to check for unsaved patches \$scope.\$on("\$locationChangeStart", function(event, next, current){ $if(verbose)$console.log("location changing to:" + next);$endif$ - checkRequired = false; // default - for(var item in \$scope.showSaveButton) { // iterate over all properties (resourceIds) in showSaveButton object - if(\$scope.showSaveButton.hasOwnProperty( item ) ) { // only checks its own properties, not inherited ones - if(\$scope.showSaveButton[item] == true) checkRequired = true; // if item is not saved, checkRequired before location change - } - } + checkRequired = \$scope.updatedResources.reduce(function(prev, item, index, arr){ + return prev || item['_patchesCache_'].length; + }, false); if(checkRequired){ // if checkRequired (see above) confirmed = confirm("You have unsaved edits. Do you wish to leave?"); diff --git a/static/zwolle/templates/views/Box-COLS.html b/static/zwolle/templates/views/Box-COLS.html index 85b6374e5f..95cc451566 100644 --- a/static/zwolle/templates/views/Box-COLS.html +++ b/static/zwolle/templates/views/Box-COLS.html @@ -16,7 +16,7 @@ $subObj.subObjContents$ }$ $if(isRoot)$ - + $endif$$if(crudU)$ $endif$$if(crudD)$ $endif$ diff --git a/static/zwolle/templates/views/Box-COLSNL.html b/static/zwolle/templates/views/Box-COLSNL.html index 0eba17f987..a96e572482 100644 --- a/static/zwolle/templates/views/Box-COLSNL.html +++ b/static/zwolle/templates/views/Box-COLSNL.html @@ -7,7 +7,7 @@ $subObj.subObjContents$ }$ $if(isRoot)$ - + $endif$$if(crudU)$ $endif$$if(crudD)$ $endif$ diff --git a/static/zwolle/templates/views/Box-HCOLS.html b/static/zwolle/templates/views/Box-HCOLS.html index 1f910aca5e..77666e469a 100644 --- a/static/zwolle/templates/views/Box-HCOLS.html +++ b/static/zwolle/templates/views/Box-HCOLS.html @@ -16,7 +16,7 @@ $subObj.subObjContents$ }$ $if(isRoot)$ - + $endif$$if(crudU)$ $endif$$if(crudD)$ $endif$ diff --git a/static/zwolle/templates/views/Box-HROWS.html b/static/zwolle/templates/views/Box-HROWS.html index 0a577cd895..29ac0feba1 100644 --- a/static/zwolle/templates/views/Box-HROWS.html +++ b/static/zwolle/templates/views/Box-HROWS.html @@ -2,7 +2,7 @@ $endif$
    $if(isRoot)$
    - + $if(crudD)$ + $if(crudD)$ + $if(crudD)$