sml-sdk
v1.4.0
Published
Semantic Modeling Language SDK
Downloads
70
Maintainers
Readme
sml-sdk
Semantic Modeling Language SDK
Install
$ npm install sml-sdkUsage
The following snippet demonstrates how to create an SML metric object and serialize it to SML string:
import { serializeToSML, SMLCalculationMethod, SMLMetric, SMLObjectType } from "sml-sdk";
const metric: SMLMetric = {
object_type: SMLObjectType.Metric,
unique_name: "salesamount1",
label: "Sales Amount",
dataset: "factinternetsales",
column: "salesamount",
calculation_method: SMLCalculationMethod.Sum,
};
const metricSML = serializeToSML(metric);License
This project is licensed under the Apache License 2.0. See the LICENSE file for full details.
