Skip to content

Commit

Permalink
[WIP] Provisionally outline sections for usnistgov#545
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist committed Mar 14, 2024
1 parent 9e93c25 commit f84f46f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: ""

## Introduction

In the previous tutorial, we enhanced the computer model and learned how to use constraints to customize specific field and flags' values by subsetting their data types or match certain patterns with regular expressions. In previous tutorials about constraints, we have learned multiple techniques to precisely control the values of fields and flags. But how do we control the minimum and maximum number of occurrences for assemblies, fields, and flags in document instance(s) with logical conditions using their own identifiers and values? How do we do this with related assemblies, fields, and flags co-occurring these document instance(s)?
In the previous tutorial, we enhanced the computer model and learned how to use constraints to customize specific fields' and flags' values by subsetting their data types or match certain patterns with regular expressions. In previous tutorials about constraints, we have learned multiple techniques to precisely control the values of fields and flags. But how do we control the minimum and maximum number of occurrences for assemblies, fields, and flags in document instance(s) with logical conditions using their own identifiers and values? How do we do this with related assemblies, fields, and flags co-occurring these document instance(s)?

To control the minimum and maximum occurrence of different assemblies, fields, flags and/or their respective values, we can use `has-cardinality` constraints to meet this use case.

Expand Down Expand Up @@ -574,4 +574,10 @@ computer:
{{% /tab %}}
{{< /tabs >}}

## Using has-cardinality constraints with identifiers

## Using has-cardinality constraints with values

## Using complex has-cardinality constraints with both

## Conclusion

0 comments on commit f84f46f

Please sign in to comment.