зеркало из https://github.com/microsoft/CDM.git
355 строки
8.9 KiB
JSON
355 строки
8.9 KiB
JSON
{
|
|
"$schema": "./schema.cdm.json",
|
|
"jsonSchemaSemanticVersion": "1.0.0",
|
|
"imports": [
|
|
{
|
|
"uri": "/primitives.1.0.cdm.json"
|
|
}
|
|
],
|
|
"definitions": [
|
|
{
|
|
"traitName": "means.measurement",
|
|
"extendsTrait": "means"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.age",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.code",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.color",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.density",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.distance",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.distance.inches",
|
|
"extendsTrait": "means.measurement.distance"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.distance.cm",
|
|
"extendsTrait": "means.measurement.distance"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.sequence",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.temperature",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.version",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.weight",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.currency",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.currency.cost",
|
|
"extendsTrait": "means.measurement.currency"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.currency.iSOCode",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.currency.price",
|
|
"extendsTrait": "means.measurement.currency"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.currency.type",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.currency.type.destination",
|
|
"extendsTrait": "means.measurement.currency.type"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.currency.type.source",
|
|
"extendsTrait": "means.measurement.currency.type"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.currency.revenue",
|
|
"extendsTrait": "means.measurement.currency"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.time",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.completion",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.creation",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.end",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.end.scd",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.modify",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.occurrence",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.remove",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.start",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.start.scd",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.date.target",
|
|
"extendsTrait": "means.measurement.date"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.seconds",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.minutes",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.hours",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.days",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.months",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.weeks",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.quarters",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.trimesters",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.duration.years",
|
|
"extendsTrait": "means.measurement.duration"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.probability",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.count",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.percent",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.percent.ownership",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.percent.voterright",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.range",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.range.high",
|
|
"extendsTrait": "means.measurement.range"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.range.low",
|
|
"extendsTrait": "means.measurement.range"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.rate",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.rate.type",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.size",
|
|
"extendsTrait": "means.measurement"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.size.depth",
|
|
"extendsTrait": "means.measurement.size"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.size.height",
|
|
"extendsTrait": "means.measurement.size"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.size.volume",
|
|
"extendsTrait": "means.measurement.size"
|
|
},
|
|
{
|
|
"traitName": "means.measurement.size.width",
|
|
"extendsTrait": "means.measurement.size"
|
|
},
|
|
{
|
|
"dataTypeName": "currency",
|
|
"extendsDataType": "decimal",
|
|
"exhibitsTraits": [
|
|
"means.measurement.currency"
|
|
]
|
|
},
|
|
{
|
|
"dataTypeName": "baseCurrency",
|
|
"extendsDataType": "currency",
|
|
"explanation": "value is expressed in the base currency units for the system",
|
|
"exhibitsTraits": [
|
|
"means.measurement.currency"
|
|
]
|
|
},
|
|
{
|
|
"dataTypeName": "colorName",
|
|
"extendsDataType": "string",
|
|
"exhibitsTraits": [
|
|
"means.measurement.color"
|
|
]
|
|
},
|
|
{
|
|
"dataTypeName": "date",
|
|
"extendsDataType": "any",
|
|
"exhibitsTraits": [
|
|
"is.dataFormat.date",
|
|
"means.measurement.date"
|
|
]
|
|
},
|
|
{
|
|
"dataTypeName": "time",
|
|
"extendsDataType": "any",
|
|
"exhibitsTraits": [
|
|
"is.dataFormat.time",
|
|
"means.measurement.time"
|
|
]
|
|
},
|
|
{
|
|
"dataTypeName": "dateTime",
|
|
"extendsDataType": "date",
|
|
"exhibitsTraits": [
|
|
"is.dataFormat.time",
|
|
"means.measurement.time"
|
|
]
|
|
},
|
|
{
|
|
"dataTypeName": "dateTimeOffset",
|
|
"extendsDataType": "dateTime",
|
|
"exhibitsTraits": [
|
|
"is.dataFormat.timeOffset"
|
|
]
|
|
},
|
|
{
|
|
"dataTypeName": "minutes",
|
|
"extendsDataType": "integer",
|
|
"exhibitsTraits": [
|
|
"means.measurement.duration.minutes"
|
|
]
|
|
},
|
|
{
|
|
"purposeName": "createdOn",
|
|
"extendsPurpose": "hasA",
|
|
"exhibitsTraits": [
|
|
"means.measurement.date.creation"
|
|
]
|
|
},
|
|
{
|
|
"purposeName": "modifiedOn",
|
|
"extendsPurpose": "hasA",
|
|
"exhibitsTraits": [
|
|
"means.measurement.date.modify"
|
|
]
|
|
},
|
|
{
|
|
"purposeName": "removedOn",
|
|
"extendsPurpose": "hasA",
|
|
"exhibitsTraits": [
|
|
"means.measurement.date.remove"
|
|
]
|
|
},
|
|
{
|
|
"purposeName": "occuredOn",
|
|
"extendsPurpose": "hasA",
|
|
"exhibitsTraits": [
|
|
"means.measurement.date.occurrence"
|
|
]
|
|
},
|
|
{
|
|
"purposeName": "startedOn",
|
|
"extendsPurpose": "hasA",
|
|
"exhibitsTraits": [
|
|
"means.measurement.date.start"
|
|
]
|
|
},
|
|
{
|
|
"purposeName": "endedOn",
|
|
"extendsPurpose": "hasA",
|
|
"exhibitsTraits": [
|
|
"means.measurement.date.end"
|
|
]
|
|
},
|
|
{
|
|
"purposeName": "completedOn",
|
|
"extendsPurpose": "hasA",
|
|
"exhibitsTraits": [
|
|
"means.measurement.date.completion"
|
|
]
|
|
},
|
|
{
|
|
"dataTypeName": "inches",
|
|
"extendsDataType": "double",
|
|
"exhibitsTraits": [
|
|
"means.measurement.distance.inches"
|
|
]
|
|
}
|
|
]
|
|
} |