INSPIRE-MIF / 2017.2

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

Review of Alternate Encoding for INSPIRE Data: GeoJSON (hv/DK) #77

Closed heidivanparys closed 5 years ago

heidivanparys commented 5 years ago

My comments so far on https://github.com/INSPIRE-MIF/2017.2/blob/master/GeoJSON/specification.md

General

Title

Introduction

Scope

Use cases

Technical Issues

INSPIRE Requirements for Encodings

Schema Conversion Rules

This way, it is not the 2017.2 group that expresses an opinion, but a quote from a peer-reviewed article. The quote addresses both the stability of the specification and the adoption of it by software vendors.

[...] JSON Schema is the only general attempt to define a schema language for JSON documents, and it is slowly being established as the default schema specification for JSON. The definition is still far from being a standard (the specification is currently in its fourth draft but there is already a growing body of applications that support JSON schema definitions, and a good deal of tools and packages that enable the validation of documents against JSON Schema. [...] Despite all the advantages of a schema definition, the adoption of JSON Schema has been rather slow. One of the issues that have prevented the widespread recognition of JSON Schema as a standard for JSON meta-data is the ambiguity of its specification. [Foundations of JSON Schema]

Reference (link to copies can be found via Google Scholar, I didn't want to include one of them here): PEZOA, Felipe, REUTTER, Juan L., SUAREZ, Fernando, UGARTE, Martín and VRGOČ, Domagoj. Foundations of JSON Schema. In: Proceedings of the 25th International Conference on World Wide Web. International World Wide Web Conferences Steering Committee, 2016. p. 263–273. WWW ’16. ISBN 978-1-4503-4143-1.

All model transformation rules are applied in such a way that the resulting property names for valid XML element and type names, and are useable as property names in JSON.

Conformance classes

thorsten-reitz commented 5 years ago

Would we also have to remove gml:name?

thorsten-reitz commented 5 years ago

Notes on my changes:

heidivanparys commented 5 years ago

Would we also have to remove gml:name?

In my opinion, yes, and for the same reason: it is a mapping from UML to uml, not from GML to UML or from GML to GML.

From the GML standard:

The gml:name property provides a label or identifier for the object, commonly a descriptive name. [...] Often, a special identifier is assigned to an object by the authority that maintains the feature with the intention that it is used in references to the object. [...] gml:identifier is a predefined property for such identifiers.

In the INSPIRE model, properties with those semantics are modelled explicitly: