diff --git a/CHANGELOG.md b/CHANGELOG.md index d34a11e..0f13fa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - None. +## [1.0.0-alpha.4] - 2023-07-11 + +### Fixed + +- The `dfc-b` prefix points to the business ontology, not the full model. + ## [1.0.0-alpha.3] - 2023-07-10 ### Fixed @@ -82,6 +88,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release. [unreleased]: https://github.com/datafoodconsortium/connector-typescript/compare/v1.0.0-alpha.3...HEAD +[1.0.0-alpha.4]: https://github.com/datafoodconsortium/connector-typescript/compare/v1.0.0-alpha.3...v1.0.0-alpha.4 [1.0.0-alpha.3]: https://github.com/datafoodconsortium/connector-typescript/compare/v1.0.0-alpha.2...v1.0.0-alpha.3 [1.0.0-alpha.2]: https://github.com/datafoodconsortium/connector-typescript/compare/v1.0.0-alpha.1...v1.0.0-alpha.2 [1.0.0-alpha.1]: https://github.com/datafoodconsortium/connector-typescript/compare/v1.0.0-alpha...v1.0.0-alpha.1 diff --git a/lib/Address.js b/lib/Address.js index a2eaa4b..4b4a0cf 100644 --- a/lib/Address.js +++ b/lib/Address.js @@ -24,7 +24,7 @@ import { SemanticObject } from "@virtual-assembly/semantizer"; export default class Address extends SemanticObject { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Address"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Address"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -45,32 +45,32 @@ export default class Address extends SemanticObject { this.setCountry(parameters.country); } setCountry(country) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCountry"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCountry"; this.setSemanticPropertyLiteral(property, country); } setStreet(street) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasStreet"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasStreet"; this.setSemanticPropertyLiteral(property, street); } setCity(city) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCity"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCity"; this.setSemanticPropertyLiteral(property, city); } getCountry() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCountry"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCountry"); } setPostalCode(postalCode) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPostalCode"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPostalCode"; this.setSemanticPropertyLiteral(property, postalCode); } getPostalCode() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPostalCode"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPostalCode"); } getCity() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCity"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCity"); } getStreet() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasStreet"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasStreet"); } } //# sourceMappingURL=Address.js.map \ No newline at end of file diff --git a/lib/Address.js.map b/lib/Address.js.map index 31ec45c..b405315 100644 --- a/lib/Address.js.map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AAC;IACnD,CAAC;IAGM,OAAO,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,0GAA0G,CAAC;QACpI,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAGM,UAAU;QAEhB,OAAO,IAAI,CAAC,mBAAmB,CAAC,6GAA6G,CAAC,CAAC;IAChJ,CAAC;IAGM,aAAa,CAAC,UAAkB;QACtC,MAAM,QAAQ,GAAW,gHAAgH,CAAC;QAC1I,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACvD,CAAC;IAGM,aAAa;QAEnB,OAAO,IAAI,CAAC,mBAAmB,CAAC,gHAAgH,CAAC,CAAC;IACnJ,CAAC;IAGM,OAAO;QAEb,OAAO,IAAI,CAAC,mBAAmB,CAAC,0GAA0G,CAAC,CAAC;IAC7I,CAAC;IAGM,SAAS;QAEf,OAAO,IAAI,CAAC,mBAAmB,CAAC,4GAA4G,CAAC,CAAC;IAC/I,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/Agent.js b/lib/Agent.js index 43b89de..3a9f1f7 100644 --- a/lib/Agent.js +++ b/lib/Agent.js @@ -49,7 +49,7 @@ export default class Agent extends SemanticObject { parameters.localizations.forEach(e => this.addLocalization(e)); } addLocalization(localization) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAddress"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAddress"; if (localization.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, localization); } @@ -65,7 +65,7 @@ export default class Agent extends SemanticObject { var _a, e_1, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAddress"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAddress"); try { for (var _d = true, properties_1 = __asyncValues(properties), properties_1_1; properties_1_1 = yield properties_1.next(), _a = properties_1_1.done, !_a;) { _c = properties_1_1.value; diff --git a/lib/Agent.js.map b/lib/Agent.js.map index e55400a..35c945c 100644 --- a/lib/Agent.js.map +++ b/lib/Agent.js.map @@ -1 +1 @@ -{"version":3,"file":"Agent.js","sourceRoot":"","sources":["../src/Agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;;;;;;;;AAIF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAK7D,MAAM,CAAC,OAAO,OAAgB,KAAM,SAAQ,cAAc;IAIzD,YAAsB,UAAiI;QACtJ,IAAI,UAAU,CAAC,KAAK;YAAE,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;;YACvF,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,YAAY,EAAE,UAAU,CAAC,YAAa,EAAE,CAAC,CAAC;QAE3F,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QAGtC,IAAI,UAAU,CAAC,aAAa;YAAE,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9F,CAAC;IAEM,eAAe,CAAC,YAAsB;QAC5C,MAAM,QAAQ,GAAW,sGAAsG,CAAC;QAChI,IAAI,YAAY,CAAC,yBAAyB,EAAE,EAAE;YAC7C,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;SAC1D;aACI;YACJ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YACnC,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;S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,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9F,CAAC;IAEM,eAAe,CAAC,YAAsB;QAC5C,MAAM,QAAQ,GAAW,6GAA6G,CAAC;QACvI,IAAI,YAAY,CAAC,yBAAyB,EAAE,EAAE;YAC7C,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;SAC1D;aACI;YACJ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YACnC,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;SAC1D;IACF,CAAC;IAGM,kBAAkB,CAAC,YAAsB;QAC/C,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACzC,CAAC;IAGY,gBAAgB,CAAC,OAAwB;;;YAErD,MAAM,OAAO,GAAG,IAAI,KAAK,EAAY,CAAC;YACtC,MAAM,UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,6GAA6G,CAAC,CAAC;;gBAC9J,KAA+B,eAAA,eAAA,cAAA,UAAU,CAAA,gBAAA;oBAAV,0BAAU;oBAAV,WAAU;;wBAA9B,MAAM,UAAU,KAAA,CAAA;wBAC1B,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;wBACjG,IAAI,cAAc;4BAAE,OAAO,CAAC,IAAI,CAAY,cAAc,CAAC,CAAC;;;;;iBAC5D;;;;;;;;;YACD,OAAO,OAAO,CAAC;;KACf;CAGD"} \ No newline at end of file diff --git a/lib/AllergenCharacteristic.js b/lib/AllergenCharacteristic.js index 5950ca7..a4580fd 100644 --- a/lib/AllergenCharacteristic.js +++ b/lib/AllergenCharacteristic.js @@ -33,7 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge import Characteristic from "./Characteristic.js"; export default class AllergenCharacteristic extends Characteristic { constructor(parameters) { - const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#AllergenCharacteristic"; + const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#AllergenCharacteristic"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -47,7 +47,7 @@ export default class AllergenCharacteristic extends Characteristic { getQuantityDimension(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAllergenDimension"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenDimension"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -57,7 +57,7 @@ export default class AllergenCharacteristic extends Characteristic { }); } setQuantityDimension(quantityDimension) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAllergenDimension"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenDimension"; this.setSemanticPropertyReference(property, quantityDimension); this.connector.store(quantityDimension); } diff --git a/lib/AllergenCharacteristic.js.map b/lib/AllergenCharacteristic.js.map index 3879cfe..22f7bcd 100644 --- a/lib/AllergenCharacteristic.js.map +++ b/lib/AllergenCharacteristic.js.map @@ -1 +1 @@ -{"version":3,"file":"AllergenCharacteristic.js","sourceRoot":"","sources":["../src/AllergenCharacteristic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;AAKF,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAOhD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,cAAc;IAGjE,YAAmB,UAA2K;QAC7L,MAAM,IA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BAAoB,CAAC,OAAwB;;YAEzD,IAAI,MAAM,GAAyC,SAAS,CAAC;YAC7D,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC,uHAAuH,CAAC,CAAC;YACrK,IAAI,UAAU,EAAE;gBACf,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;gBACjG,IAAI,cAAc;oBAAE,MAAM,GAA0C,cAAc,CAAC;aACnF;YACD,OAAO,MAAM,CAAC;QAEf,CAAC;KAAA;IAGM,oBAAoB,CAAC,iBAA2C;QACtE,MAAM,QAAQ,GAAW,uHAAuH,CAAC;QACjJ,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QAC/D,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACzC,CAAC;CAID"} \ No newline at end of file diff --git a/lib/Catalog.js b/lib/Catalog.js index 2488861..e878114 100644 --- a/lib/Catalog.js +++ b/lib/Catalog.js @@ -40,7 +40,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { import { SemanticObject } from "@virtual-assembly/semantizer"; export default class Catalog extends SemanticObject { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Catalog"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Catalog"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -60,7 +60,7 @@ export default class Catalog extends SemanticObject { var _a, e_1, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lists"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lists"); try { for (var _d = true, properties_1 = __asyncValues(properties), properties_1_1; properties_1_1 = yield properties_1.next(), _a = properties_1_1.done, !_a;) { _c = properties_1_1.value; @@ -87,7 +87,7 @@ export default class Catalog extends SemanticObject { }); } addMaintainer(maintainer) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#maintainedBy"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#maintainedBy"; if (maintainer.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, maintainer); } @@ -103,7 +103,7 @@ export default class Catalog extends SemanticObject { var _a, e_2, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#maintainedBy"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#maintainedBy"); try { for (var _d = true, properties_2 = __asyncValues(properties), properties_2_1; properties_2_1 = yield properties_2.next(), _a = properties_2_1.done, !_a;) { _c = properties_2_1.value; @@ -130,7 +130,7 @@ export default class Catalog extends SemanticObject { }); } addItem(item) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lists"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lists"; if (item.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, item); } diff --git a/lib/Catalog.js.map b/lib/Catalog.js.map index 8f28e58..c391a9a 100644 --- a/lib/Catalog.js.map +++ b/lib/Catalog.js.map @@ -1 +1 @@ -{"version":3,"file":"Catalog.js","sourceRoot":"","sources":["../src/Catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;;;;;;;;AAMF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAK7D,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,cAAc;IAIlD,YA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CAAC;;gBAChK,KAA+B,eAAA,eAAA,cAAA,UAAU,CAAA,gBAAA;oBAAV,0BAAU;oBAAV,WAAU;;wBAA9B,MAAM,UAAU,KAAA,CAAA;wBAC1B,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;wBACjG,IAAI,cAAc;4BAAE,OAAO,CAAC,IAAI,CAAe,cAAc,CAAC,CAAC;;;;;iBAC/D;;;;;;;;;YACD,OAAO,OAAO,CAAC;;KACf;IAGM,OAAO,CAAC,IAAkB;QAChC,MAAM,QAAQ,GAAW,wGAAwG,CAAC;QAClI,IAAI,IAAI,CAAC,yBAAyB,EAAE,EAAE;YACrC,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;SAClD;aACI;YACJ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC3B,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;SAClD;IACF,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/CatalogItem.js b/lib/CatalogItem.js index 3a8ba0b..8a7c2d9 100644 --- a/lib/CatalogItem.js +++ b/lib/CatalogItem.js @@ -40,7 +40,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { import { SemanticObject } from "@virtual-assembly/semantizer"; export default class CatalogItem extends SemanticObject { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#CatalogItem"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#CatalogItem"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -63,7 +63,7 @@ export default class CatalogItem extends SemanticObject { parameters.catalogs.forEach(e => this.registerInCatalog(e)); } registerInCatalog(repository) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#listedIn"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#listedIn"; if (repository.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, repository); } @@ -76,7 +76,7 @@ export default class CatalogItem extends SemanticObject { var _a, e_1, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#listedIn"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#listedIn"); try { for (var _d = true, properties_1 = __asyncValues(properties), properties_1_1; properties_1_1 = yield properties_1.next(), _a = properties_1_1.done, !_a;) { _c = properties_1_1.value; @@ -103,7 +103,7 @@ export default class CatalogItem extends SemanticObject { }); } setOfferedProduct(offeredProduct) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#references"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#references"; this.setSemanticPropertyReference(property, offeredProduct); this.connector.store(offeredProduct); } @@ -111,7 +111,7 @@ export default class CatalogItem extends SemanticObject { var _a, e_2, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredThrough"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredThrough"); try { for (var _d = true, properties_2 = __asyncValues(properties), properties_2_1; properties_2_1 = yield properties_2.next(), _a = properties_2_1.done, !_a;) { _c = properties_2_1.value; @@ -140,7 +140,7 @@ export default class CatalogItem extends SemanticObject { getOfferedProduct(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#references"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#references"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -150,7 +150,7 @@ export default class CatalogItem extends SemanticObject { }); } addOffer(offer) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredThrough"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredThrough"; if (offer.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, offer); } @@ -160,17 +160,17 @@ export default class CatalogItem extends SemanticObject { } } setStockLimitation(stockLimitation) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#stockLimitation"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation"; this.setSemanticPropertyLiteral(property, stockLimitation); } getStockLimitation() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#stockLimitation")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation")); } getSku() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#sku"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#sku"); } setSku(sku) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#sku"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#sku"; this.setSemanticPropertyLiteral(property, sku); } } diff --git a/lib/CatalogItem.js.map b/lib/CatalogItem.js.map index fb4587d..9c706f1 100644 --- a/lib/CatalogItem.js.map +++ b/lib/CatalogItem.js.map @@ -1 +1 @@ -{"version":3,"file":"CatalogItem.js","sourceRoot":"","sources":["../src/CatalogItem.ts"],"names":[],"mappings":"AAA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gBACjG,IAAI,cAAc;oBAAE,MAAM,GAAiC,cAAc,CAAC;aAC1E;YACD,OAAO,MAAM,CAAC;QAEf,CAAC;KAAA;IAGM,QAAQ,CAAC,KAAa;QAC5B,MAAM,QAAQ,GAAW,iHAAiH,CAAC;QAC3I,IAAI,KAAK,CAAC,yBAAyB,EAAE,EAAE;YACtC,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;SACnD;aACI;YACJ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;SACnD;IACF,CAAC;IAEM,kBAAkB,CAAC,eAAuB;QAChD,MAAM,QAAQ,GAAW,kHAAkH,CAAC;QAC5I,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IAC5D,CAAC;IAGM,kBAAkB;QAExB,OAAO,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,kHAAkH,CAAC,CAAC,CAAC;IAC7J,CAAC;IAEM,MAAM;QAEZ,OAAO,IAAI,CAAC,mBAAmB,CAAC,sGAAsG,CAAC,CAAC;IACzI,CAAC;IAGM,MAAM,CAAC,GAAW;QACxB,MAAM,QAAQ,GAAW,sGAAsG,CAAC;QAChI,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAChD,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/ConnectorFactory.js b/lib/ConnectorFactory.js index 115f8ad..804c855 100644 --- a/lib/ConnectorFactory.js +++ b/lib/ConnectorFactory.js @@ -75,7 +75,7 @@ export default class ConnectorFactory { } createFromType(type) { let result = undefined; - const prefix = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#"; + const prefix = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#"; switch (type) { case prefix + "Enterprise": result = this.createEnterprise({ semanticId: "" }); diff --git a/lib/ConnectorFactory.js.map b/lib/ConnectorFactory.js.map index 5b3d1f0..a029952 100644 --- a/lib/ConnectorFactory.js.map +++ b/lib/ConnectorFactory.js.map @@ -1 +1 @@ -{"version":3,"file":"ConnectorFactory.js","sourceRoot":"","sources":["../src/ConnectorFactory.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AACjE,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AACrD,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,eAAe,MAAM,sBAAsB,CAAC;AAGnD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AA6BhD,MAAM,CAAC,OAAO,OAAO,gBAAgB;IAIjC,YAAmB,SAAqB;QACpC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,wBAAwB,CAAC,OAAoB;QAChD,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;QACpC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3B,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAEM,aAAa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AAC;QAC3E,IAAI,cAAc;YACd,cAAc,CAAC,oCAAoC,CAAC,OAAO,CAAC,CAAC;QACjE,OAAO,cAAc,CAAC;IAC1B,CAAC;CAEJ"} \ No newline at end of file diff --git a/lib/CustomerCategory.js b/lib/CustomerCategory.js index e80926d..266a5dc 100644 --- a/lib/CustomerCategory.js +++ b/lib/CustomerCategory.js @@ -24,7 +24,7 @@ import { SemanticObject } from "@virtual-assembly/semantizer"; export default class CustomerCategory extends SemanticObject { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#CustomerCategory"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#CustomerCategory"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -39,11 +39,11 @@ export default class CustomerCategory extends SemanticObject { this.setDescription(parameters.description); } setDescription(description) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"; this.setSemanticPropertyLiteral(property, description); } getDescription() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"); } } //# sourceMappingURL=CustomerCategory.js.map \ No newline at end of file diff --git a/lib/CustomerCategory.js.map b/lib/CustomerCategory.js.map index f5ab926..34e4029 100644 --- a/lib/CustomerCategory.js.map +++ b/lib/CustomerCategory.js.map @@ -1 +1 @@ -{"version":3,"file":"CustomerCategory.js","sourceRoot":"","sources":["../src/CustomerCategory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;AAGF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAK7D,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ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;IAI3D,YAAmB,UAA0H;QAC5I,MAAM,IAAI,GAAW,mHAAmH,CAAC;QAEzI,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACvE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAoC,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,GAAG,CAAC,CAAC;SACvJ;;YACI,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;QAEvE,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QAGtC,IAAI,CAAC,UAAU,CAAC,UAAU;YACzB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,UAAU,CAAC,WAAW;YAAE,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IACzE,CAAC;IAEM,cAAc,CAAC,WAAmB;QACxC,MAAM,QAAQ,GAAW,8GAA8G,CAAC;QACxI,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACxD,CAAC;IAGM,cAAc;QAEpB,OAAO,IAAI,CAAC,mBAAmB,CAAC,8GAA8G,CAAC,CAAC;IACjJ,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/DefinedProduct.js b/lib/DefinedProduct.js index 8c9a961..152e0e7 100644 --- a/lib/DefinedProduct.js +++ b/lib/DefinedProduct.js @@ -79,17 +79,17 @@ export default class DefinedProduct extends SemanticObject { parameters.partOrigin.forEach(e => this.addPartOrigin(e)); } setName(name) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#name"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#name"; this.setSemanticPropertyLiteral(property, name); } getName() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#name"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#name"); } getPartOrigin(options) { var _a, e_1, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPartOrigin"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPartOrigin"); try { for (var _d = true, properties_1 = __asyncValues(properties), properties_1_1; properties_1_1 = yield properties_1.next(), _a = properties_1_1.done, !_a;) { _c = properties_1_1.value; @@ -116,7 +116,7 @@ export default class DefinedProduct extends SemanticObject { }); } addNutrientCharacteristic(nutrientCharacteristic) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNutrientCharacteristic"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientCharacteristic"; if (nutrientCharacteristic.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, nutrientCharacteristic); } @@ -126,12 +126,12 @@ export default class DefinedProduct extends SemanticObject { } } getUsageOrStorageConditions() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#usageOrStorageCondition"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#usageOrStorageCondition"); } getGeographicalOrigin(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasGeographicalOrigin"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasGeographicalOrigin"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -141,7 +141,7 @@ export default class DefinedProduct extends SemanticObject { }); } getAlcoholPercentage() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#alcoholPercentage")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#alcoholPercentage")); } removeAllergenCharacteristic(allergenCharacteristic) { throw new Error("Not yet implemented."); @@ -149,7 +149,7 @@ export default class DefinedProduct extends SemanticObject { getNutrientCharacteristics(options) { return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNutrientCharacteristic"); + const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientCharacteristic"); blankNodesId.forEach(blankNodeId => { const blankNode = this.connector.getDefaultFactory().createFromRdfDataset(blankNodeId); results.push(blankNode); @@ -160,7 +160,7 @@ export default class DefinedProduct extends SemanticObject { getPhysicalCharacteristics(options) { return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPhysicalCharacteristic"); + const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalCharacteristic"); blankNodesId.forEach(blankNodeId => { const blankNode = this.connector.getDefaultFactory().createFromRdfDataset(blankNodeId); results.push(blankNode); @@ -175,7 +175,7 @@ export default class DefinedProduct extends SemanticObject { var _a, e_2, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNatureOrigin"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNatureOrigin"); try { for (var _d = true, properties_2 = __asyncValues(properties), properties_2_1; properties_2_1 = yield properties_2.next(), _a = properties_2_1.done, !_a;) { _c = properties_2_1.value; @@ -202,7 +202,7 @@ export default class DefinedProduct extends SemanticObject { }); } addPartOrigin(partOrigin) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPartOrigin"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPartOrigin"; if (partOrigin.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, partOrigin); } @@ -215,15 +215,15 @@ export default class DefinedProduct extends SemanticObject { throw new Error("Not yet implemented."); } setLifetime(lifetime) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lifetime"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lifetime"; this.setSemanticPropertyLiteral(property, lifetime); } setAlcoholPercentage(alcoholPercentage) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#alcoholPercentage"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#alcoholPercentage"; this.setSemanticPropertyLiteral(property, alcoholPercentage); } addPhysicalCharacteristic(physicalCharacteristic) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPhysicalCharacteristic"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalCharacteristic"; if (physicalCharacteristic.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, physicalCharacteristic); } @@ -235,7 +235,7 @@ export default class DefinedProduct extends SemanticObject { getAllergenCharacteristics(options) { return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAllergenCharacteristic"); + const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenCharacteristic"); blankNodesId.forEach(blankNodeId => { const blankNode = this.connector.getDefaultFactory().createFromRdfDataset(blankNodeId); results.push(blankNode); @@ -244,10 +244,10 @@ export default class DefinedProduct extends SemanticObject { }); } getLifetime() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lifetime"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lifetime"); } addNatureOrigin(natureOrigin) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNatureOrigin"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNatureOrigin"; if (natureOrigin.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, natureOrigin); } @@ -257,7 +257,7 @@ export default class DefinedProduct extends SemanticObject { } } addAllergenCharacteristic(allergenCharacteristic) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAllergenCharacteristic"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenCharacteristic"; if (allergenCharacteristic.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, allergenCharacteristic); } @@ -273,20 +273,20 @@ export default class DefinedProduct extends SemanticObject { throw new Error("Not yet implemented."); } setUsageOrStorageConditions(usageOrStorageConditions) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#usageOrStorageCondition"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#usageOrStorageCondition"; this.setSemanticPropertyLiteral(property, usageOrStorageConditions); } setGeographicalOrigin(geographicalOrigin) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasGeographicalOrigin"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasGeographicalOrigin"; this.setSemanticPropertyReference(property, geographicalOrigin); this.connector.store(geographicalOrigin); } setDescription(description) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"; this.setSemanticPropertyLiteral(property, description); } getDescription() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"); } removeCertification(certification) { throw new Error("Not yet implemented."); @@ -295,7 +295,7 @@ export default class DefinedProduct extends SemanticObject { var _a, e_3, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCertification"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCertification"); try { for (var _d = true, properties_3 = __asyncValues(properties), properties_3_1; properties_3_1 = yield properties_3.next(), _a = properties_3_1.done, !_a;) { _c = properties_3_1.value; @@ -322,7 +322,7 @@ export default class DefinedProduct extends SemanticObject { }); } addCertification(certification) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCertification"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCertification"; if (certification.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, certification); } @@ -333,14 +333,14 @@ export default class DefinedProduct extends SemanticObject { } getQuantity(options) { return __awaiter(this, void 0, void 0, function* () { - const blankNode = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasQuantity"); + const blankNode = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasQuantity"); return this.connector.getDefaultFactory().createFromRdfDataset(blankNode); }); } getProductType(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasType"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasType"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -356,7 +356,7 @@ export default class DefinedProduct extends SemanticObject { var _a, e_4, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasClaim"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasClaim"); try { for (var _d = true, properties_4 = __asyncValues(properties), properties_4_1; properties_4_1 = yield properties_4.next(), _a = properties_4_1.done, !_a;) { _c = properties_4_1.value; @@ -383,7 +383,7 @@ export default class DefinedProduct extends SemanticObject { }); } addClaim(claim) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasClaim"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasClaim"; if (claim.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, claim); } @@ -393,16 +393,16 @@ export default class DefinedProduct extends SemanticObject { } } setProductType(productType) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasType"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasType"; this.setSemanticPropertyReference(property, productType); this.connector.store(productType); } setQuantity(quantity) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasQuantity"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasQuantity"; this.setSemanticPropertyAnonymous(property, quantity); } addCatalogItem(catalogItem) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#referencedBy"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#referencedBy"; if (catalogItem.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, catalogItem); } @@ -415,7 +415,7 @@ export default class DefinedProduct extends SemanticObject { var _a, e_5, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#referencedBy"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#referencedBy"); try { for (var _d = true, properties_5 = __asyncValues(properties), properties_5_1; properties_5_1 = yield properties_5.next(), _a = properties_5_1.done, !_a;) { _c = properties_5_1.value; diff --git a/lib/DefinedProduct.js.map b/lib/DefinedProduct.js.map index 2e3880d..ff9dba8 100644 --- a/lib/DefinedProduct.js.map +++ b/lib/DefinedProduct.js.map @@ -1 +1 @@ -{"version":3,"file":"DefinedProduct.js","sourceRoot":"","sources":["../src/DefinedProduct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;;;;;;;;AAcF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAK7D,MAAM,CAAC,OAAO,OAAgB,cAAe,SAAQ,cAAc;IAIlE,YAAsB,UAAwmB;QAC7nB,IAAI,UAAU,CAAC,KAAK;YAAE,KAAK,CAA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AC,QAAQ,EAAE,WAAW,CAAC,CAAC;SACzD;aACI;YACJ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;YAClC,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;SACzD;IACF,CAAC;IAGY,eAAe,CAAC,OAAwB;;;YAEpD,MAAM,OAAO,GAAG,IAAI,KAAK,EAAgB,CAAC;YAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,+GAA+G,CAAC,CAAC;;gBAChK,KAA+B,eAAA,eAAA,cAAA,UAAU,CAAA,gBAAA;oBAAV,0BAAU;oBAAV,WAAU;;wBAA9B,MAAM,UAAU,KAAA,CAAA;wBAC1B,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;wBACjG,IAAI,cAAc;4BAAE,OAAO,CAAC,IAAI,CAAgB,cAAc,CAAC,CAAC;;;;;iBAChE;;;;;;;;;YACD,OAAO,OAAO,CAAC;;KACf;CAGD"} \ No newline at end of file diff --git a/lib/Enterprise.js b/lib/Enterprise.js index 05355e1..0f30921 100644 --- a/lib/Enterprise.js +++ b/lib/Enterprise.js @@ -40,7 +40,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { import Agent from "./Agent.js"; export default class Enterprise extends Agent { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Enterprise"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Enterprise"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -66,7 +66,7 @@ export default class Enterprise extends Agent { parameters.technicalProducts.forEach(e => this.proposeTechnicalProducts(e)); } manageCatalogItem(catalogItem) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#manages"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#manages"; if (catalogItem.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, catalogItem); } @@ -79,7 +79,7 @@ export default class Enterprise extends Agent { var _a, e_1, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#manages"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#manages"); try { for (var _d = true, properties_1 = __asyncValues(properties), properties_1_1; properties_1_1 = yield properties_1.next(), _a = properties_1_1.done, !_a;) { _c = properties_1_1.value; @@ -109,7 +109,7 @@ export default class Enterprise extends Agent { throw new Error("Not yet implemented."); } maintainCatalog(catalog) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#maintains"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#maintains"; if (catalog.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, catalog); } @@ -122,7 +122,7 @@ export default class Enterprise extends Agent { var _a, e_2, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#maintains"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#maintains"); try { for (var _d = true, properties_2 = __asyncValues(properties), properties_2_1; properties_2_1 = yield properties_2.next(), _a = properties_2_1.done, !_a;) { _c = properties_2_1.value; @@ -155,7 +155,7 @@ export default class Enterprise extends Agent { throw new Error("Not yet implemented."); } supplyProduct(suppliedProduct) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#supplies"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#supplies"; if (suppliedProduct.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, suppliedProduct); } @@ -168,7 +168,7 @@ export default class Enterprise extends Agent { var _a, e_3, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#supplies"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#supplies"); try { for (var _d = true, properties_3 = __asyncValues(properties), properties_3_1; properties_3_1 = yield properties_3.next(), _a = properties_3_1.done, !_a;) { _c = properties_3_1.value; @@ -238,24 +238,24 @@ export default class Enterprise extends Agent { }); } setDescription(description) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasDescription"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasDescription"; this.setSemanticPropertyLiteral(property, description); } getDescription() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasDescription"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasDescription"); } setVatNumber(vatNumber) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#VATnumber"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATnumber"; this.setSemanticPropertyLiteral(property, vatNumber); } getVatNumber() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#VATnumber"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATnumber"); } getCustomerCategories(options) { var _a, e_5, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#defines"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#defines"); try { for (var _d = true, properties_5 = __asyncValues(properties), properties_5_1; properties_5_1 = yield properties_5.next(), _a = properties_5_1.done, !_a;) { _c = properties_5_1.value; @@ -282,7 +282,7 @@ export default class Enterprise extends Agent { }); } addCustomerCategory(customerCategory) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#defines"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#defines"; if (customerCategory.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, customerCategory); } diff --git a/lib/Enterprise.js.map b/lib/Enterprise.js.map index cc89ce0..028ee7e 100644 --- a/lib/Enterprise.js.map +++ b/lib/Enterprise.js.map @@ -1 +1 @@ -{"version":3,"file":"Enterprise.js","sourceRoot":"","sources":["../src/Enterprise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;;;;;;;;AAMF,OAAO,KAAK,MAAM,YAAY,CAAA;AAW9B,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK;IAG5C,YAAmB,UAA0V;QAC5W,MAAM,IAAI,GAAW,sGAAsG,CAAC;QAE5H,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACxG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAoC,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,GAAG,CAAC,CAAC;SACvJ;;YACI,KAAK,CAAC,EAAE,SAA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AAU,KAAA,CAAA;wBAC1B,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;wBACjG,IAAI,cAAc;4BAAE,OAAO,CAAC,IAAI,CAAqB,cAAc,CAAC,CAAC;;;;;iBACrE;;;;;;;;;YACD,OAAO,OAAO,CAAC;;KACf;IAGM,mBAAmB,CAAC,gBAAmC;QAC7D,MAAM,QAAQ,GAAW,0GAA0G,CAAC;QACpI,IAAI,gBAAgB,CAAC,yBAAyB,EAAE,EAAE;YACjD,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;SAC9D;aACI;YACJ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YACvC,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;SAC9D;IACF,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/NutrientCharacteristic.js b/lib/NutrientCharacteristic.js index 0f9f8b8..fcf83c4 100644 --- a/lib/NutrientCharacteristic.js +++ b/lib/NutrientCharacteristic.js @@ -33,7 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge import Characteristic from "./Characteristic.js"; export default class NutrientCharacteristic extends Characteristic { constructor(parameters) { - const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#NutrientCharacteristic"; + const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#NutrientCharacteristic"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -47,7 +47,7 @@ export default class NutrientCharacteristic extends Characteristic { getQuantityDimension(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNutrientDimension"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientDimension"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -57,7 +57,7 @@ export default class NutrientCharacteristic extends Characteristic { }); } setQuantityDimension(quantityDimension) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNutrientDimension"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientDimension"; this.setSemanticPropertyReference(property, quantityDimension); this.connector.store(quantityDimension); } diff --git a/lib/NutrientCharacteristic.js.map b/lib/NutrientCharacteristic.js.map index 525d6dd..7a16eb2 100644 --- a/lib/NutrientCharacteristic.js.map +++ b/lib/NutrientCharacteristic.js.map @@ -1 +1 @@ -{"version":3,"file":"NutrientCharacteristic.js","sourceRoot":"","sources":["../src/NutrientCharacteristic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;AAGF,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAShD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,cAAc;IAGjE,YAAmB,UAA2K;QAC7L,MAAM,IAAI,GAAW,UAAU,CAAC,YAAY,CAAA,CAAC,CAAC,UAAU,CAAC,YAAY,CAAA,CAAC,CAAC,kHAAkH,CAAC;QAE1L,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACxG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAo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H,CAAC;QACjJ,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QAC/D,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACzC,CAAC;CAID"} \ No newline at end of file diff --git a/lib/Offer.js b/lib/Offer.js index fe63f67..eddee74 100644 --- a/lib/Offer.js +++ b/lib/Offer.js @@ -33,7 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge import { SemanticObject } from "@virtual-assembly/semantizer"; export default class Offer extends SemanticObject { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Offer"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Offer"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -54,19 +54,19 @@ export default class Offer extends SemanticObject { this.setStockLimitation(parameters.stockLimitation); } setPrice(price) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPrice"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPrice"; this.setSemanticPropertyAnonymous(property, price); } getPrice(options) { return __awaiter(this, void 0, void 0, function* () { - const blankNode = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPrice"); + const blankNode = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPrice"); return this.connector.getDefaultFactory().createFromRdfDataset(blankNode); }); } getOfferedItem(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredItem"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredItem"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -76,14 +76,14 @@ export default class Offer extends SemanticObject { }); } setCustomerCategory(customerCategory) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredTo"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredTo"; this.setSemanticPropertyReference(property, customerCategory); this.connector.store(customerCategory); } getCustomerCategory(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredTo"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredTo"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -93,16 +93,16 @@ export default class Offer extends SemanticObject { }); } setOfferedItem(offeredItem) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredItem"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredItem"; this.setSemanticPropertyReference(property, offeredItem); this.connector.store(offeredItem); } setStockLimitation(stockLimitation) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#stockLimitation"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation"; this.setSemanticPropertyLiteral(property, stockLimitation); } getStockLimitation() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#stockLimitation")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation")); } } //# sourceMappingURL=Offer.js.map \ No newline at end of file diff --git a/lib/Offer.js.map b/lib/Offer.js.map index 0390fd7..71cc9e0 100644 --- a/lib/Offer.js.map +++ b/lib/Offer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a/lib/Order.js +++ b/lib/Order.js @@ -40,7 +40,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { import { SemanticObject } from "@virtual-assembly/semantizer"; export default class Order extends SemanticObject { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Order"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Order"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -63,17 +63,17 @@ export default class Order extends SemanticObject { parameters.lines.forEach(e => this.addLine(e)); } setDate(date) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#date"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#date"; this.setSemanticPropertyLiteral(property, date); } getNumber() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#orderNumber"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#orderNumber"); } getDate() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#date"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#date"); } addLine(line) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPart"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPart"; if (line.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, line); } @@ -85,7 +85,7 @@ export default class Order extends SemanticObject { getClient(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#orderedBy"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#orderedBy"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -97,7 +97,7 @@ export default class Order extends SemanticObject { getSaleSession(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#belongsTo"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#belongsTo"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -107,7 +107,7 @@ export default class Order extends SemanticObject { }); } setClient(client) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#orderedBy"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#orderedBy"; this.setSemanticPropertyReference(property, client); this.connector.store(client); } @@ -115,7 +115,7 @@ export default class Order extends SemanticObject { var _a, e_1, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPart"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPart"); try { for (var _d = true, properties_1 = __asyncValues(properties), properties_1_1; properties_1_1 = yield properties_1.next(), _a = properties_1_1.done, !_a;) { _c = properties_1_1.value; @@ -142,11 +142,11 @@ export default class Order extends SemanticObject { }); } setNumber(number) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#orderNumber"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#orderNumber"; this.setSemanticPropertyLiteral(property, number); } setSaleSession(saleSession) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#belongsTo"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#belongsTo"; this.setSemanticPropertyReference(property, saleSession); this.connector.store(saleSession); } diff --git a/lib/Order.js.map b/lib/Order.js.map index a8231ae..7b68dde 100644 --- a/lib/Order.js.map +++ b/lib/Order.js.map @@ -1 +1 @@ -{"version":3,"file":"Order.js","sourceRoot":"","sources":["../src/Order.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;;;;;;;;AAMF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAK7D,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,cAAc;IAIhD,YAAmB,UAAuM;QACzN,MAAM,IAAI,GAAW,iGAAiG,CAAC;QAEvH,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACvE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAoC,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,GAAG,CAAC,CAAC;SACvJ;;YACI,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;QAEvE,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QAGtC,IAAI,CAAC,UAAU,CAAC,UAAU;YACzB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,UAAU,CAAC,MAAM;YAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACzD,IAAI,UAAU,CAAC,IAAI;YAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACnD,I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O,CAAC;;KACf;IAGM,SAAS,CAAC,MAAc;QAC9B,MAAM,QAAQ,GAAW,8GAA8G,CAAC;QACxI,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;IAGM,cAAc,CAAC,WAAyB;QAC9C,MAAM,QAAQ,GAAW,4GAA4G,CAAC;QACtI,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QACzD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACnC,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/OrderLine.js b/lib/OrderLine.js index 524a1c5..eab9069 100644 --- a/lib/OrderLine.js +++ b/lib/OrderLine.js @@ -33,7 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge import { SemanticObject } from "@virtual-assembly/semantizer"; export default class OrderLine extends SemanticObject { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#OrderLine"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#OrderLine"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -54,29 +54,29 @@ export default class OrderLine extends SemanticObject { this.setOrder(parameters.order); } setOffer(offer) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#concerns"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#concerns"; this.setSemanticPropertyReference(property, offer); this.connector.store(offer); } setQuantity(quantity) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#quantity"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#quantity"; this.setSemanticPropertyLiteral(property, quantity); } getPrice(options) { return __awaiter(this, void 0, void 0, function* () { - const blankNode = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPrice"); + const blankNode = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPrice"); return this.connector.getDefaultFactory().createFromRdfDataset(blankNode); }); } setOrder(order) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#partOf"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#partOf"; this.setSemanticPropertyReference(property, order); this.connector.store(order); } getOffer(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#concerns"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#concerns"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -88,7 +88,7 @@ export default class OrderLine extends SemanticObject { getOrder(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#partOf"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#partOf"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -98,18 +98,18 @@ export default class OrderLine extends SemanticObject { }); } getQuantity() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#quantity")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#quantity")); } setPrice(price) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPrice"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPrice"; this.setSemanticPropertyAnonymous(property, price); } setDescription(description) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"; this.setSemanticPropertyLiteral(property, description); } getDescription() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"); } } //# sourceMappingURL=OrderLine.js.map \ No newline at end of file diff --git a/lib/OrderLine.js.map b/lib/OrderLine.js.map index 1244772..01f5f9c 100644 --- a/lib/OrderLine.js.map +++ b/lib/OrderLine.js.map @@ -1 +1 @@ -{"version":3,"file":"OrderLine.js","sourceRoot":"","sources":["../src/OrderLine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;AAMF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAK7D,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,cAAc;IAIpD,YAAmB,UAAuK;QACzL,MAAM,IAAI,GAAW,qGAAqG,CAAC;QAE3H,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACvE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAoC,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,GAAG,CAAC,CAAC;SACvJ;;YACI,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;QAEvE,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAA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CAAC,OAAwB;;YAE7C,IAAI,MAAM,GAAuB,SAAS,CAAC;YAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC,yGAAyG,CAAC,CAAC;YACvJ,IAAI,UAAU,EAAE;gBACf,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;gBACjG,IAAI,cAAc;oBAAE,MAAM,GAAwB,cAAc,CAAC;aACjE;YACD,OAAO,MAAM,CAAC;QAEf,CAAC;KAAA;IAGM,WAAW;QAEjB,OAAO,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,2GAA2G,CAAC,CAAC,CAAC;IACtJ,CAAC;IAGM,QAAQ,CAAC,KAAa;QAC5B,MAAM,QAAQ,GAAW,2GAA2G,CAAC;QACrI,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACpD,CAAC;IAEM,cAAc,CAAC,WAAmB;QACxC,MAAM,QAAQ,GAAW,8GAA8G,CAAC;QACxI,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACxD,CAAC;IAGM,cAAc;QAEpB,OAAO,IAAI,CAAC,mBAAmB,CAAC,8GAA8G,CAAC,CAAC;IACjJ,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/Person.js b/lib/Person.js index dbb2e30..c91c760 100644 --- a/lib/Person.js +++ b/lib/Person.js @@ -40,7 +40,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { import Agent from "./Agent.js"; export default class Person extends Agent { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Person"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Person"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -58,21 +58,21 @@ export default class Person extends Agent { parameters.organizations.forEach(e => this.affiliateTo(e)); } getLastName() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#familyName"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#familyName"); } getFirstName() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#firstName"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#firstName"); } setLastName(lastName) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#familyName"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#familyName"; this.setSemanticPropertyLiteral(property, lastName); } setFirstName(firstName) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#firstName"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#firstName"; this.setSemanticPropertyLiteral(property, firstName); } affiliateTo(organization) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#affiliates"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#affiliates"; if (organization.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, organization); } @@ -88,7 +88,7 @@ export default class Person extends Agent { var _a, e_1, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#affiliates"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#affiliates"); try { for (var _d = true, properties_1 = __asyncValues(properties), properties_1_1; properties_1_1 = yield properties_1.next(), _a = properties_1_1.done, !_a;) { _c = properties_1_1.value; diff --git a/lib/Person.js.map b/lib/Person.js.map index b76dfe0..ae3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UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,6GAA6G,CAAC,CAAC;;gBAC9J,KAA+B,eAAA,eAAA,cAAA,UAAU,CAAA,gBAAA;oBAAV,0BAAU;oBAAV,WAAU;;wBAA9B,MAAM,UAAU,KAAA,CAAA;wBAC1B,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;wBACjG,IAAI,cAAc;4BAAE,OAAO,CAAC,IAAI,CAAe,cAAc,CAAC,CAAC;;;;;iBAC/D;;;;;;;;;YACD,OAAO,OAAO,CAAC;;KACf;CAGD"} \ No newline at end of file diff --git a/lib/PhysicalCharacteristic.js b/lib/PhysicalCharacteristic.js index 17ce879..99bce9f 100644 --- a/lib/PhysicalCharacteristic.js +++ b/lib/PhysicalCharacteristic.js @@ -33,7 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge import Characteristic from "./Characteristic.js"; export default class PhysicalCharacteristic extends Characteristic { constructor(parameters) { - const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#PhysicalCharacteristic"; + const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#PhysicalCharacteristic"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -47,7 +47,7 @@ export default class PhysicalCharacteristic extends Characteristic { getQuantityDimension(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPhysicalDimension"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalDimension"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -57,7 +57,7 @@ export default class PhysicalCharacteristic extends Characteristic { }); } setQuantityDimension(quantityDimension) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPhysicalDimension"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalDimension"; this.setSemanticPropertyReference(property, quantityDimension); this.connector.store(quantityDimension); } diff --git a/lib/PhysicalCharacteristic.js.map b/lib/PhysicalCharacteristic.js.map index 72f1cf6..aeb7c03 100644 --- a/lib/PhysicalCharacteristic.js.map +++ b/lib/PhysicalCharacteristic.js.map @@ -1 +1 @@ -{"version":3,"file":"PhysicalCharacteristic.js","sourceRoot":"","sources":["../src/PhysicalCharacteristic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;AAEF,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAUhD,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,cAAc;IAGjE,YAAmB,UAA2K;QAC7L,MAAM,IAAI,GAAW,UAAU,CAAC,YAAY,CAAA,CAAC,CAAC,UAAU,CAAC,YAAY,CAAA,CAAC,CAAC,kHAAkH,CAAC;QAE1L,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACxG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAoC,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,GAAG,CAAC,CAAC;SACvJ;;YACI,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,UAA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No newline at end of file diff --git a/lib/Price.js b/lib/Price.js index 2001875..d74f2a0 100644 --- a/lib/Price.js +++ b/lib/Price.js @@ -33,7 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge import { SemanticObjectAnonymous } from "@virtual-assembly/semantizer"; export default class Price extends SemanticObjectAnonymous { constructor(parameters) { - const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Price"; + const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Price"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -52,7 +52,7 @@ export default class Price extends SemanticObjectAnonymous { getUnit(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasUnit"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) @@ -62,22 +62,22 @@ export default class Price extends SemanticObjectAnonymous { }); } setValue(value) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#value"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value"; this.setSemanticPropertyLiteral(property, value); } getValue() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#value")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value")); } setUnit(unit) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasUnit"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit"; this.setSemanticPropertyReference(property, unit); this.connector.store(unit); } getVatRate() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#VATrate")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATrate")); } setVatRate(vatRate) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#VATrate"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATrate"; this.setSemanticPropertyLiteral(property, vatRate); } } diff --git a/lib/Price.js.map b/lib/Price.js.map index 75ef6db..20680ee 100644 --- a/lib/Price.js.map +++ b/lib/Price.js.map @@ -1 +1 @@ -{"version":3,"file":"Price.js","sourceRoot":"","sources":["../src/Price.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;AAIF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAKtE,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,uBAAuB;IAIzD,YAAmB,UAAqJ;QACvK,MAAM,IAAI,GAAW,UAAU,CAAC,YAAY,CAAA,CAAC,CAAC,UAAU,CAAC,YAAY,CAAA,CAAC,CAAC,iGAAiG,CAAC;QAEzK,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACvE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAoC,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,GAAG,CAAC,CAAC;SACvJ;;YACI,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,YAAY,EA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ACpI,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/QuantitativeValue.js b/lib/QuantitativeValue.js index 0d12069..313db59 100644 --- a/lib/QuantitativeValue.js +++ b/lib/QuantitativeValue.js @@ -33,7 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge import { SemanticObjectAnonymous } from "@virtual-assembly/semantizer"; export default class QuantitativeValue extends SemanticObjectAnonymous { constructor(parameters) { - const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#QuantitativeValue"; + const type = parameters.semanticType ? parameters.semanticType : "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#QuantitativeValue"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -48,21 +48,21 @@ export default class QuantitativeValue extends SemanticObjectAnonymous { this.setQuantityValue(parameters.value); } getQuantityValue() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#value")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value")); } setQuantityUnit(quantityUnit) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasUnit"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit"; this.setSemanticPropertyReference(property, quantityUnit); this.connector.store(quantityUnit); } setQuantityValue(quantityValue) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#value"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value"; this.setSemanticPropertyLiteral(property, quantityValue); } getQuantityUnit(options) { return __awaiter(this, void 0, void 0, function* () { let result = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasUnit"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit"); if (semanticId) { const semanticObject = yield this.connector.fetch(semanticId, options); if (semanticObject) diff --git a/lib/QuantitativeValue.js.map b/lib/QuantitativeValue.js.map index f83970e..1dd8f94 100644 --- a/lib/QuantitativeValue.js.map +++ b/lib/QuantitativeValue.js.map @@ -1 +1 @@ -{"version":3,"file":"QuantitativeValue.js","sourceRoot":"","sources":["../src/QuantitativeValue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;AAIF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAKtE,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,uBAAuB;IAIrE,YAAmB,UAAmI;QACrJ,MAAM,IAAI,GAAW,UAAU,CAAC,YAAY,CAAA,CAAC,CAAC,UAAU,CAAC,YAAY,CAAA,CAAC,CAAC,6GAA6G,CAAC;QAErL,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACvE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAoC,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,GAAG,CAAC,CAAC;SACvJ;;YACI,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;QAEvE,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QAGtC,IAAI,UAAU,CAAC,IAAI;YAAE,IAAI,C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AC5C,MAAM,QAAQ,GAAW,wGAAwG,CAAC;QAClI,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAC1D,CAAC;IAGY,eAAe,CAAC,OAAwB;;YAEpD,IAAI,MAAM,GAAsB,SAAS,CAAC;YAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC,0GAA0G,CAAC,CAAC;YACxJ,IAAI,UAAU,EAAE;gBACf,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;gBACjG,IAAI,cAAc;oBAAE,MAAM,GAAuB,cAAc,CAAC;aAChE;YACD,OAAO,MAAM,CAAC;QAEf,CAAC;KAAA;CAGD"} \ No newline at end of file diff --git a/lib/SaleSession.js b/lib/SaleSession.js index aa7945b..4283fbc 100644 --- a/lib/SaleSession.js +++ b/lib/SaleSession.js @@ -40,7 +40,7 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { import { SemanticObject } from "@virtual-assembly/semantizer"; export default class SaleSession extends SemanticObject { constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#SaleSession"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#SaleSession"; if (parameters.other) { super({ semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) @@ -61,25 +61,25 @@ export default class SaleSession extends SemanticObject { parameters.offers.forEach(e => this.addOffer(e)); } getBeginDate() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#beginDate"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#beginDate"); } getEndDate() { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#endDate"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#endDate"); } setBeginDate(beginDate) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#beginDate"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#beginDate"; this.setSemanticPropertyLiteral(property, beginDate); } setEndDate(endDate) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#endDate"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#endDate"; this.setSemanticPropertyLiteral(property, endDate); } setQuantity(quantity) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#quantity"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#quantity"; this.setSemanticPropertyLiteral(property, quantity); } addOffer(offer) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lists"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lists"; if (offer.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, offer); } @@ -92,7 +92,7 @@ export default class SaleSession extends SemanticObject { var _a, e_1, _b, _c; return __awaiter(this, void 0, void 0, function* () { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lists"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lists"); try { for (var _d = true, properties_1 = __asyncValues(properties), properties_1_1; properties_1_1 = yield properties_1.next(), _a = properties_1_1.done, !_a;) { _c = properties_1_1.value; @@ -119,7 +119,7 @@ export default class SaleSession extends SemanticObject { }); } getQuantity() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#quantity")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#quantity")); } } //# sourceMappingURL=SaleSession.js.map \ No newline at end of file diff --git a/lib/SaleSession.js.map b/lib/SaleSession.js.map index 1b70f49..c178304 100644 --- a/lib/SaleSession.js.map +++ b/lib/SaleSession.js.map @@ -1 +1 @@ -{"version":3,"file":"SaleSession.js","sourceRoot":"","sources":["../src/SaleSession.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;;;;;;;;AAIF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAK7D,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,cAAc;IAItD,YAAmB,UAAgL;QAClM,MAAM,IAAI,GAAW,uGAAuG,CAAC;QAE7H,IAAI,UAAU,CAAC,KAAK,EAAE;YACrB,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YACvE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,2CAA2C,GAAG,IAAI,GAAG,oCAAoC,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,GAAG,CAAC,CAAC;SACvJ;;YACI,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,UAAW,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;QAEvE,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QAGtC,IAAI,CAAC,UAAU,CAAC,UAAU;YACzB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,UAAU,CAAC,SAAS;YAAE,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAClE,IAAI,UAAU,CAAC,OAAO;YAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CA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QACrI,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;IAGM,QAAQ,CAAC,KAAa;QAC5B,MAAM,QAAQ,GAAW,wGAAwG,CAAC;QAClI,IAAI,KAAK,CAAC,yBAAyB,EAAE,EAAE;YACtC,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;SACnD;aACI;YACJ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,4BAA4B,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;SACnD;IACF,CAAC;IAGY,SAAS,CAAC,OAAwB;;;YAE9C,MAAM,OAAO,GAAG,IAAI,KAAK,EAAU,CAAC;YACpC,MAAM,UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,wGAAwG,CAAC,CAAC;;gBACzJ,KAA+B,eAAA,eAAA,cAAA,UAAU,CAAA,gBAAA;oBAAV,0BAAU;oBAAV,WAAU;;wBAA9B,MAAM,UAAU,KAAA,CAAA;wBAC1B,MAAM,cAAc,GAA6B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;wBACjG,IAAI,cAAc;4BAAE,OAAO,CAAC,IAAI,CAAU,cAAc,CAAC,CAAC;;;;;iBAC1D;;;;;;;;;YACD,OAAO,OAAO,CAAC;;KACf;IAGM,WAAW;QAEjB,OAAO,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,2GAA2G,CAAC,CAAC,CAAC;IACtJ,CAAC;CAGD"} \ No newline at end of file diff --git a/lib/SuppliedProduct.js b/lib/SuppliedProduct.js index 678d6f6..7167793 100644 --- a/lib/SuppliedProduct.js +++ b/lib/SuppliedProduct.js @@ -24,14 +24,14 @@ import DefinedProduct from "./DefinedProduct.js"; export default class SuppliedProduct extends DefinedProduct { getTotalTheoreticalStock() { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#totalTheoreticalStock")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#totalTheoreticalStock")); } setTotalTheoreticalStock(totalTheoreticalStock) { - const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#totalTheoreticalStock"; + const property = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#totalTheoreticalStock"; this.setSemanticPropertyLiteral(property, totalTheoreticalStock); } constructor(parameters) { - const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#SuppliedProduct"; + const type = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#SuppliedProduct"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId, other: parameters.other }); if (!parameters.other.isSemanticTypeOf(type)) diff --git a/lib/SuppliedProduct.js.map b/lib/SuppliedProduct.js.map index c77279e..b8c5425 100644 --- a/lib/SuppliedProduct.js.map +++ b/lib/SuppliedProduct.js.map @@ -1 +1 @@ -{"version":3,"file":"SuppliedProduct.js","sourceRoot":"","sources":["../src/SuppliedProduct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;AAWF,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAShD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,cAAc;IAGnD,wBAAwB;QAE9B,OAAO,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,iHAAiH,CAAC,CAAC,CAAC;IAC5J,CAAC;IAGM,wBAAwB,CAAC,qBAA6B;QAC5D,MAAM,QAAQ,GAAW,iHAAiH,CAAC;QAC3I,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;IAClE,CAAC;IAGD,YAAmB,UAAuoB;QACzpB,MAAM,IAAI,GAAW,2GAA2G,CAAC;QAEjI,IAAI,UAAU,CAAC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,WAAW,EAAE,WAAW,EAAE,UAAU,CAAC,WAAW,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,wBAAwB,EAAE,UAAU,CAAC,wBAAwB,EAAE,uBAAuB,EAAE,UAAU,CAAC,uBAAuB,EAAE,uBAAuB,EAAE,UAAU,CAAC,uBAAuB,EAAE,uBAAuB,EAAE,UAAU,CAAC,uBAAuB,EAAE,kBAAkB,EAAE,UAAU,CAAC,kBAAkB,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,EAAE,cAAc,EAAE,UAAU,CAAC,cAAc,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC;QAKxxB,IAAI,CAAC,UAAU,CAAC,UAAU;YACzB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,UAAU,CAAC,qBAAqB,IAAI,UAAU,CAAC,qBAAqB,KAAK,CAAC;YAAE,IAAI,CAAC,wBAAwB,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;IACjJ,CAAC;CAED"} \ No newline at end of file diff --git a/lib/context.js b/lib/context.js index 311d31d..4468f06 100644 --- a/lib/context.js +++ b/lib/context.js @@ -2,7 +2,7 @@ const context = { "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "skos": "http://www.w3.org/2004/02/skos/core#", "dc": "http://purl.org/dc/elements/1.1/#", - "dfc-b": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#", + "dfc-b": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#", "dfc-t": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_TechnicalOntology.owl#", "dfc-m": "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/measures.rdf#", "dfc-pt": "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/productTypes.rdf#", diff --git a/lib/context.js.map b/lib/context.js.map index 75accd6..f372d67 100644 --- a/lib/context.js.map +++ b/lib/context.js.map @@ -1 +1 @@ -{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;IACZ,MAAM,EAAE,uCAAuC;IAC/C,MAAM,EAAG,sCAAsC;IAC/C,IAAI,EAAE,mCAAmC;IACzC,OAAO,EAAE,4FAA4F;IACrG,OAAO,EAAE,oGAAoG;IAC7G,OAAO,EAAE,yFAAyF;IACpG,QAAQ,EAAE,6FAA6F;IACvG,OAAO,EAAE,uFAAuF;IAC9F,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,mBAAmB,EAAC;QAClB,OAAO,EAAC,KAAK;KACd;IACD,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,kBAAkB,EAAC;QACjB,OAAO,EAAC,KAAK;KACd;IACD,oBAAoB,EAAC;QACnB,OAAO,EAAC,KAAK;KACd;IACD,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,kBAAkB,EAAC;QACjB,OAAO,EAAC,KAAK;KACd;IACD,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,sBAAsB,EAAC;QACrB,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,6BAA6B,EAAC;QAC5B,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,4BAA4B,EAAC;QAC3B,OAAO,EAAC,KAAK;KACd;IACD,6BAA6B,EAAC;QAC5B,OAAO,EAAC,KAAK;KACd;IACD,4BAA4B,EAAC;QAC3B,OAAO,EAAC,KAAK;KACd;IACD,WAAW,EAAC;QACV,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,iBAAiB,EAAC;QAChB,OAAO,EAAC,KAAK;KACd;CACF,CAAA;AACH,eAAe,OAAO,CAAC"} \ No newline at end of file +{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;IACZ,MAAM,EAAE,uCAAuC;IAC/C,MAAM,EAAG,sCAAsC;IAC/C,IAAI,EAAE,mCAAmC;IACzC,OAAO,EAAE,mGAAmG;IAC5G,OAAO,EAAE,oGAAoG;IAC7G,OAAO,EAAE,yFAAyF;IACpG,QAAQ,EAAE,6FAA6F;IACvG,OAAO,EAAE,uFAAuF;IAC9F,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,mBAAmB,EAAC;QAClB,OAAO,EAAC,KAAK;KACd;IACD,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,kBAAkB,EAAC;QACjB,OAAO,EAAC,KAAK;KACd;IACD,oBAAoB,EAAC;QACnB,OAAO,EAAC,KAAK;KACd;IACD,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,kBAAkB,EAAC;QACjB,OAAO,EAAC,KAAK;KACd;IACD,eAAe,EAAC;QACd,OAAO,EAAC,KAAK;KACd;IACD,sBAAsB,EAAC;QACrB,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,6BAA6B,EAAC;QAC5B,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,4BAA4B,EAAC;QAC3B,OAAO,EAAC,KAAK;KACd;IACD,6BAA6B,EAAC;QAC5B,OAAO,EAAC,KAAK;KACd;IACD,4BAA4B,EAAC;QAC3B,OAAO,EAAC,KAAK;KACd;IACD,WAAW,EAAC;QACV,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,gBAAgB,EAAC;QACf,OAAO,EAAC,KAAK;KACd;IACD,iBAAiB,EAAC;QAChB,OAAO,EAAC,KAAK;KACd;CACF,CAAA;AACH,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 3a342a6..5f1a6b5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "author": "Maxime Lecoq", "license": "MIT", "type": "module", - "version": "1.0.0-alpha.3", + "version": "1.0.0-alpha.4", "repository": { "type": "git", "url": "https://github.com/datafoodconsortium/connector-typescript.git", diff --git a/src/Address.ts b/src/Address.ts index 17ffdf7..48abcf1 100644 --- a/src/Address.ts +++ b/src/Address.ts @@ -33,7 +33,7 @@ export default class Address extends SemanticObject implements IAddress { protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, street?: string, postalCode?: string, city?: string, country?: string, doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Address"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Address"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -54,50 +54,50 @@ export default class Address extends SemanticObject implements IAddress { } public setCountry(country: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCountry"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCountry"; this.setSemanticPropertyLiteral(property, country); } public setStreet(street: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasStreet"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasStreet"; this.setSemanticPropertyLiteral(property, street); } public setCity(city: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCity"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCity"; this.setSemanticPropertyLiteral(property, city); } public getCountry(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCountry"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCountry"); } public setPostalCode(postalCode: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPostalCode"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPostalCode"; this.setSemanticPropertyLiteral(property, postalCode); } public getPostalCode(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPostalCode"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPostalCode"); } public getCity(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCity"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCity"); } public getStreet(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasStreet"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasStreet"); } diff --git a/src/Agent.ts b/src/Agent.ts index 5b8a30b..8fb72d5 100644 --- a/src/Agent.ts +++ b/src/Agent.ts @@ -44,7 +44,7 @@ export default abstract class Agent extends SemanticObject implements IAgent { } public addLocalization(localization: IAddress): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAddress"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAddress"; if (localization.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, localization); } @@ -63,7 +63,7 @@ export default abstract class Agent extends SemanticObject implements IAgent { public async getLocalizations(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAddress"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAddress"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); diff --git a/src/AllergenCharacteristic.ts b/src/AllergenCharacteristic.ts index 1b28f41..13b9b0e 100644 --- a/src/AllergenCharacteristic.ts +++ b/src/AllergenCharacteristic.ts @@ -36,7 +36,7 @@ export default class AllergenCharacteristic extends Characteristic implements IA public constructor(parameters: {connector: IConnector, semanticId?: string, semanticType?: string, other?: Semanticable, unit?: IUnit, value?: number, allergenDimension?: IAllergenDimension}) { - const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#AllergenCharacteristic"; + const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#AllergenCharacteristic"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId!, other: parameters.other }); @@ -54,7 +54,7 @@ export default class AllergenCharacteristic extends Characteristic implements IA public async getQuantityDimension(options?: IGetterOptions): Promise { let result: ICharacteristicDimension | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAllergenDimension"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenDimension"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -65,7 +65,7 @@ export default class AllergenCharacteristic extends Characteristic implements IA public setQuantityDimension(quantityDimension: ICharacteristicDimension): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAllergenDimension"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenDimension"; this.setSemanticPropertyReference(property, quantityDimension); this.connector.store(quantityDimension); } diff --git a/src/Catalog.ts b/src/Catalog.ts index ff70dd8..52718e0 100644 --- a/src/Catalog.ts +++ b/src/Catalog.ts @@ -36,7 +36,7 @@ export default class Catalog extends SemanticObject implements ICatalog { protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, maintainers?: IEnterprise[], items?: ICatalogItem[], doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Catalog"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Catalog"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -57,7 +57,7 @@ export default class Catalog extends SemanticObject implements ICatalog { public async getItems(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lists"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lists"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -67,7 +67,7 @@ export default class Catalog extends SemanticObject implements ICatalog { public addMaintainer(maintainer: IEnterprise): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#maintainedBy"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#maintainedBy"; if (maintainer.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, maintainer); } @@ -86,7 +86,7 @@ export default class Catalog extends SemanticObject implements ICatalog { public async getMaintainers(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#maintainedBy"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#maintainedBy"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -96,7 +96,7 @@ export default class Catalog extends SemanticObject implements ICatalog { public addItem(item: ICatalogItem): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lists"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lists"; if (item.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, item); } diff --git a/src/CatalogItem.ts b/src/CatalogItem.ts index f9b7de7..b149b28 100644 --- a/src/CatalogItem.ts +++ b/src/CatalogItem.ts @@ -36,7 +36,7 @@ export default class CatalogItem extends SemanticObject implements ICatalogItem protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, product?: IDefinedProduct, sku?: string, stockLimitation?: number, offers?: IOffer[], catalogs?: ICatalog[], doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#CatalogItem"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#CatalogItem"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -58,7 +58,7 @@ export default class CatalogItem extends SemanticObject implements ICatalogItem } public registerInCatalog(repository: ICatalog): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#listedIn"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#listedIn"; if (repository.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, repository); } @@ -72,7 +72,7 @@ export default class CatalogItem extends SemanticObject implements ICatalogItem public async getCatalogs(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#listedIn"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#listedIn"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -81,7 +81,7 @@ export default class CatalogItem extends SemanticObject implements ICatalogItem } public setOfferedProduct(offeredProduct: IDefinedProduct): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#references"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#references"; this.setSemanticPropertyReference(property, offeredProduct); this.connector.store(offeredProduct); } @@ -90,7 +90,7 @@ export default class CatalogItem extends SemanticObject implements ICatalogItem public async getOfferers(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredThrough"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredThrough"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -102,7 +102,7 @@ export default class CatalogItem extends SemanticObject implements ICatalogItem public async getOfferedProduct(options?: IGetterOptions): Promise { let result: IDefinedProduct | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#references"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#references"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -113,7 +113,7 @@ export default class CatalogItem extends SemanticObject implements ICatalogItem public addOffer(offer: IOffer): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredThrough"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredThrough"; if (offer.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, offer); } @@ -124,24 +124,24 @@ export default class CatalogItem extends SemanticObject implements ICatalogItem } public setStockLimitation(stockLimitation: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#stockLimitation"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation"; this.setSemanticPropertyLiteral(property, stockLimitation); } public getStockLimitation(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#stockLimitation")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation")); } public getSku(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#sku"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#sku"); } public setSku(sku: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#sku"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#sku"; this.setSemanticPropertyLiteral(property, sku); } diff --git a/src/ConnectorFactory.ts b/src/ConnectorFactory.ts index f33bc87..43593ae 100644 --- a/src/ConnectorFactory.ts +++ b/src/ConnectorFactory.ts @@ -128,7 +128,7 @@ export default class ConnectorFactory implements IConnectorFactory { public createFromType(type: string): Semanticable | undefined { let result: Semanticable | undefined = undefined; - const prefix: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#"; + const prefix: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#"; switch (type) { case prefix + "Enterprise": result = this.createEnterprise({ semanticId: "" }); diff --git a/src/CustomerCategory.ts b/src/CustomerCategory.ts index 9e16dfd..474e031 100644 --- a/src/CustomerCategory.ts +++ b/src/CustomerCategory.ts @@ -33,7 +33,7 @@ export default class CustomerCategory extends SemanticObject implements ICustome protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, description?: string, doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#CustomerCategory"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#CustomerCategory"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -51,14 +51,14 @@ export default class CustomerCategory extends SemanticObject implements ICustome } public setDescription(description: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"; this.setSemanticPropertyLiteral(property, description); } public getDescription(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"); } diff --git a/src/DefinedProduct.ts b/src/DefinedProduct.ts index 51ed9be..1279205 100644 --- a/src/DefinedProduct.ts +++ b/src/DefinedProduct.ts @@ -69,20 +69,20 @@ export default abstract class DefinedProduct extends SemanticObject implements I } public setName(name: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#name"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#name"; this.setSemanticPropertyLiteral(property, name); } public getName(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#name"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#name"); } public async getPartOrigin(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPartOrigin"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPartOrigin"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -92,7 +92,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public addNutrientCharacteristic(nutrientCharacteristic: INutrientCharacteristic): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNutrientCharacteristic"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientCharacteristic"; if (nutrientCharacteristic.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, nutrientCharacteristic); } @@ -105,14 +105,14 @@ export default abstract class DefinedProduct extends SemanticObject implements I public getUsageOrStorageConditions(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#usageOrStorageCondition"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#usageOrStorageCondition"); } public async getGeographicalOrigin(options?: IGetterOptions): Promise { let result: IGeographicalOrigin | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasGeographicalOrigin"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasGeographicalOrigin"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -124,7 +124,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public getAlcoholPercentage(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#alcoholPercentage")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#alcoholPercentage")); } @@ -136,7 +136,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getNutrientCharacteristics(options?: IGetterOptions): Promise> { const results = new Array(); - const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNutrientCharacteristic"); + const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientCharacteristic"); blankNodesId.forEach(blankNodeId => { const blankNode = this.connector.getDefaultFactory().createFromRdfDataset(blankNodeId); results.push(blankNode); @@ -147,7 +147,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getPhysicalCharacteristics(options?: IGetterOptions): Promise> { const results = new Array(); - const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPhysicalCharacteristic"); + const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalCharacteristic"); blankNodesId.forEach(blankNodeId => { const blankNode = this.connector.getDefaultFactory().createFromRdfDataset(blankNodeId); results.push(blankNode); @@ -163,7 +163,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getNatureOrigin(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNatureOrigin"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNatureOrigin"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -173,7 +173,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public addPartOrigin(partOrigin: IPartOrigin): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPartOrigin"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPartOrigin"; if (partOrigin.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, partOrigin); } @@ -190,19 +190,19 @@ export default abstract class DefinedProduct extends SemanticObject implements I public setLifetime(lifetime: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lifetime"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lifetime"; this.setSemanticPropertyLiteral(property, lifetime); } public setAlcoholPercentage(alcoholPercentage: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#alcoholPercentage"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#alcoholPercentage"; this.setSemanticPropertyLiteral(property, alcoholPercentage); } public addPhysicalCharacteristic(physicalCharacteristic: IPhysicalCharacteristic): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPhysicalCharacteristic"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalCharacteristic"; if (physicalCharacteristic.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, physicalCharacteristic); } @@ -216,7 +216,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getAllergenCharacteristics(options?: IGetterOptions): Promise> { const results = new Array(); - const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAllergenCharacteristic"); + const blankNodesId = this.getSemanticPropertyAnonymousAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenCharacteristic"); blankNodesId.forEach(blankNodeId => { const blankNode = this.connector.getDefaultFactory().createFromRdfDataset(blankNodeId); results.push(blankNode); @@ -226,12 +226,12 @@ export default abstract class DefinedProduct extends SemanticObject implements I public getLifetime(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lifetime"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lifetime"); } public addNatureOrigin(natureOrigin: INatureOrigin): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNatureOrigin"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNatureOrigin"; if (natureOrigin.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, natureOrigin); } @@ -243,7 +243,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public addAllergenCharacteristic(allergenCharacteristic: IAllergenCharacteristic): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasAllergenCharacteristic"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenCharacteristic"; if (allergenCharacteristic.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, allergenCharacteristic); } @@ -265,26 +265,26 @@ export default abstract class DefinedProduct extends SemanticObject implements I public setUsageOrStorageConditions(usageOrStorageConditions: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#usageOrStorageCondition"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#usageOrStorageCondition"; this.setSemanticPropertyLiteral(property, usageOrStorageConditions); } public setGeographicalOrigin(geographicalOrigin: IGeographicalOrigin): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasGeographicalOrigin"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasGeographicalOrigin"; this.setSemanticPropertyReference(property, geographicalOrigin); this.connector.store(geographicalOrigin); } public setDescription(description: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"; this.setSemanticPropertyLiteral(property, description); } public getDescription(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"); } public removeCertification(certification: ICertification): void { @@ -295,7 +295,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getCertifications(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCertification"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCertification"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -305,7 +305,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public addCertification(certification: ICertification): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasCertification"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCertification"; if (certification.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, certification); } @@ -317,7 +317,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getQuantity(options?: IGetterOptions): Promise { - const blankNode: any = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasQuantity"); + const blankNode: any = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasQuantity"); return this.connector.getDefaultFactory().createFromRdfDataset(blankNode); } @@ -325,7 +325,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getProductType(options?: IGetterOptions): Promise { let result: IProductType | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasType"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasType"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -343,7 +343,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getClaims(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasClaim"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasClaim"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -353,7 +353,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public addClaim(claim: IClaim): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasClaim"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasClaim"; if (claim.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, claim); } @@ -365,19 +365,19 @@ export default abstract class DefinedProduct extends SemanticObject implements I public setProductType(productType: IProductType): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasType"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasType"; this.setSemanticPropertyReference(property, productType); this.connector.store(productType); } public setQuantity(quantity: IQuantity): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasQuantity"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasQuantity"; this.setSemanticPropertyAnonymous(property, quantity); } public addCatalogItem(catalogItem: ICatalogItem): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#referencedBy"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#referencedBy"; if (catalogItem.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, catalogItem); } @@ -391,7 +391,7 @@ export default abstract class DefinedProduct extends SemanticObject implements I public async getCatalogItems(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#referencedBy"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#referencedBy"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); diff --git a/src/Enterprise.ts b/src/Enterprise.ts index 5a70610..f5ba218 100644 --- a/src/Enterprise.ts +++ b/src/Enterprise.ts @@ -41,7 +41,7 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, localizations?: IAddress[], description?: string, vatNumber?: string, customerCategories?: ICustomerCategory[], catalogs?: ICatalog[], catalogItems?: ICatalogItem[], suppliedProducts?: ISuppliedProduct[], technicalProducts?: ITechnicalProduct[], doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Enterprise"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Enterprise"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId!, other: parameters.other }); @@ -65,7 +65,7 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup } public manageCatalogItem(catalogItem: ICatalogItem): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#manages"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#manages"; if (catalogItem.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, catalogItem); } @@ -79,7 +79,7 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup public async getManagedCatalogItems(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#manages"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#manages"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -93,7 +93,7 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup } public maintainCatalog(catalog: ICatalog): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#maintains"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#maintains"; if (catalog.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, catalog); } @@ -107,7 +107,7 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup public async getMaintainedCatalogs(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#maintains"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#maintains"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -126,7 +126,7 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup public supplyProduct(suppliedProduct: ISuppliedProduct): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#supplies"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#supplies"; if (suppliedProduct.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, suppliedProduct); } @@ -140,7 +140,7 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup public async getSuppliedProducts(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#supplies"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#supplies"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -177,31 +177,31 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup } public setDescription(description: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasDescription"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasDescription"; this.setSemanticPropertyLiteral(property, description); } public getDescription(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasDescription"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasDescription"); } public setVatNumber(vatNumber: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#VATnumber"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATnumber"; this.setSemanticPropertyLiteral(property, vatNumber); } public getVatNumber(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#VATnumber"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATnumber"); } public async getCustomerCategories(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#defines"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#defines"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -211,7 +211,7 @@ export default class Enterprise extends Agent implements Onboardable, ProductSup public addCustomerCategory(customerCategory: ICustomerCategory): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#defines"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#defines"; if (customerCategory.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, customerCategory); } diff --git a/src/NutrientCharacteristic.ts b/src/NutrientCharacteristic.ts index 918af7d..9d5259e 100644 --- a/src/NutrientCharacteristic.ts +++ b/src/NutrientCharacteristic.ts @@ -36,7 +36,7 @@ export default class NutrientCharacteristic extends Characteristic implements IN public constructor(parameters: {connector: IConnector, semanticId?: string, semanticType?: string, other?: Semanticable, unit?: IUnit, value?: number, nutrientDimension?: INutrientDimension}) { - const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#NutrientCharacteristic"; + const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#NutrientCharacteristic"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId!, other: parameters.other }); @@ -54,7 +54,7 @@ export default class NutrientCharacteristic extends Characteristic implements IN public async getQuantityDimension(options?: IGetterOptions): Promise { let result: ICharacteristicDimension | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNutrientDimension"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientDimension"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -65,7 +65,7 @@ export default class NutrientCharacteristic extends Characteristic implements IN public setQuantityDimension(quantityDimension: ICharacteristicDimension): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasNutrientDimension"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientDimension"; this.setSemanticPropertyReference(property, quantityDimension); this.connector.store(quantityDimension); } diff --git a/src/Offer.ts b/src/Offer.ts index fac3a8c..6526b42 100644 --- a/src/Offer.ts +++ b/src/Offer.ts @@ -36,7 +36,7 @@ export default class Offer extends SemanticObject implements IOffer { protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, offeredItem?: ICatalogItem, offeredTo?: ICustomerCategory, price?: IPrice, stockLimitation?: number, doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Offer"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Offer"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -57,21 +57,21 @@ export default class Offer extends SemanticObject implements IOffer { } public setPrice(price: IPrice): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPrice"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPrice"; this.setSemanticPropertyAnonymous(property, price); } public async getPrice(options?: IGetterOptions): Promise { - const blankNode: any = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPrice"); + const blankNode: any = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPrice"); return this.connector.getDefaultFactory().createFromRdfDataset(blankNode); } public async getOfferedItem(options?: IGetterOptions): Promise { let result: ICatalogItem | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredItem"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredItem"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -82,7 +82,7 @@ export default class Offer extends SemanticObject implements IOffer { public setCustomerCategory(customerCategory: ICustomerCategory): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredTo"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredTo"; this.setSemanticPropertyReference(property, customerCategory); this.connector.store(customerCategory); } @@ -91,7 +91,7 @@ export default class Offer extends SemanticObject implements IOffer { public async getCustomerCategory(options?: IGetterOptions): Promise { let result: ICustomerCategory | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredTo"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredTo"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -102,20 +102,20 @@ export default class Offer extends SemanticObject implements IOffer { public setOfferedItem(offeredItem: ICatalogItem): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#offeredItem"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredItem"; this.setSemanticPropertyReference(property, offeredItem); this.connector.store(offeredItem); } public setStockLimitation(stockLimitation: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#stockLimitation"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation"; this.setSemanticPropertyLiteral(property, stockLimitation); } public getStockLimitation(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#stockLimitation")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation")); } diff --git a/src/Order.ts b/src/Order.ts index 4bd23ea..5cf95a4 100644 --- a/src/Order.ts +++ b/src/Order.ts @@ -36,7 +36,7 @@ export default class Order extends SemanticObject implements IOrder { protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, number?: string, date?: string, saleSession?: ISaleSession, client?: IAgent, lines?: IOrderLine[], doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Order"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Order"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -58,25 +58,25 @@ export default class Order extends SemanticObject implements IOrder { } public setDate(date: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#date"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#date"; this.setSemanticPropertyLiteral(property, date); } public getNumber(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#orderNumber"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#orderNumber"); } public getDate(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#date"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#date"); } public addLine(line: IOrderLine): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPart"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPart"; if (line.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, line); } @@ -90,7 +90,7 @@ export default class Order extends SemanticObject implements IOrder { public async getClient(options?: IGetterOptions): Promise { let result: IAgent | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#orderedBy"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#orderedBy"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -103,7 +103,7 @@ export default class Order extends SemanticObject implements IOrder { public async getSaleSession(options?: IGetterOptions): Promise { let result: ISaleSession | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#belongsTo"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#belongsTo"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -114,7 +114,7 @@ export default class Order extends SemanticObject implements IOrder { public setClient(client: IAgent): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#orderedBy"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#orderedBy"; this.setSemanticPropertyReference(property, client); this.connector.store(client); } @@ -123,7 +123,7 @@ export default class Order extends SemanticObject implements IOrder { public async getLines(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPart"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPart"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -133,13 +133,13 @@ export default class Order extends SemanticObject implements IOrder { public setNumber(number: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#orderNumber"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#orderNumber"; this.setSemanticPropertyLiteral(property, number); } public setSaleSession(saleSession: ISaleSession): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#belongsTo"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#belongsTo"; this.setSemanticPropertyReference(property, saleSession); this.connector.store(saleSession); } diff --git a/src/OrderLine.ts b/src/OrderLine.ts index 1e1fd9e..96cb3e7 100644 --- a/src/OrderLine.ts +++ b/src/OrderLine.ts @@ -36,7 +36,7 @@ export default class OrderLine extends SemanticObject implements IOrderLine { protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, quantity?: number, price?: IPrice, offer?: IOffer, order?: IOrder, doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#OrderLine"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#OrderLine"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -57,27 +57,27 @@ export default class OrderLine extends SemanticObject implements IOrderLine { } public setOffer(offer: IOffer): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#concerns"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#concerns"; this.setSemanticPropertyReference(property, offer); this.connector.store(offer); } public setQuantity(quantity: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#quantity"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#quantity"; this.setSemanticPropertyLiteral(property, quantity); } public async getPrice(options?: IGetterOptions): Promise { - const blankNode: any = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPrice"); + const blankNode: any = this.getSemanticPropertyAnonymous("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPrice"); return this.connector.getDefaultFactory().createFromRdfDataset(blankNode); } public setOrder(order: IOrder): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#partOf"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#partOf"; this.setSemanticPropertyReference(property, order); this.connector.store(order); } @@ -86,7 +86,7 @@ export default class OrderLine extends SemanticObject implements IOrderLine { public async getOffer(options?: IGetterOptions): Promise { let result: IOffer | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#concerns"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#concerns"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -99,7 +99,7 @@ export default class OrderLine extends SemanticObject implements IOrderLine { public async getOrder(options?: IGetterOptions): Promise { let result: IOrder | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#partOf"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#partOf"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -111,24 +111,24 @@ export default class OrderLine extends SemanticObject implements IOrderLine { public getQuantity(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#quantity")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#quantity")); } public setPrice(price: IPrice): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPrice"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPrice"; this.setSemanticPropertyAnonymous(property, price); } public setDescription(description: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"; this.setSemanticPropertyLiteral(property, description); } public getDescription(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#description"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description"); } diff --git a/src/Person.ts b/src/Person.ts index b436956..2bd04a3 100644 --- a/src/Person.ts +++ b/src/Person.ts @@ -35,7 +35,7 @@ export default class Person extends Agent implements IPerson { public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, firstName?: string, lastName?: string, localizations?: IAddress[], organizations?: IEnterprise[], doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Person"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Person"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId!, other: parameters.other }); @@ -56,29 +56,29 @@ export default class Person extends Agent implements IPerson { public getLastName(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#familyName"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#familyName"); } public getFirstName(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#firstName"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#firstName"); } public setLastName(lastName: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#familyName"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#familyName"; this.setSemanticPropertyLiteral(property, lastName); } public setFirstName(firstName: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#firstName"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#firstName"; this.setSemanticPropertyLiteral(property, firstName); } public affiliateTo(organization: IEnterprise): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#affiliates"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#affiliates"; if (organization.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, organization); } @@ -97,7 +97,7 @@ export default class Person extends Agent implements IPerson { public async getAffiliatedOrganizations(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#affiliates"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#affiliates"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); diff --git a/src/PhysicalCharacteristic.ts b/src/PhysicalCharacteristic.ts index cf509c8..0ad825c 100644 --- a/src/PhysicalCharacteristic.ts +++ b/src/PhysicalCharacteristic.ts @@ -36,7 +36,7 @@ export default class PhysicalCharacteristic extends Characteristic implements IP public constructor(parameters: {connector: IConnector, semanticId?: string, semanticType?: string, other?: Semanticable, unit?: IUnit, value?: number, physicalDimension?: IPhysicalDimension}) { - const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#PhysicalCharacteristic"; + const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#PhysicalCharacteristic"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId!, other: parameters.other }); @@ -54,7 +54,7 @@ export default class PhysicalCharacteristic extends Characteristic implements IP public async getQuantityDimension(options?: IGetterOptions): Promise { let result: ICharacteristicDimension | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPhysicalDimension"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalDimension"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -65,7 +65,7 @@ export default class PhysicalCharacteristic extends Characteristic implements IP public setQuantityDimension(quantityDimension: ICharacteristicDimension): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasPhysicalDimension"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalDimension"; this.setSemanticPropertyReference(property, quantityDimension); this.connector.store(quantityDimension); } diff --git a/src/Price.ts b/src/Price.ts index 93b1b35..bab0671 100644 --- a/src/Price.ts +++ b/src/Price.ts @@ -34,7 +34,7 @@ export default class Price extends SemanticObjectAnonymous implements IPrice { protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, semanticType?: string, other?: Semanticable, value?: number, vatRate?: number, unit?: IUnit}) { - const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#Price"; + const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Price"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -54,7 +54,7 @@ export default class Price extends SemanticObjectAnonymous implements IPrice { public async getUnit(options?: IGetterOptions): Promise { let result: IUnit | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasUnit"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; @@ -65,19 +65,19 @@ export default class Price extends SemanticObjectAnonymous implements IPrice { public setValue(value: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#value"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value"; this.setSemanticPropertyLiteral(property, value); } public getValue(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#value")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value")); } public setUnit(unit: IUnit): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasUnit"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit"; this.setSemanticPropertyReference(property, unit); this.connector.store(unit); } @@ -85,12 +85,12 @@ export default class Price extends SemanticObjectAnonymous implements IPrice { public getVatRate(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#VATrate")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATrate")); } public setVatRate(vatRate: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#VATrate"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATrate"; this.setSemanticPropertyLiteral(property, vatRate); } diff --git a/src/QuantitativeValue.ts b/src/QuantitativeValue.ts index e3dfc31..f3ea1c8 100644 --- a/src/QuantitativeValue.ts +++ b/src/QuantitativeValue.ts @@ -34,7 +34,7 @@ export default class QuantitativeValue extends SemanticObjectAnonymous implement protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, semanticType?: string, other?: Semanticable, unit?: IUnit, value?: number}) { - const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#QuantitativeValue"; + const type: string = parameters.semanticType? parameters.semanticType: "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#QuantitativeValue"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -52,19 +52,19 @@ export default class QuantitativeValue extends SemanticObjectAnonymous implement public getQuantityValue(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#value")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value")); } public setQuantityUnit(quantityUnit: IUnit): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasUnit"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit"; this.setSemanticPropertyReference(property, quantityUnit); this.connector.store(quantityUnit); } public setQuantityValue(quantityValue: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#value"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value"; this.setSemanticPropertyLiteral(property, quantityValue); } @@ -72,7 +72,7 @@ export default class QuantitativeValue extends SemanticObjectAnonymous implement public async getQuantityUnit(options?: IGetterOptions): Promise { let result: IUnit | undefined = undefined; - const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#hasUnit"); + const semanticId = this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit"); if (semanticId) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) result = semanticObject; diff --git a/src/SaleSession.ts b/src/SaleSession.ts index 0abb246..f5870cf 100644 --- a/src/SaleSession.ts +++ b/src/SaleSession.ts @@ -34,7 +34,7 @@ export default class SaleSession extends SemanticObject implements ISaleSession protected connector: IConnector; public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, beginDate?: string, endDate?: string, quantity?: number, offers?: IOffer[], doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#SaleSession"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#SaleSession"; if (parameters.other) { super({ semanticId: parameters.semanticId!, other: parameters.other }); @@ -56,35 +56,35 @@ export default class SaleSession extends SemanticObject implements ISaleSession public getBeginDate(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#beginDate"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#beginDate"); } public getEndDate(): string { - return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#endDate"); + return this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#endDate"); } public setBeginDate(beginDate: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#beginDate"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#beginDate"; this.setSemanticPropertyLiteral(property, beginDate); } public setEndDate(endDate: string): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#endDate"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#endDate"; this.setSemanticPropertyLiteral(property, endDate); } public setQuantity(quantity: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#quantity"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#quantity"; this.setSemanticPropertyLiteral(property, quantity); } public addOffer(offer: IOffer): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lists"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lists"; if (offer.isSemanticObjectAnonymous()) { this.addSemanticPropertyAnonymous(property, offer); } @@ -98,7 +98,7 @@ export default class SaleSession extends SemanticObject implements ISaleSession public async getOffers(options?: IGetterOptions): Promise> { const results = new Array(); - const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#lists"); + const properties = this.getSemanticPropertyAll("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lists"); for await (const semanticId of properties) { const semanticObject: Semanticable | undefined = await this.connector.fetch(semanticId, options); if (semanticObject) results.push( semanticObject); @@ -109,7 +109,7 @@ export default class SaleSession extends SemanticObject implements ISaleSession public getQuantity(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#quantity")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#quantity")); } diff --git a/src/SuppliedProduct.ts b/src/SuppliedProduct.ts index e5d738d..7a6a981 100644 --- a/src/SuppliedProduct.ts +++ b/src/SuppliedProduct.ts @@ -45,18 +45,18 @@ export default class SuppliedProduct extends DefinedProduct implements ISupplied public getTotalTheoreticalStock(): number { - return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#totalTheoreticalStock")); + return Number(this.getSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#totalTheoreticalStock")); } public setTotalTheoreticalStock(totalTheoreticalStock: number): void { - const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#totalTheoreticalStock"; + const property: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#totalTheoreticalStock"; this.setSemanticPropertyLiteral(property, totalTheoreticalStock); } public constructor(parameters: {connector: IConnector, semanticId?: string, other?: Semanticable, name?: string, description?: string, productType?: IProductType, quantity?: IQuantity, alcoholPercentage?: number, lifetime?: string, claims?: IClaim[], usageOrStorageConditions?: string, allergenCharacteristics?: IAllergenCharacteristic[], nutrientCharacteristics?: INutrientCharacteristic[], physicalCharacteristics?: IPhysicalCharacteristic[], geographicalOrigin?: IGeographicalOrigin, catalogItems?: ICatalogItem[], certifications?: ICertification[], natureOrigin?: INatureOrigin[], partOrigin?: IPartOrigin[], totalTheoreticalStock?: number, doNotStore?: boolean}) { - const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#SuppliedProduct"; + const type: string = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#SuppliedProduct"; if (parameters.other) { super({ connector: parameters.connector, semanticId: parameters.semanticId!, other: parameters.other }); diff --git a/src/context.ts b/src/context.ts index a24a867..48b1fa7 100644 --- a/src/context.ts +++ b/src/context.ts @@ -2,7 +2,7 @@ const context = { "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "skos" : "http://www.w3.org/2004/02/skos/core#", "dc": "http://purl.org/dc/elements/1.1/#", - "dfc-b": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#", + "dfc-b": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#", "dfc-t": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_TechnicalOntology.owl#", "dfc-m": "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/measures.rdf#", "dfc-pt": "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/productTypes.rdf#",