@hestia-earth/schema
Version:
HESTIA Schema
177 lines (176 loc) • 7.33 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.Indicator = exports.indicatorUniquenessFields = exports.indicatorTermTermType = exports.IndicatorMethodTier = exports.IndicatorStatsDefinition = void 0;
// auto-generated content
var types_1 = require("./types");
var Term_1 = require("./Term");
var IndicatorStatsDefinition;
(function (IndicatorStatsDefinition) {
IndicatorStatsDefinition["animals"] = "animals";
IndicatorStatsDefinition["cycles"] = "cycles";
IndicatorStatsDefinition["impactAssessments"] = "impactAssessments";
IndicatorStatsDefinition["modelled"] = "modelled";
IndicatorStatsDefinition["other observations"] = "other observations";
IndicatorStatsDefinition["regions"] = "regions";
IndicatorStatsDefinition["replications"] = "replications";
IndicatorStatsDefinition["simulated"] = "simulated";
IndicatorStatsDefinition["sites"] = "sites";
IndicatorStatsDefinition["spatial"] = "spatial";
IndicatorStatsDefinition["time"] = "time";
})(IndicatorStatsDefinition = exports.IndicatorStatsDefinition || (exports.IndicatorStatsDefinition = {}));
var IndicatorMethodTier;
(function (IndicatorMethodTier) {
IndicatorMethodTier["background"] = "background";
IndicatorMethodTier["measured"] = "measured";
IndicatorMethodTier["not relevant"] = "not relevant";
IndicatorMethodTier["tier 1"] = "tier 1";
IndicatorMethodTier["tier 2"] = "tier 2";
IndicatorMethodTier["tier 3"] = "tier 3";
})(IndicatorMethodTier = exports.IndicatorMethodTier || (exports.IndicatorMethodTier = {}));
/**
* Contains all the TermTermType with override on the Indicator.
* Note: it does not contain the default TermTermType on related Blank Nodes.
*/
exports.indicatorTermTermType = {
term: [
Term_1.TermTermType.emission,
Term_1.TermTermType.endpointIndicator,
Term_1.TermTermType.characterisedIndicator,
Term_1.TermTermType.resourceUse
],
methodModel: [
Term_1.TermTermType.model,
Term_1.TermTermType.methodEmissionResourceUse
],
operation: [
Term_1.TermTermType.operation
],
landCover: [
Term_1.TermTermType.landCover
],
previousLandCover: [
Term_1.TermTermType.landCover
],
country: [
Term_1.TermTermType.region
],
key: [
Term_1.TermTermType.fuel,
Term_1.TermTermType.material,
Term_1.TermTermType.waste,
Term_1.TermTermType.inorganicFertiliser,
Term_1.TermTermType.otherInorganicChemical,
Term_1.TermTermType.otherOrganicChemical,
Term_1.TermTermType.pesticideAI,
Term_1.TermTermType.soilAmendment,
Term_1.TermTermType.veterinaryDrug
],
inputs: [
Term_1.TermTermType.biologicalControlAgent,
Term_1.TermTermType.electricity,
Term_1.TermTermType.feedFoodAdditive,
Term_1.TermTermType.fuel,
Term_1.TermTermType.material,
Term_1.TermTermType.inorganicFertiliser,
Term_1.TermTermType.organicFertiliser,
Term_1.TermTermType.biochar,
Term_1.TermTermType.fertiliserBrandName,
Term_1.TermTermType.pesticideAI,
Term_1.TermTermType.pesticideBrandName,
Term_1.TermTermType.seed,
Term_1.TermTermType.soilAmendment,
Term_1.TermTermType.substrate,
Term_1.TermTermType.veterinaryDrug,
Term_1.TermTermType.water,
Term_1.TermTermType.transport,
Term_1.TermTermType.animalProduct,
Term_1.TermTermType.crop,
Term_1.TermTermType.forage,
Term_1.TermTermType.cropResidue,
Term_1.TermTermType.liveAnimal,
Term_1.TermTermType.liveAquaticSpecies,
Term_1.TermTermType.processedFood,
Term_1.TermTermType.excretaManagement,
Term_1.TermTermType.wasteManagement,
Term_1.TermTermType.operation,
Term_1.TermTermType.otherOrganicChemical,
Term_1.TermTermType.otherInorganicChemical
],
animals: [
Term_1.TermTermType.liveAnimal,
Term_1.TermTermType.liveAquaticSpecies
],
all: [
Term_1.TermTermType.emission,
Term_1.TermTermType.endpointIndicator,
Term_1.TermTermType.characterisedIndicator,
Term_1.TermTermType.resourceUse,
Term_1.TermTermType.model,
Term_1.TermTermType.methodEmissionResourceUse,
Term_1.TermTermType.operation,
Term_1.TermTermType.landCover,
Term_1.TermTermType.region,
Term_1.TermTermType.fuel,
Term_1.TermTermType.material,
Term_1.TermTermType.waste,
Term_1.TermTermType.inorganicFertiliser,
Term_1.TermTermType.otherInorganicChemical,
Term_1.TermTermType.otherOrganicChemical,
Term_1.TermTermType.pesticideAI,
Term_1.TermTermType.soilAmendment,
Term_1.TermTermType.veterinaryDrug,
Term_1.TermTermType.biologicalControlAgent,
Term_1.TermTermType.electricity,
Term_1.TermTermType.feedFoodAdditive,
Term_1.TermTermType.organicFertiliser,
Term_1.TermTermType.biochar,
Term_1.TermTermType.fertiliserBrandName,
Term_1.TermTermType.pesticideBrandName,
Term_1.TermTermType.seed,
Term_1.TermTermType.substrate,
Term_1.TermTermType.water,
Term_1.TermTermType.transport,
Term_1.TermTermType.animalProduct,
Term_1.TermTermType.crop,
Term_1.TermTermType.forage,
Term_1.TermTermType.cropResidue,
Term_1.TermTermType.liveAnimal,
Term_1.TermTermType.liveAquaticSpecies,
Term_1.TermTermType.processedFood,
Term_1.TermTermType.excretaManagement,
Term_1.TermTermType.wasteManagement
]
};
/**
* Contains all the fields that make the blank nodes unique.
*/
exports.indicatorUniquenessFields = {
inputs: ['@id'],
animals: ['@id']
};
/**
* An emission, resource use, or characterised environmental impact indicator. Each Indicator must be unique, and the fields which determine uniqueness are defined in the <code>[emissionsResourceUse](/schema/ImpactAssessment#emissionsResourceUse)</code>, <code>[impacts](/schema/ImpactAssessment#impacts)</code>, and <code>[endpoints](/schema/ImpactAssessment#endpoints)</code> fields of the Impact Assessment.
*/
var Indicator = /** @class */ (function (_super) {
__extends(Indicator, _super);
function Indicator() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Indicator;
}(types_1.JSON));
exports.Indicator = Indicator;