Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Proposal to move base properties under header #56

Description

@bgyori

In #54, a the new AMR structure implemented by @jpfairbanks for Decapodes puts base (top-level) properties of the AMR under a key called header. These properties are: schema, schema_name, name, description and model_version. If we decide to put these properties under header for Decapodes then for consistency with a single base schema it would be good to make the same change for other frameworks, petrinet and regnet. Example:

Current:

{
  "name": "SIR Model",
  "schema": "https://raw.githubusercontent.com/DARPA-ASKEM/Model-Representations/petrinet_v0.5/petrinet/petrinet_schema.json",
  "description": "SIR model",
  "schema_name": "petrinet",
  "model_version": "0.1",
  "model": {...},
  "semantics": {...}
  ...
}

Proposed:

{
  "header": {
    "name": "SIR Model",
    "schema": "https://raw.githubusercontent.com/DARPA-ASKEM/Model-Representations/petrinet_v0.5/petrinet/petrinet_schema.json",
    "description": "SIR model",
    "schema_name": "petrinet",
    "model_version": "0.1",
  },
  "model": {...},
  "semantics": {...}
  ...
} 

What are people's thoughts about this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions