Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referencing VC #504

Merged
merged 2 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 5 additions & 39 deletions docs/openapi/components/schemas/common/CommissionEvent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ properties:
'@id': https://w3id.org/traceability#Organization
products:
title: Products
description: >-
List of product details as outlined in the Product schema
description: The products referenced by the event in hashlinks.
type: array
items:
$ref: ./Product.yml
type: string
$linkedData:
term: product
'@id': https://schema.org/Product
term: products
'@id': https://w3c-ccg.github.io/hashlink/#hl-url-params
additionalProperties: false
example: |-
{
Expand Down Expand Up @@ -90,39 +89,6 @@ example: |-
}
],
"products":[
{
"id":"752f9fef-a028-415c-b17b-33a7aafda835",
"name":"Carbon and alloy long product",
"type":[
"Product"
],
"width":{
"type":[
"MeasuredValue"
],
"value":"1220",
"unitCode":"CM"
},
"length":{
"type":[
"MeasuredValue"
],
"value":"654460",
"unitCode":"CM"
},
"weight":{
"type":[
"MeasuredValue"
],
"value":"11013",
"unitCode":"KG"
},
"manufacturer":{
"name":"Steel Co.",
"type":[
"Organization"
]
}
}
"http://example.org/products/05b6867b-2211-4c8f-ae7a-2a770b9510af?hl=ZfqLwiBj3yidP7p344d71z8ybyjb2+YVfhckGGHHEzk="
nissimsan marked this conversation as resolved.
Show resolved Hide resolved
]
}
73 changes: 5 additions & 68 deletions docs/openapi/components/schemas/common/Event.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$linkedData:
term: Event
'@id': https://schema.org/Event
title: Organization
title: Event
description: An event such as a transformation, aggregation, commission, etc.
type: object
properties:
Expand Down Expand Up @@ -55,13 +55,13 @@ properties:
'@id': https://schema.org/DateTime
products:
title: Products
description: The products referenced by the event.
description: The products referenced by the event in hashlinks.
type: array
items:
$ref: ./Product.yml
type: string
$linkedData:
term: products
'@id': https://schema.org/Product
'@id': https://w3c-ccg.github.io/hashlink/#hl-url-params
additionalProperties: false
example: |-
{
Expand Down Expand Up @@ -125,69 +125,6 @@ example: |-
},
"eventTime": "2019-12-11T03:50:55Z",
"products": [
{
"type": "Product",
"manufacturer": {
"type": "Organization",
"name": "Ferry, Von and Boehm",
"description": "Object-based real-time project",
"address": {
"type": "PostalAddress",
"streetAddress": "485 Bayer Drives",
"addressLocality": "New Tabithaside",
"addressRegion": "Indiana",
"postalCode": "80982",
"addressCountry": "Barbados"
},
"email": "[email protected]",
"phoneNumber": "555-338-4723",
"faxNumber": "555-696-7109"
},
"name": "Sleek Wooden Bike",
"description": "The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality",
"sizeOrAmount": {
"type": "QuantitativeValue",
"unitCode": "hg/ha",
"value": "1645"
},
"weight": {
"type": "QuantitativeValue",
"unitCode": "hg/ha",
"value": "3001"
},
"sku": "781731172154"
},
{
"type": "Product",
"manufacturer": {
"type": "Organization",
"name": "Schaefer - Ward",
"description": "Ergonomic hybrid encryption",
"address": {
"type": "PostalAddress",
"streetAddress": "03394 Hattie Plaza",
"addressLocality": "Cassieside",
"addressRegion": "Wyoming",
"postalCode": "80200",
"addressCountry": "Cambodia"
},
"email": "[email protected]",
"phoneNumber": "555-150-6921",
"faxNumber": "555-208-7547"
},
"name": "Fantastic Plastic Cheese",
"description": "Carbonite web goalkeeper gloves are ergonomically designed to give easy fit",
"sizeOrAmount": {
"type": "QuantitativeValue",
"unitCode": "hg/ha",
"value": "7322"
},
"weight": {
"type": "QuantitativeValue",
"unitCode": "hg/ha",
"value": "1748"
},
"sku": "500038921455"
}
"http://example.org/products/05b6867b-2211-4c8f-ae7a-2a770b9510af?hl=ZfqLwiBj3yidP7p344d71z8ybyjb2+YVfhckGGHHEzk="
]
}
51 changes: 5 additions & 46 deletions docs/openapi/components/schemas/common/TransferEvent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ properties:
'@id': https://schema.org/price
products:
title: Products
description: >-
List of product details as outlined in the Product schema
description: The products referenced by the event in hashlinks.
type: array
items:
$ref: ./Product.yml
type: string
$linkedData:
term: product
'@id': https://schema.org/Product
term: products
'@id': https://w3c-ccg.github.io/hashlink/#hl-url-params
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not look like a products definition?

actor:
title: Event Actors
description: >-
Expand Down Expand Up @@ -132,47 +131,7 @@ example: |-
},
"price": 1200,
"products": [
{
"productID": "9d237753-b377-492a-a8c8-a28fe9f3457b",
"type": "Product",
"manufacturer": {
"type": "Person",
"firstName": "Lawson",
"lastName": "Weber",
"email": "[email protected]",
"phoneNumber": "555-547-4441",
"worksFor": {
"type": "Organization",
"name": "Zemlak - Wyman",
"description": "Progressive fault-tolerant task-force",
"address": {
"type": "PostalAddress",
"streetAddress": "964 Mikayla Viaduct",
"addressLocality": "Runolfsdottirburgh",
"addressRegion": "Florida",
"postalCode": "48442-9522",
"addressCountry": "Barbados"
},
"email": "[email protected]",
"phoneNumber": "555-718-9023",
"faxNumber": "555-523-8629"
},
"jobTitle": "District Mobility Planner"
},
"name": "Handmade Fresh Hat",
"description": "The Nagasaki Lander is the trademarked name of several series of Nagasaki sport bikes, that started with the 1984 ABC800J",
"sizeOrAmount": {
"type": "QuantitativeValue",
"unitCode": "sqm",
"value": "47"
},
"weight": {
"type": "QuantitativeValue",
"unitCode": "kg",
"value": "4890"
},
"sku": "712120934258"
}
"http://example.org/products/05b6867b-2211-4c8f-ae7a-2a770b9510af?hl=ZfqLwiBj3yidP7p344d71z8ybyjb2+YVfhckGGHHEzk="
],
"actor": [
{
Expand Down
Loading