forked from usnistgov/metaschema
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial Pass on Constraint Documentation (usnistgov#555)
* Updated to use latest development version of the hugo theme. * Adjusted definition spec to fix markdown formatting issues. * Reorganized headings, added cross-links, added syntax table for common data elements. * Completed editorial pass on constraint documentation. * Update .env
- Loading branch information
1 parent
e8f6a1c
commit cf59660
Showing
11 changed files
with
405 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
HUGO_VERSION=0.118.2 | ||
HUGO_VERSION=0.120.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: "Metapath Expression Language" | ||
description: "" | ||
weight: 60 | ||
--- | ||
|
||
# Metapath Expression Language | ||
|
||
Metaschema includes support for an expression language called *Metapath*, which allows for selecting and evaluating Metaschema modules and data instances that conform to a Metaschema module. A Metapath can be used to query all Metaschema supported formats (i.e., JSON, YAML, XML) using a common, Metaschema module-bound syntax. This means a Metapth can be used to query the same data regardless of the underlying format used, as long as that data is bound to a Metaschema module. This provides consistent portability of Metapath expressions against multiple serialization forms for the same data set. | ||
|
||
Metapath is a customization of the [XML Path Language (XPath) 3.1](https://www.w3.org/TR/2017/REC-xpath-31-20170321/), which has been adjusted to work with a Metaschema module based model. This means the underlying [XML Data model](https://www.w3.org/TR/xpath-datamodel-31/) used by XPath, which exposes element and attribute nodes, is replaced with the Metaschema data model, which exposes flag, field, and assembly nodes. | ||
|
||
XPath was chosen as a basis for Metapath because it provides for both *selection* of nodes and logical *evaluation* of node values, the later of which is required for supporting Metaschema module [constraints](/specification/syntax/constraints). Other path languages (e.g., [JSON Path](https://goessner.net/articles/JsonPath/), [JSON Pointer](https://www.rfc-editor.org/rfc/rfc6901.html)) were not chosen, due to limitations in *evaluation* capabilities and because their syntax was specific to JSON. | ||
|
||
Note: Not all XPath features are supported by Metapath, the specifics of which will be documented in an updated version of this page in the future. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
module github.com/usnistgov/metaschema/website | ||
|
||
//replace github.com/usnistgov/hugo-uswds => ../../hugo-uswds | ||
// replace github.com/usnistgov/hugo-uswds => ../../../hugo/hugo-uswds | ||
|
||
go 1.21 | ||
|
||
// TODO replace with official release | ||
require github.com/usnistgov/hugo-uswds-nist v0.0.0-20230921191202-abb701944c8d // indirect | ||
|
||
require github.com/usnistgov/hugo-uswds v1.0.1-0.20240227190543-44bb56d22269 // indirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
github.com/usnistgov/hugo-uswds v1.0.1-0.20230921190836-3c6b82fe7897 h1:pe/ejVy5P6w/me8tLLuZKOU3ARRy9FnpfIPprwyedXI= | ||
github.com/usnistgov/hugo-uswds v1.0.1-0.20230921190836-3c6b82fe7897/go.mod h1:pp3SuiZt0HVqXX8Z7EmEvhcht3+sR3vbPzm3SGiImsA= | ||
github.com/usnistgov/hugo-uswds v1.0.1-0.20240227124152-959dd59d0638 h1:UMsWlMJjH5dViraTKPPfBJd20tjwtOM2B+AajpsJ/U4= | ||
github.com/usnistgov/hugo-uswds v1.0.1-0.20240227124152-959dd59d0638/go.mod h1:pp3SuiZt0HVqXX8Z7EmEvhcht3+sR3vbPzm3SGiImsA= | ||
github.com/usnistgov/hugo-uswds v1.0.1-0.20240227134243-0647b823893f h1:qsQKk8TFsorhaKMJc6V9iwoAz3CeVt6zGh2mMxtntdk= | ||
github.com/usnistgov/hugo-uswds v1.0.1-0.20240227134243-0647b823893f/go.mod h1:pp3SuiZt0HVqXX8Z7EmEvhcht3+sR3vbPzm3SGiImsA= | ||
github.com/usnistgov/hugo-uswds v1.0.1-0.20240227190543-44bb56d22269 h1:5d6VxDkJK/V5zb1N46FkOuttQfByPUluh8sYAb5V5M8= | ||
github.com/usnistgov/hugo-uswds v1.0.1-0.20240227190543-44bb56d22269/go.mod h1:pp3SuiZt0HVqXX8Z7EmEvhcht3+sR3vbPzm3SGiImsA= | ||
github.com/usnistgov/hugo-uswds-nist v0.0.0-20230921191202-abb701944c8d h1:xQdUJk+874+KJ45UOUXIawujkuaAcSomfLsJCP/ouK8= | ||
github.com/usnistgov/hugo-uswds-nist v0.0.0-20230921191202-abb701944c8d/go.mod h1:6w0sCYV02SLdCL5Eu8QN10RWSDeYZzkFjJ7vIq8T/yc= |