INSPIRE-MIF / 2017.2

Repository for action 2017.2 on alternative encodings
6 stars 11 forks source link

General Rules for transforming XML into JSON #43

Closed nmtoken closed 5 years ago

nmtoken commented 5 years ago

Simplification Model Transformation Rule

Name of the Rule

Rule for transforming XML into JSON

Category

Description

General Rules for transforming XML into JSON originally taken from OGC 14-009r1 ~ Engineering Report: “OGC 14-009r1, OGC Testbed-10 Rules for JSON and GeoJSON Adoption: Focus on OWSContext" and amended in OGC 15-053r1 ~ Testbed 11 Implementing JSON/GeoJSON in an OGC Standard Engineering Report

UML Model

Example instance in default encoding:

TODO: GeoSciML-Lite GeoJSON encoding variant,

Example instance in simplified encoding:

Model transformation rule:

Instance transformation rule:

Describe how data in a property needs to be transformed, if necessary. As an example, there are rules which concatenate values (e.g. in the GeoSciML Lite approach).

Solves usability issues:

Provides a rule-set for a different encoding

Known usability issues:

Doesn't solve CRS issue for GeoJSON. Introduces issues inherent to JSON (no validation...,)

Reversibility:

Reversibility will depend on XML to be transformed, For GeoSciML-Lite will be partially reversed.