niemopen / ntac-admin

The NTAC is a NIEMOpen Technical Steering Committee, responsible for the NIEM technical architecture. This repo contains its meeting minutes and discussion papers.
Other
3 stars 4 forks source link

Decouple NIEM and XML Schema Simple Types? #28

Closed cdmgtri closed 1 year ago

cdmgtri commented 1 year ago

Migrated from NIEM/NTAC#43.

NIEM uses the xs and niem-xs namespaces for XML Schema simple types and for CSC versions of those types with the structures attribute group.

The name of the niem-xs namespace makes less sense on the NIEM JSON side. Plus, we need to bind these types differently for JSON since the XML Schema base types are not available. (We can try to simulate them as much as possible with the available JSON types and with patterns and built-in formats.) We also use simple xs types directly for attributes and for some simple type bases.

In NIEM JSON, the following seems little off:

Maybe we rename the niem-xs namespace to something more generic.

And maybe we provide format-specific types or native-types schemas with the utilities.

We'll need to have JSON counterparts for other utility schemas anyway. Something like a structures.xsd and a structures.json in the utilities folder. Maybe we do the same thing and have a types.xsd and a types.json there as well. It gives us a layer of indirection.

Dr. Scott: All our targets use the same base data types.

Christina: Even JSON-LD?

cdmgtri commented 1 year ago

The NTAC decided to leave the types as they are. The CMF-to-JSON Schema transformation does provide patterns and definitions for XML Schema simple types to try to align the allowable range of values consistently between XML and JSON representations.