@hestia-earth/schema
Version:
HESTIA Schema
85 lines (84 loc) • 3.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.Transformation = exports.transformationUniquenessFields = exports.transformationTermTermType = void 0;
// auto-generated content
var types_1 = require("./types");
var Term_1 = require("./Term");
/**
* Contains all the TermTermType with override on the Transformation.
* Note: it does not contain the default TermTermType on related Blank Nodes.
*/
exports.transformationTermTermType = {
term: [
Term_1.TermTermType.excretaManagement,
Term_1.TermTermType.wasteManagement,
Term_1.TermTermType.operation
],
all: [
Term_1.TermTermType.excretaManagement,
Term_1.TermTermType.wasteManagement,
Term_1.TermTermType.operation
]
};
/**
* Contains all the fields that make the blank nodes unique.
*/
exports.transformationUniquenessFields = {
inputs: ['term.@id',
'dates',
'startDate',
'endDate',
'fromCycle',
'transport.term.@id',
'operation.@id',
'country.@id',
'region.@id',
'impactAssessment.id'],
emissions: ['term.@id',
'dates',
'startDate',
'endDate',
'depth',
'inputs.@id',
'transport.@id',
'operation.@id'],
products: ['term.@id',
'dates',
'startDate',
'endDate',
'variety',
'fate'],
practices: ['term.@id',
'key.@id',
'dates',
'startDate',
'endDate',
'areaPercent',
'ownershipStatus']
};
/**
* The Transformation of one [Product](/schema/Product) to a new Product in the same [Cycle](/schema/Cycle). One Transformation can follow another and they can be linked using <code>[transformationId](/schema/Transformation#transformationId)</code>. Environmental impacts created during Transformations are then included in the [Impact Assessment](/schema/ImpactAssessment). This means that Transformations should be used to represent any processes which are required to get the Product to its marketable form or to manage any waste that is created during production. In general, any essential grain drying, crop grading, and animal excreta management should be represented using Transformations.
*/
var Transformation = /** @class */ (function (_super) {
__extends(Transformation, _super);
function Transformation() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Transformation;
}(types_1.JSON));
exports.Transformation = Transformation;