@hestia-earth/schema
Version:
Hestia Schema
81 lines (80 loc) • 3.23 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 (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
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.Site = exports.siteTermTermType = 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 = {}));
/**
* 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
],
practices: { term: [
Term_1.TermTermType.cropEstablishment,
Term_1.TermTermType.landUseManagement,
Term_1.TermTermType.standardsLabels,
Term_1.TermTermType.system,
Term_1.TermTermType.waterRegime
] },
all: [
Term_1.TermTermType.region,
Term_1.TermTermType.cropEstablishment,
Term_1.TermTermType.landUseManagement,
Term_1.TermTermType.standardsLabels,
Term_1.TermTermType.system,
Term_1.TermTermType.waterRegime
]
};
/**
* A field for growing crops or grazing animals; an aquaculture pond; a building; or semi-natural vegetation.
*/
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;