Created
June 18, 2017 21:11
-
-
Save kenwebb/1a99d42f91ca878b86b98f93d08e7635 to your computer and use it in GitHub Desktop.
Categorical Data IDE - AQL - Simple Complete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Sun Jun 18 2017 17:11:07 GMT-0400 (EDT)--> | |
<XholonWorkbook> | |
<Notes><![CDATA[ | |
Xholon | |
------ | |
Title: Categorical Data IDE - AQL - Simple Complete | |
Description: | |
Url: http://www.primordion.com/Xholon/gwt/ | |
InternalName: 1a99d42f91ca878b86b98f93d08e7635 | |
Keywords: | |
My Notes | |
-------- | |
June 11, 2017 | |
Use this template to create your own AQL-based workbook and app. | |
Instances follow the rules of the category and set that they belong to. | |
- if the schema specifies a foreign key or attribute, then each instance includes an equation that explicitly creates one | |
]]></Notes> | |
<_-.XholonClass> | |
<PhysicalSystem/> | |
</_-.XholonClass> | |
<xholonClassDetails> | |
</xholonClassDetails> | |
<PhysicalSystem> | |
<!-- | |
Put each statement on its own line, where possible. | |
Add a space before ":" if there is none | |
--> | |
<CatAql instances="true" schemas="true" separateSchemaInstance="true" xhcName_System="CattSystem" schemaNodeSuffix="s" schemaRoleNameNoSuffix="true" pointToSchema="true" exportGraphviz="true" exportSql="true" exportXml="true" exportYaml="true"><![CDATA[ | |
// paste your AQL code here | |
typeside Ty = literal { | |
types | |
int | |
string | |
constants | |
Ken Licorice : string | |
4 8 : int | |
} | |
schema S = literal : Ty { | |
entities | |
One | |
Two | |
Three | |
foreign_keys | |
fk1 : One -> Two | |
fk2 : Two -> Three | |
attributes | |
attr1 : One -> int | |
attr2 : Two -> string | |
attr3 : Three -> string | |
} | |
instance I = literal : S { | |
generators | |
one1 : One | |
one2 : One | |
two1 : Two | |
three1 : Three | |
equations | |
// one1 | |
one1.attr1 = 4 | |
one1.fk1 = two1 | |
// one2 | |
one2.attr1 = 8 | |
one2.fk1 = two1 | |
// two1 | |
two1.attr2 = Ken | |
two1.fk2 = three1 | |
// three1 | |
three1.attr3 = Licorice | |
} | |
]]></CatAql> | |
</PhysicalSystem> | |
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml, | |
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient> | |
</XholonWorkbook> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment