expexp
Version:
The express model io and express model and data representation.
1,553 lines (1,552 loc) • 53.5 kB
JSON
{
"t": "scm",
"id": "USER_AND_RELATED_SCHEMA",
"refs": null,
"csts": null,
"scts": {
"t": "a_scm_scts",
"s": [
"units/TpRealBacked",
"units/TpIntegerGreaterThanZero",
"units/TpLabel",
"units/TpCompass",
"units/TpDirection",
"uUsers/TpTotallyMixedSomething",
"uUsers/TpThingSet",
"uUsers/TpText",
"uUsers/TpNumberBacked",
"uUsers/TpLogicalBacked",
"uUsers/TpGuid",
"uUsers/TpDate",
"uUsers/TpBooleanBacked",
"uUsers/TpBinaryBacked",
{
"t": "typ",
"id": "TpInt",
"spc": {
"t": "t_int"
},
"whrs": null
},
{
"t": "typ",
"id": "TpIdent",
"spc": {
"t": "t_str",
"bds": {
"t": "bds",
"to": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "int",
"val": 63
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"fr": null
}
},
"whrs": null
},
{
"t": "typ",
"id": "TpPhoneType",
"spc": {
"t": "enm",
"xtd": false,
"vals": {
"t": "a_enm_vals",
"s": [
{
"t": "evl",
"id": "FAX"
},
{
"t": "evl",
"id": "PHONE"
},
{
"t": "evl",
"id": "MOBILE"
},
{
"t": "evl",
"id": "OTHER"
}
]
}
},
"whrs": null
},
{
"t": "typ",
"id": "TpHiddenMixedSomething",
"spc": {
"t": "any_ref",
"id": "TpLegalPerson"
},
"whrs": null
},
{
"t": "ntt",
"id": "NttWithTotallyMixedSomething",
"abs": false,
"cnd": null,
"sprs": null,
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "choice"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpTotallyMixedSomething"
}
}
]
},
"drvs": null,
"whrs": null,
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttWithOptionalTotallyMixedSomething",
"abs": false,
"cnd": null,
"sprs": null,
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "choice"
}
]
},
"opt": true,
"typ": {
"t": "any_ref",
"id": "TpTotallyMixedSomething"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "noneOpt"
}
]
},
"opt": false,
"typ": {
"t": "t_bol"
}
}
]
},
"drvs": null,
"whrs": null,
"unqs": null,
"invs": null
},
"uUsers/NttPerson",
"uUsers/NttOrganisation",
{
"t": "typ",
"id": "TpActionType",
"spc": {
"t": "enm",
"xtd": false,
"vals": {
"t": "a_enm_vals",
"s": [
{
"t": "evl",
"id": "LEAD"
},
{
"t": "evl",
"id": "OPERATE"
},
{
"t": "evl",
"id": "HELP"
},
{
"t": "evl",
"id": "SPONSOR"
},
{
"t": "evl",
"id": "DIVERSE"
}
]
}
},
"whrs": null
},
{
"t": "typ",
"id": "TpLegalPerson",
"spc": {
"t": "slc",
"xtd": false,
"refs": {
"t": "a_slc_refs",
"s": [
{
"t": "any_ref",
"id": "NttOrganisation"
},
{
"t": "any_ref",
"id": "NttPerson"
},
{
"t": "any_ref",
"id": "NttOccupation"
}
]
},
"nttOnly": false
},
"whrs": null
},
{
"t": "ntt",
"id": "NttAction",
"abs": false,
"cnd": null,
"sprs": null,
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "acType"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpActionType"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "otherType"
}
]
},
"opt": true,
"typ": {
"t": "any_ref",
"id": "TpLabel"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "desc"
}
]
},
"opt": true,
"typ": {
"t": "any_ref",
"id": "TpText"
}
}
]
},
"drvs": null,
"whrs": {
"t": "a_ntt_whrs",
"s": [
{
"t": "whr",
"id": "predefinedOrOtherType",
"xpr": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "par",
"xpr": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "any_ref",
"id": "acType"
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"op": {
"t": "o_sxp",
"id": "ne"
},
"arg1": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "any_ref",
"id": "TpActionType"
},
"qals0": {
"t": "a_qals",
"s": [
{
"t": "any_ref",
"id": "DIVERSE"
}
]
},
"arg1": null,
"qals1": null
}
]
}
]
}
}
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
},
{
"t": "o_trm",
"id": "oor"
},
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "par",
"xpr": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "par",
"xpr": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "any_ref",
"id": "acType"
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"op": {
"t": "o_sxp",
"id": "eq"
},
"arg1": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "any_ref",
"id": "TpActionType"
},
"qals0": {
"t": "a_qals",
"s": [
{
"t": "any_ref",
"id": "DIVERSE"
}
]
},
"arg1": null,
"qals1": null
}
]
}
]
}
}
},
"qals0": null,
"arg1": null,
"qals1": null
},
{
"t": "o_ftr",
"id": "and"
},
{
"t": "ftr",
"arg0": {
"t": "bif",
"id": "xst",
"vals": {
"t": "a_bif_vals",
"s": [
{
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "bic",
"id": "slf"
},
"qals0": {
"t": "a_qals",
"s": [
{
"t": "any_ref",
"id": "otherType"
}
]
},
"arg1": null,
"qals1": null
}
]
}
]
},
"op": null,
"arg1": null
}
]
}
},
"qals0": null,
"arg1": null,
"qals1": null
},
{
"t": "o_ftr",
"id": "and"
},
{
"t": "ftr",
"arg0": {
"t": "par",
"xpr": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "int",
"val": 0
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"op": {
"t": "o_sxp",
"id": "lt"
},
"arg1": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "bif",
"id": "len",
"vals": {
"t": "a_bif_vals",
"s": [
{
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "bic",
"id": "slf"
},
"qals0": {
"t": "a_qals",
"s": [
{
"t": "any_ref",
"id": "otherType"
}
]
},
"arg1": null,
"qals1": null
}
]
}
]
},
"op": null,
"arg1": null
}
]
}
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
}
}
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"op": null,
"arg1": null
}
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"op": null,
"arg1": null
}
}
]
},
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttOccupation",
"abs": false,
"cnd": null,
"sprs": null,
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "who"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "NttPerson"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "inWhat"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "NttOrganisation"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "doing"
}
]
},
"opt": true,
"typ": {
"t": "set",
"bds": {
"t": "bds",
"fr": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "int",
"val": 1
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"to": null
},
"spc": {
"t": "any_ref",
"id": "NttAction"
}
}
}
]
},
"drvs": null,
"whrs": null,
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttTeam",
"abs": false,
"cnd": null,
"sprs": null,
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "name"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpLabel"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "org"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "NttOrganisation"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "members"
}
]
},
"opt": false,
"typ": {
"t": "lst",
"bds": {
"t": "bds",
"fr": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "int",
"val": 1
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"to": null
},
"unq": false,
"spc": {
"t": "any_ref",
"id": "NttPerson"
}
}
}
]
},
"drvs": {
"t": "a_ntt_drvs",
"s": [
{
"t": "drv",
"id": {
"t": "atr",
"id": "leader"
},
"typ": {
"t": "any_ref",
"id": "NttPerson"
},
"xpr": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "any_ref",
"id": "members"
},
"qals0": {
"t": "a_qals",
"s": [
{
"t": "idx_qal",
"fr": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "int",
"val": 1
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"to": null
}
]
},
"arg1": null,
"qals1": null
}
]
}
]
},
"op": null,
"arg1": null
}
}
]
},
"whrs": null,
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttRoot",
"abs": true,
"cnd": {
"t": "a_spx_spfs",
"s": [
{
"t": "a_spf_spts",
"s": [
{
"t": "a_oof_spxs",
"s": [
{
"t": "a_spx_spfs",
"s": [
{
"t": "a_spf_spts",
"s": [
{
"t": "ntt_ref",
"id": "NttBase"
}
]
}
]
}
]
}
]
}
]
},
"sprs": null,
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "id"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpIdent"
}
}
]
},
"drvs": null,
"whrs": null,
"unqs": null,
"invs": null
},
"uUsers/NttSoftware",
"uUsers/NttBase",
{
"t": "ntt",
"id": "NttThing",
"abs": false,
"cnd": {
"t": "a_spx_spfs",
"s": [
{
"t": "a_spf_spts",
"s": [
{
"t": "a_oof_spxs",
"s": [
{
"t": "a_spx_spfs",
"s": [
{
"t": "a_spf_spts",
"s": [
{
"t": "ntt_ref",
"id": "NttDevice"
}
]
}
]
}
]
}
]
}
]
},
"sprs": {
"t": "a_spr_refs",
"s": [
{
"t": "ntt_ref",
"id": "NttBase"
}
]
},
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "desc"
}
]
},
"opt": true,
"typ": {
"t": "any_ref",
"id": "TpText"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "isGood"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpLogicalBacked"
}
}
]
},
"drvs": null,
"whrs": null,
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttDevice",
"abs": false,
"cnd": null,
"sprs": {
"t": "a_spr_refs",
"s": [
{
"t": "ntt_ref",
"id": "NttThing"
}
]
},
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "nofParts"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpIntegerGreaterThanZero"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "isOn"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpBooleanBacked"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "direction"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpCompass"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "velocity"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "TpNumberBacked"
}
}
]
},
"drvs": {
"t": "a_ntt_drvs",
"s": [
{
"t": "drv",
"id": {
"t": "atr",
"id": "isGood"
},
"typ": {
"t": "any_ref",
"id": "TpLogicalBacked"
},
"xpr": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "bic",
"id": "tru"
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"op": null,
"arg1": null
}
}
]
},
"whrs": null,
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttRelates",
"abs": true,
"cnd": {
"t": "a_spx_spfs",
"s": [
{
"t": "a_spf_spts",
"s": [
{
"t": "a_oof_spxs",
"s": [
{
"t": "a_spx_spfs",
"s": [
{
"t": "a_spf_spts",
"s": [
{
"t": "ntt_ref",
"id": "NttRelCreates"
}
]
}
]
},
{
"t": "a_spx_spfs",
"s": [
{
"t": "a_spf_spts",
"s": [
{
"t": "ntt_ref",
"id": "NttRelOwns"
}
]
}
]
}
]
}
]
}
]
},
"sprs": null,
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "ones"
}
]
},
"opt": false,
"typ": {
"t": "set",
"bds": {
"t": "bds",
"fr": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "int",
"val": 1
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"to": null
},
"spc": {
"t": "any_ref",
"id": "NttBase"
}
}
}
]
},
"drvs": null,
"whrs": null,
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttRelCreates",
"abs": false,
"cnd": null,
"sprs": {
"t": "a_spr_refs",
"s": [
{
"t": "ntt_ref",
"id": "NttRelates"
}
]
},
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "creator"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "NttPerson"
}
}
]
},
"drvs": null,
"whrs": null,
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttRelOwns",
"abs": false,
"cnd": null,
"sprs": {
"t": "a_spr_refs",
"s": [
{
"t": "ntt_ref",
"id": "NttRelates"
}
]
},
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "owner"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "NttOrganisation"
}
}
]
},
"drvs": null,
"whrs": null,
"unqs": null,
"invs": null
},
{
"t": "ntt",
"id": "NttRelInvites",
"abs": false,
"cnd": null,
"sprs": null,
"atrs": {
"t": "a_ntt_atrs",
"s": [
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "host"
}
]
},
"opt": false,
"typ": {
"t": "any_ref",
"id": "NttPerson"
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "guests"
}
]
},
"opt": false,
"typ": {
"t": "set",
"bds": {
"t": "bds",
"fr": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "int",
"val": 1
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"to": null
},
"spc": {
"t": "any_ref",
"id": "NttPerson"
}
}
},
{
"t": "atr_dcl",
"ids": {
"t": "a_atr_ids",
"s": [
{
"t": "atr",
"id": "date"
}
]
},
"opt": true,
"typ": {
"t": "any_ref",
"id": "TpDate"
}
}
]
},
"drvs": null,
"whrs": {
"t": "a_ntt_whrs",
"s": [
{
"t": "whr",
"id": "avoidSelfInvitation",
"xpr": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "bif",
"id": "szf",
"vals": {
"t": "a_bif_vals",
"s": [
{
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "qry",
"var": "p",
"src": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "any_ref",
"id": "guests"
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"cnd": {
"t": "xpr",
"arg0": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "any_ref",
"id": "host"
},
"qals0": null,
"arg1": null,
"qals1": null
}
]
}
]
},
"op": {
"t": "o_sxp",
"id": "se"
},
"arg1": {
"t": "a_sxp_trms",
"s": [
{
"t": "a_trm_ftrs",
"s": [
{
"t": "ftr",
"arg0": {
"t": "any_ref",
"id": "p"
},