hashgraph / guardian

The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
100 stars 129 forks source link

External (schema.org) type definitions in Guardian schemas #1562

Open anvabr opened 1 year ago

anvabr commented 1 year ago

Problem description

Schema.org have published many schemas and standards which defined common data types used in various industries. Supporting these in Guardian would help with standardising the basic vocabulary used in schemas, and help users by validating field values and imported schemas automatically.

Requirements

Definition of done

The usage of schema.org type is validated, documented and demonstrated at least in one of the Guardian sample policies.

Acceptance criteria

Using schema.org datatype does not require any additional or special effort or knowledge from Guardian policy authors.

anvabr commented 1 year ago

Potentially consider changing the location of context field in VC documents, which is currently inside the credentialSubject section but it probably needs to be at the top level of the structure of the VC document itself.