UNPKG

@hestia-earth/schema

Version:
106 lines (105 loc) 5.26 kB
"use strict"; 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.Animal = exports.animalUniquenessFields = exports.animalTermTermType = exports.AnimalMethodClassification = exports.AnimalStatsDefinition = exports.AnimalReferencePeriod = void 0; // auto-generated content var types_1 = require("./types"); var Term_1 = require("./Term"); var AnimalReferencePeriod; (function (AnimalReferencePeriod) { AnimalReferencePeriod["average"] = "average"; AnimalReferencePeriod["end of Cycle"] = "end of Cycle"; AnimalReferencePeriod["start of Cycle"] = "start of Cycle"; })(AnimalReferencePeriod = exports.AnimalReferencePeriod || (exports.AnimalReferencePeriod = {})); var AnimalStatsDefinition; (function (AnimalStatsDefinition) { AnimalStatsDefinition["animals"] = "animals"; AnimalStatsDefinition["cycles"] = "cycles"; AnimalStatsDefinition["modelled"] = "modelled"; AnimalStatsDefinition["other observations"] = "other observations"; AnimalStatsDefinition["regions"] = "regions"; AnimalStatsDefinition["replications"] = "replications"; AnimalStatsDefinition["simulated"] = "simulated"; AnimalStatsDefinition["sites"] = "sites"; AnimalStatsDefinition["spatial"] = "spatial"; AnimalStatsDefinition["time"] = "time"; })(AnimalStatsDefinition = exports.AnimalStatsDefinition || (exports.AnimalStatsDefinition = {})); var AnimalMethodClassification; (function (AnimalMethodClassification) { AnimalMethodClassification["consistent external sources"] = "consistent external sources"; AnimalMethodClassification["estimated with assumptions"] = "estimated with assumptions"; AnimalMethodClassification["expert opinion"] = "expert opinion"; AnimalMethodClassification["inconsistent external sources"] = "inconsistent external sources"; AnimalMethodClassification["modelled"] = "modelled"; AnimalMethodClassification["non-verified survey data"] = "non-verified survey data"; AnimalMethodClassification["physical measurement"] = "physical measurement"; AnimalMethodClassification["unsourced assumption"] = "unsourced assumption"; AnimalMethodClassification["verified survey data"] = "verified survey data"; })(AnimalMethodClassification = exports.AnimalMethodClassification || (exports.AnimalMethodClassification = {})); /** * Contains all the TermTermType with override on the Animal. * Note: it does not contain the default TermTermType on related Blank Nodes. */ exports.animalTermTermType = { term: [ Term_1.TermTermType.liveAnimal, Term_1.TermTermType.liveAquaticSpecies ], all: [ Term_1.TermTermType.liveAnimal, Term_1.TermTermType.liveAquaticSpecies ] }; /** * Contains all the fields that make the blank nodes unique. */ exports.animalUniquenessFields = { properties: ['term.@id', 'key.@id', 'date', 'startDate', 'endDate'], inputs: ['term.@id', 'dates', 'startDate', 'endDate', 'isAnimalFeed', 'producedInCycle', 'transport.term.@id', 'operation.@id', 'country.@id', 'region.@id', 'impactAssessment.id'], practices: ['term.@id', 'key.@id', 'dates', 'startDate', 'endDate', 'areaPercent', 'ownershipStatus'] }; /** * A type of animal present during the [Cycle](/schema/Cycle). Adding multiple blank nodes of this type specifies the population ("herd composition") or describes a polyculture system. Use <code>[properties](/schema/Animal#properties)</code> to add information describing each animal type, such as [Liveweight per head](/term/liveweightPerHead), [Liveweight gain](/term/liveweightGain), [Age](/term/age), [Mortality rate](/term/mortalityRate), or [Pregnancy rate total](/term/pregnancyRateTotal). Use <code>[inputs](/schema/Animal#inputs)</code> to specify the Inputs for each animal type such as the feed use. Input quantities should be the total for all animals represented by this blank node and not the input quantity per head. Use <code>[practices](/schema/Animal#practices)</code> to specify Practices describing each each animal type such as the [animal breed](/glossary?page=1&termType=animalBreed). */ var Animal = /** @class */ (function (_super) { __extends(Animal, _super); function Animal() { return _super !== null && _super.apply(this, arguments) || this; } return Animal; }(types_1.JSON)); exports.Animal = Animal;