@hestia-earth/schema
Version:
Hestia Schema
66 lines (65 loc) • 2.85 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.Property = exports.propertyTermTermType = exports.PropertyDataState = exports.PropertyStatsDefinition = void 0;
// auto-generated content
var types_1 = require("./types");
var Term_1 = require("./Term");
var PropertyStatsDefinition;
(function (PropertyStatsDefinition) {
PropertyStatsDefinition["cycles"] = "cycles";
PropertyStatsDefinition["modelled"] = "modelled";
PropertyStatsDefinition["otherObservations"] = "otherObservations";
PropertyStatsDefinition["regions"] = "regions";
PropertyStatsDefinition["replications"] = "replications";
PropertyStatsDefinition["simulated"] = "simulated";
PropertyStatsDefinition["sites"] = "sites";
PropertyStatsDefinition["spatial"] = "spatial";
})(PropertyStatsDefinition = exports.PropertyStatsDefinition || (exports.PropertyStatsDefinition = {}));
var PropertyDataState;
(function (PropertyDataState) {
PropertyDataState["complete"] = "complete";
PropertyDataState["missing"] = "missing";
PropertyDataState["not required"] = "not required";
PropertyDataState["requires validation"] = "requires validation";
PropertyDataState["unassigned"] = "unassigned";
})(PropertyDataState = exports.PropertyDataState || (exports.PropertyDataState = {}));
/**
* Contains all the TermTermType with override on the Property.
* Note: it does not contain the default TermTermType on related Blank Nodes.
*/
exports.propertyTermTermType = {
term: [
Term_1.TermTermType.property
],
methodModel: [
Term_1.TermTermType.model
],
all: [
Term_1.TermTermType.property,
Term_1.TermTermType.model
]
};
/**
* Properties allow further information to be added to [Products](./Product), [Inputs](./Input), [Emissions](./Emission), and [Practices](./Practices). Default Properties are also associated with [Terms](./Term) (such as the average [nitrogen content](/term/nitrogenContent) of manure).
*/
var Property = /** @class */ (function (_super) {
__extends(Property, _super);
function Property() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Property;
}(types_1.JSON));
exports.Property = Property;