UNPKG

@hestia-earth/schema

Version:
148 lines (147 loc) 5.47 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.siteFields = exports.Site = exports.siteUniquenessFields = exports.siteTermTermType = exports.SiteDefaultMethodClassification = exports.SiteTenure = exports.SiteSiteType = void 0; // auto-generated content var types_1 = require("./types"); var Term_1 = require("./Term"); var SiteSiteType; (function (SiteSiteType) { SiteSiteType["agri-food processor"] = "agri-food processor"; SiteSiteType["animal housing"] = "animal housing"; SiteSiteType["cropland"] = "cropland"; SiteSiteType["food retailer"] = "food retailer"; SiteSiteType["forest"] = "forest"; SiteSiteType["glass or high accessible cover"] = "glass or high accessible cover"; SiteSiteType["lake"] = "lake"; SiteSiteType["other natural vegetation"] = "other natural vegetation"; SiteSiteType["permanent pasture"] = "permanent pasture"; SiteSiteType["pond"] = "pond"; SiteSiteType["river or stream"] = "river or stream"; SiteSiteType["sea or ocean"] = "sea or ocean"; })(SiteSiteType = exports.SiteSiteType || (exports.SiteSiteType = {})); var SiteTenure; (function (SiteTenure) { SiteTenure["farming on common land"] = "farming on common land"; SiteTenure["farming on owned land"] = "farming on owned land"; SiteTenure["farming on rented land"] = "farming on rented land"; SiteTenure["other tenure model"] = "other tenure model"; SiteTenure["share farming"] = "share farming"; })(SiteTenure = exports.SiteTenure || (exports.SiteTenure = {})); var SiteDefaultMethodClassification; (function (SiteDefaultMethodClassification) { SiteDefaultMethodClassification["consistent external sources"] = "consistent external sources"; SiteDefaultMethodClassification["estimated with assumptions"] = "estimated with assumptions"; SiteDefaultMethodClassification["expert opinion"] = "expert opinion"; SiteDefaultMethodClassification["inconsistent external sources"] = "inconsistent external sources"; SiteDefaultMethodClassification["modelled"] = "modelled"; SiteDefaultMethodClassification["non-verified survey data"] = "non-verified survey data"; SiteDefaultMethodClassification["physical measurement"] = "physical measurement"; SiteDefaultMethodClassification["unsourced assumption"] = "unsourced assumption"; SiteDefaultMethodClassification["verified survey data"] = "verified survey data"; })(SiteDefaultMethodClassification = exports.SiteDefaultMethodClassification || (exports.SiteDefaultMethodClassification = {})); /** * Contains all the TermTermType with override on the Site. * Note: it does not contain the default TermTermType on related Blank Nodes. */ exports.siteTermTermType = { country: [ Term_1.TermTermType.region ], region: [ Term_1.TermTermType.region ], all: [ Term_1.TermTermType.region ] }; /** * Contains all the fields that make the blank nodes unique. */ exports.siteUniquenessFields = { measurements: ['term.@id', 'dates', 'startDate', 'endDate', 'measurementDuration', 'depthUpper', 'depthLower', 'method.@id', 'methodDescription', 'methodClassification'], management: ['term.@id', 'startDate', 'endDate'], infrastructure: ['term.@id', 'defaultLifespan', 'defaultLifespanHours', 'ownershipStatus'] }; /** * The area on which a Cycle occurred. Typically a field for growing crops or grazing animals, an aquaculture pond, a building, or semi-natural vegetation. Sites can also be whole farms, regions, or countries. */ var Site = /** @class */ (function (_super) { __extends(Site, _super); function Site() { return _super !== null && _super.apply(this, arguments) || this; } return Site; }(types_1.JSON)); exports.Site = Site; exports.siteFields = [ 'name', 'description', 'organisation', 'siteType', 'tenure', 'numberOfSites', 'boundary', 'area', 'areaSd', 'areaMin', 'areaMax', 'latitude', 'longitude', 'country', 'region', 'glnNumber', 'startDate', 'endDate', 'defaultMethodClassification', 'defaultMethodClassificationDescription', 'defaultSource', 'measurements', 'management', 'infrastructure', 'dataPrivate', 'boundaryArea', 'ecoregion', 'awareWaterBasinId', 'originalId', 'schemaVersion', 'added', 'addedVersion', 'updated', 'updatedVersion', 'aggregated', 'aggregatedDataValidated', 'aggregatedVersion', 'aggregatedSites', 'aggregatedSources', 'createdAt', 'updatedAt' ];