@hestia-earth/schema
Version:
HESTIA Schema
111 lines (110 loc) • 4.93 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.Transport = exports.transportUniquenessFields = exports.transportTermTermType = exports.TransportMethodClassification = exports.TransportDistanceStatsDefinition = exports.TransportStatsDefinition = void 0;
// auto-generated content
var types_1 = require("./types");
var Term_1 = require("./Term");
var TransportStatsDefinition;
(function (TransportStatsDefinition) {
TransportStatsDefinition["cycles"] = "cycles";
TransportStatsDefinition["modelled"] = "modelled";
TransportStatsDefinition["other observations"] = "other observations";
TransportStatsDefinition["regions"] = "regions";
TransportStatsDefinition["replications"] = "replications";
TransportStatsDefinition["simulated"] = "simulated";
TransportStatsDefinition["spatial"] = "spatial";
})(TransportStatsDefinition = exports.TransportStatsDefinition || (exports.TransportStatsDefinition = {}));
var TransportDistanceStatsDefinition;
(function (TransportDistanceStatsDefinition) {
TransportDistanceStatsDefinition["cycles"] = "cycles";
TransportDistanceStatsDefinition["modelled"] = "modelled";
TransportDistanceStatsDefinition["other observations"] = "other observations";
TransportDistanceStatsDefinition["regions"] = "regions";
TransportDistanceStatsDefinition["replications"] = "replications";
TransportDistanceStatsDefinition["simulated"] = "simulated";
TransportDistanceStatsDefinition["spatial"] = "spatial";
TransportDistanceStatsDefinition["time"] = "time";
})(TransportDistanceStatsDefinition = exports.TransportDistanceStatsDefinition || (exports.TransportDistanceStatsDefinition = {}));
var TransportMethodClassification;
(function (TransportMethodClassification) {
TransportMethodClassification["consistent external sources"] = "consistent external sources";
TransportMethodClassification["estimated with assumptions"] = "estimated with assumptions";
TransportMethodClassification["expert opinion"] = "expert opinion";
TransportMethodClassification["inconsistent external sources"] = "inconsistent external sources";
TransportMethodClassification["modelled"] = "modelled";
TransportMethodClassification["non-verified survey data"] = "non-verified survey data";
TransportMethodClassification["physical measurement"] = "physical measurement";
TransportMethodClassification["unsourced assumption"] = "unsourced assumption";
TransportMethodClassification["verified survey data"] = "verified survey data";
})(TransportMethodClassification = exports.TransportMethodClassification || (exports.TransportMethodClassification = {}));
/**
* Contains all the TermTermType with override on the Transport.
* Note: it does not contain the default TermTermType on related Blank Nodes.
*/
exports.transportTermTermType = {
term: [
Term_1.TermTermType.transport
],
methodModel: [
Term_1.TermTermType.model
],
practices: { term: [
Term_1.TermTermType.operation
] },
all: [
Term_1.TermTermType.transport,
Term_1.TermTermType.model,
Term_1.TermTermType.operation
]
};
/**
* Contains all the fields that make the blank nodes unique.
*/
exports.transportUniquenessFields = {
inputs: ['term.@id',
'dates',
'startDate',
'endDate',
'operation.@id',
'country.@id'],
practices: ['term.@id',
'description',
'key.@id',
'dates',
'startDate',
'endDate',
'areaPercent',
'ownershipStatus'],
emissions: ['term.@id',
'dates',
'startDate',
'endDate',
'depth',
'inputs.@id']
};
/**
* The transport of a [Product](/schema/Product), [Input](/schema/Input), or item of [Infrastructure](/schema/Infrastructure) to or from a [Cycle](/schema/Cycle).
*/
var Transport = /** @class */ (function (_super) {
__extends(Transport, _super);
function Transport() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Transport;
}(types_1.JSON));
exports.Transport = Transport;