@hestia-earth/schema
Version:
HESTIA Schema
83 lines (82 loc) • 4.22 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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
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.PropertyMethodClassification = 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["other observations"] = "other observations";
PropertyStatsDefinition["regions"] = "regions";
PropertyStatsDefinition["replications"] = "replications";
PropertyStatsDefinition["simulated"] = "simulated";
PropertyStatsDefinition["sites"] = "sites";
PropertyStatsDefinition["spatial"] = "spatial";
PropertyStatsDefinition["time"] = "time";
})(PropertyStatsDefinition = exports.PropertyStatsDefinition || (exports.PropertyStatsDefinition = {}));
var PropertyMethodClassification;
(function (PropertyMethodClassification) {
PropertyMethodClassification["consistent external sources"] = "consistent external sources";
PropertyMethodClassification["estimated with assumptions"] = "estimated with assumptions";
PropertyMethodClassification["expert opinion"] = "expert opinion";
PropertyMethodClassification["inconsistent external sources"] = "inconsistent external sources";
PropertyMethodClassification["modelled"] = "modelled";
PropertyMethodClassification["non-verified survey data"] = "non-verified survey data";
PropertyMethodClassification["physical measurement"] = "physical measurement";
PropertyMethodClassification["unsourced assumption"] = "unsourced assumption";
PropertyMethodClassification["verified survey data"] = "verified survey data";
})(PropertyMethodClassification = exports.PropertyMethodClassification || (exports.PropertyMethodClassification = {}));
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,
Term_1.TermTermType.methodMeasurement
],
all: [
Term_1.TermTermType.property,
Term_1.TermTermType.model,
Term_1.TermTermType.methodMeasurement
]
};
/**
* Properties allow further information to be added to [Animals](/schema/Animal), [Products](/schema/Product), [Inputs](/schema/Input), [Emissions](/schema/Emission), and [Practices](/schema/Practices). Default Properties are also associated with [Terms](/schema/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;