How to query a product based on its
- contributors (or main contributors based on their role: Producer, Transformer)
- categories (a category is part of a classification : GPC, OFN instance classification)
- ingredients
| class Order { | |
| _id!: ObjectId; | |
| ids?: string[]; // legacy -> use references instead | |
| key?: string; | |
| number?: string; | |
| references?: Reference[]; // references (id) the transaction has on other platforms | |
| name?: string; | |
| // roles | |
| customer?: Party; // can be an enterprise (organisation), one of its activities, a person, a partnership |
| { | |
| "N32-005151": { | |
| "id": "N32-005151", | |
| "nutrientBasisQuantity": { | |
| "s:value": "100", | |
| "s:unitCode": "GRM", | |
| "@type": [ | |
| "gs1:QuantitativeValue", | |
| "s:QuantitativeValue" |
| const collectionNames = db.getCollectionNames(); | |
| for (const name of collectionNames) { | |
| var coll = db.getCollection(name); | |
| var cursor = coll.find(); | |
| while (cursor.hasNext()) { | |
| var doc = cursor.next(); | |
| var keys = {}; | |
| var hasNull = false; | |
| for (var x in doc) { |
| classes: { | |
| embedded: { | |
| shape: package | |
| } | |
| party: { | |
| shape: image | |
| icon: https://icons.terrastruct.com/essentials%2F365-user.svg | |
| } | |
| subject: { | |
| shape: image |
| # Logistics Management System LMS | |
| # | |
| # use classes, the same as interface ... ? | |
| # contact, a party could reference multilple contacts (or one ?) | |
| classes: { | |
| transactionnal: { | |
| style: { | |
| stroke-width: 0 |
| { | |
| "allergens": [ | |
| { | |
| "ids": ["off/allergens/en:milk"], | |
| "translations": { | |
| "en": { | |
| "name": "Milk" | |
| }, | |
| "fr": { | |
| "name": "Lait" |
| { | |
| "codes": [ | |
| { | |
| "ids": ["ofn_be/country/29"], | |
| "name": "Belgium", | |
| "list": { | |
| "ids": ["iso/country"] | |
| } | |
| } | |
| ], |
| { | |
| "name": "ofn hook v0.24.0 beta", | |
| "nodes": [ | |
| { | |
| "parameters": {}, | |
| "id": "a9f63be4-fd47-4585-a180-9e8c8047b58d", | |
| "name": "Start", | |
| "type": "n8n-nodes-base.start", | |
| "typeVersion": 1, | |
| "position": [ |
How to query a product based on its
| { | |
| "_id": { | |
| "$oid": "6172b6be68707a71104595f4" | |
| }, | |
| "isTradeItemAnOrderableUnit": true, | |
| "allergenInformation": {"isAllergenRelevantDataProvided": true}, | |
| "isTradeItemABaseUnit": true, | |
| "unitDescriptorCode": "BASE_UNIT_OR_EACH", | |
| "dutyFeeTaxInformation": {"targetMarketTaxInformations": [{ | |
| "taxInformations":[ |