Skip to content

Commit

Permalink
deploy: 8f61917
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhraisha committed Oct 10, 2024
1 parent 208b1d7 commit f33c899
Show file tree
Hide file tree
Showing 7 changed files with 1,893 additions and 22 deletions.
2 changes: 1 addition & 1 deletion contexts/traceability-v1.jsonld

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions openapi/components/schemas/common/AgriculturePackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ properties:
$linkedData:
term: harvest
'@id': https://w3id.org/traceability#AgricultureActivity
instrumentOfTrade:
title: Instrument of International Trade
description: The materials used for shipping the product, such as boxes, pallets, etc.
type: array
items:
$ref: ./InstrumentOfTrade.yml
$linkedData:
term: instrumentOfTrade
'@id': https://w3id.org/traceability#InstrumentOfTrade
additionalProperties: true
required:
- type
Expand Down Expand Up @@ -199,5 +208,20 @@ example: |-
"labelImageUrl": "https://img.example.org/033383401508/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
],
"instrumentOfTrade": [
{
"type": ["InstrumentOfTrade"],
"packagingMaterial": "wood",
"ippcStamp": {
"originCountry": "US",
"providerCode": "000",
"treatmentCode": "HT"
}
},
{
"type": ["InstrumentOfTrade"],
"packagingMaterial": "paper"
}
]
}
76 changes: 76 additions & 0 deletions openapi/components/schemas/common/InstrumentOfTrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
$linkedData:
term: InstrumentOfTrade
'@id': https://w3id.org/traceability#InstrumentOfTrade
title: Intrument of International Trade
description: >-
The actual packaging (container, crate, pallet, etc.) which is used to
transport goods.
type: object
properties:
type:
type: array
readOnly: true
const:
- InstrumentOfTrade
default:
- IntrumentOfTrade
items:
type: string
enum:
- InstrumentOfTrade
packagingMaterial:
title: Packaging Material
description: >-
The material used for packaging the goods, e.g., wood, plastic, cardboard.
type: string
ippcStamp:
title: IPPC Stamp
type: object
description: >-
IPPC ISPM 15 stamp information as described in
https://www.ippc.int/en/publications/640/
properties:
originCountry:
title: Country
description: The two-letter ISO 3166-1 alpha-2 country code.
type: string
providerCode:
title: Provider Code
description: >-
The producer/treatment provider code is a unique code assigned by the
NPPO to the producer of the wood packaging material or treatment
provider who applies the marks or the entity otherwise responsible
to the NPPO for ensuring that appropriately treated wood is used and
properly marked (shown in the examples as “000”). The number and order
of digits and/or letters are assigned by the NPPO.
type: string
treatmentCode:
title: Treatment Code
description: >-
A treatment code using the appropriate abbreviation according to ISPM
15 (HT, DH, MB or SF).
type: string
enum:
- HT
- DH
- MB
- SF
additionalProperties: true
required:
- originCountry
- providerCode
- treatmentCode
additionalProperties: true
required:
- type
- packagingMaterial
example: |-
{
"type": ["InstrumentOfTrade"],
"packagingMaterial": "wood",
"ippcStamp": {
"originCountry": "US",
"providerCode": "000",
"treatmentCode": "HT"
}
}
1,748 changes: 1,728 additions & 20 deletions openapi/openapi.bundled.json

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,19 @@ paths:
$ref: './components/schemas/common/Instructions.yml'


/schemas/common/InstrumentOfTrade.yml:
get:
tags:
- common
responses:
'200':
description: 'successfully issued InstrumentOfTrade schema.'
content:
application/yml:
schema:
$ref: './components/schemas/common/InstrumentOfTrade.yml'


/schemas/common/IntellectualPropertyRights.yml:
get:
tags:
Expand Down
50 changes: 50 additions & 0 deletions sections/vocab.html
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,21 @@ <h2>Agriculture Package</h2>
"labelImageUrl": "https://img.example.org/033383401508/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
],
"instrumentOfTrade": [
{
"type": ["InstrumentOfTrade"],
"packagingMaterial": "wood",
"ippcStamp": {
"originCountry": "US",
"providerCode": "000",
"treatmentCode": "HT"
}
},
{
"type": ["InstrumentOfTrade"],
"packagingMaterial": "paper"
}
]
}</pre>
</section>
Expand Down Expand Up @@ -7620,6 +7635,41 @@ <h2>Instructions</h2>
</section>


<section id="InstrumentOfTrade">
<h2>Intrument of International Trade</h2>
<p>The actual packaging (container, crate, pallet, etc.) which is used to transport goods.</p>


<table class="simple">
<tbody>

<tr>
<td><a href="https://json-ld.org/spec/latest/json-ld/#node-identifiers">@id</a></td>
<td><a href="https://w3id.org/traceability#InstrumentOfTrade">https://w3id.org/traceability#InstrumentOfTrade</a></td>
</tr>


<tr>
<td><a href="https://swagger.io/specification/#schema-object">schema</a></td>
<td><a href="https://w3id.org/traceability/openapi/components/schemas/common/InstrumentOfTrade.yml">https://w3id.org/traceability/openapi/components/schemas/common/InstrumentOfTrade.yml</a></td>
</tr>

</tbody>
</table>


<pre class="example">{
"type": ["InstrumentOfTrade"],
"packagingMaterial": "wood",
"ippcStamp": {
"originCountry": "US",
"providerCode": "000",
"treatmentCode": "HT"
}
}</pre>
</section>


<section id="IntellectualPropertyRights">
<h2>Intellectual Property Rights Verification</h2>
<p>Verification of Intellectual Property Ownership or Rights</p>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/jest-html-reporters-attach/result.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f33c899

Please sign in to comment.