Skip to content

Metapath Query Parser for the CLI #241

Open
@aj-stein-nist

Description

@aj-stein-nist

User Story:

As a developer of Metaschema-based tools, in order to more effectively develop tools and test arbitrary data with models, I would like the ability to perform arbitrary Metapath queries (i.e. a Metapath sequence of metaschema-cli evaluate-query "1 + 1" which will yield a result of "2") or a Metaschema module and document instance against that module (i.e. metaschema-cli evaluate-query "/computer/vendor[@name='only-want-computer-with-this-name']/@id" --metaschema ./example-computer_metaschema.xml --document ./example-computer_instance.yaml to yield an instance of the assembly in example_computer_instance.yaml with only the vendor assembly's id where the name matches in the query) . This will allow developers to rapidly test and prototype and test arbitrary Metapath expressions, Metaschema modules, document instances of that module, or all the above.

Goals:

  • Minimize feedback loop for Metapath self-exploration and education on Metapath, and Metaschema in general.
  • Decrease speed in developing and testing Metapath expressions without a full set of supporting application code to iterate on queries before writing a full Metaschema processor.

Dependencies:

TBD

Acceptance Criteria

  • All website and readme documentation affected by the changes in this issue have been updated. Changes to the website can be made in the docs/content directory of your branch.
  • A Pull Request (PR) is submitted that fully addresses the goals of this User Story. This issue is referenced in the PR.
  • The CI-CD build process runs without any reported errors on the PR. This can be confirmed by reviewing that all checks have passed in the PR.

{The items above are general acceptance criteria for all User Stories. Please describe anything else that must be completed for this issue to be considered resolved.}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions