UNPKG

@hestia-earth/schema

Version:
147 lines (146 loc) 6.02 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.termFields = exports.Term = exports.termUniquenessFields = exports.TermTermType = void 0; // auto-generated content var types_1 = require("./types"); var TermTermType; (function (TermTermType) { TermTermType["animalBreed"] = "animalBreed"; TermTermType["animalManagement"] = "animalManagement"; TermTermType["animalProduct"] = "animalProduct"; TermTermType["aquacultureManagement"] = "aquacultureManagement"; TermTermType["biochar"] = "biochar"; TermTermType["biologicalControlAgent"] = "biologicalControlAgent"; TermTermType["building"] = "building"; TermTermType["characterisedIndicator"] = "characterisedIndicator"; TermTermType["crop"] = "crop"; TermTermType["cropEstablishment"] = "cropEstablishment"; TermTermType["cropResidue"] = "cropResidue"; TermTermType["cropResidueManagement"] = "cropResidueManagement"; TermTermType["cropSupport"] = "cropSupport"; TermTermType["electricity"] = "electricity"; TermTermType["emission"] = "emission"; TermTermType["endpointIndicator"] = "endpointIndicator"; TermTermType["excreta"] = "excreta"; TermTermType["excretaManagement"] = "excretaManagement"; TermTermType["experimentDesign"] = "experimentDesign"; TermTermType["feedFoodAdditive"] = "feedFoodAdditive"; TermTermType["fertiliserBrandName"] = "fertiliserBrandName"; TermTermType["forage"] = "forage"; TermTermType["fuel"] = "fuel"; TermTermType["inorganicFertiliser"] = "inorganicFertiliser"; TermTermType["irrigation"] = "irrigation"; TermTermType["landCover"] = "landCover"; TermTermType["landUseManagement"] = "landUseManagement"; TermTermType["liveAnimal"] = "liveAnimal"; TermTermType["liveAquaticSpecies"] = "liveAquaticSpecies"; TermTermType["machinery"] = "machinery"; TermTermType["material"] = "material"; TermTermType["measurement"] = "measurement"; TermTermType["methodEmissionResourceUse"] = "methodEmissionResourceUse"; TermTermType["methodMeasurement"] = "methodMeasurement"; TermTermType["model"] = "model"; TermTermType["operation"] = "operation"; TermTermType["organicFertiliser"] = "organicFertiliser"; TermTermType["otherInorganicChemical"] = "otherInorganicChemical"; TermTermType["otherOrganicChemical"] = "otherOrganicChemical"; TermTermType["pastureManagement"] = "pastureManagement"; TermTermType["pesticideAI"] = "pesticideAI"; TermTermType["pesticideBrandName"] = "pesticideBrandName"; TermTermType["processedFood"] = "processedFood"; TermTermType["processingAid"] = "processingAid"; TermTermType["property"] = "property"; TermTermType["region"] = "region"; TermTermType["resourceUse"] = "resourceUse"; TermTermType["sampleDesign"] = "sampleDesign"; TermTermType["seed"] = "seed"; TermTermType["soilAmendment"] = "soilAmendment"; TermTermType["soilTexture"] = "soilTexture"; TermTermType["soilType"] = "soilType"; TermTermType["standardsLabels"] = "standardsLabels"; TermTermType["substrate"] = "substrate"; TermTermType["system"] = "system"; TermTermType["tillage"] = "tillage"; TermTermType["transport"] = "transport"; TermTermType["usdaSoilType"] = "usdaSoilType"; TermTermType["veterinaryDrug"] = "veterinaryDrug"; TermTermType["waste"] = "waste"; TermTermType["wasteManagement"] = "wasteManagement"; TermTermType["water"] = "water"; TermTermType["waterRegime"] = "waterRegime"; })(TermTermType = exports.TermTermType || (exports.TermTermType = {})); /** * Contains all the fields that make the blank nodes unique. */ exports.termUniquenessFields = { subClassOf: ['@id'], defaultProperties: ['term.@id', 'key.@id'] }; /** * An item from the [Glossary of Terms](/glossary/) (controlled vocabulary). The Glossary of Terms ensures the most important data fields describing the agri-food system are named consistently. Terms can only be referred to by their <code>[@id](/schema/Term#@id)</code> or their <code>[name](/schema/Term#name)</code>. Changes to Terms and their fields can be requested via [GitLab](https://gitlab.com/hestia-earth/hestia-glossary/-/blob/develop/CONTRIBUTING.md). */ var Term = /** @class */ (function (_super) { __extends(Term, _super); function Term() { return _super !== null && _super.apply(this, arguments) || this; } return Term; }(types_1.JSON)); exports.Term = Term; exports.termFields = [ 'name', 'synonyms', 'definition', 'description', 'units', 'unitsDescription', 'subClassOf', 'defaultProperties', 'casNumber', 'ecoinventReferenceProductId', 'fishstatName', 'hsCode', 'iccCode', 'iso31662Code', 'gadmFullName', 'gadmId', 'gadmLevel', 'gadmName', 'gadmCountry', 'gtin', 'canonicalSmiles', 'latitude', 'longitude', 'area', 'openLCAId', 'scientificName', 'website', 'agrovoc', 'aquastatSpeciesFactSheet', 'cornellBiologicalControl', 'ecolabelIndex', 'feedipedia', 'fishbase', 'pubchem', 'wikipedia', 'termType', 'schemaVersion', 'createdAt', 'updatedAt' ];