spdx-3-model icon indicating copy to clipboard operation
spdx-3-model copied to clipboard

Consider JSON Schema in RDF

Open aamedina opened this issue 1 year ago • 5 comments

https://www.w3.org/2019/wot/json-schema

This is essentially the same model used for the “Web of Things” W3C spec so it would naturally extend SBOM support to IoT devices expressing their affordances and descriptions using JSON Schema.

The vocabulary can be used to explicitly map the JSON property names to strings and make validation and conformance easier for consumers who could use the authoritative JSON schema derived from the standardized RDF model.

I have experimentally done this for a couple of published JSON schemas as RDF which you can review here.

Note: I did add an additionalProperties and uniqueItems term to the original model.

https://github.com/aamedina/openai/blob/main/resources/openai.ttl

https://github.com/aamedina/qdrant/blob/main/resources/qdrant.ttl

aamedina avatar Jul 27 '23 00:07 aamedina