52North / GEO-label-java

A Java implementation of the GEO label, including client and server module and a standalone generator for GEO labels.
http://geolabel.info/
Apache License 2.0
4 stars 7 forks source link

Integrate profile valiation in standards compliance facet #63

Open nuest opened 9 years ago

nuest commented 9 years ago

Implement a "registry" for profiles and add profile conformance to the created facet.

Registry: Add a property profile.resources to the configuration file server.properties which contains a comma-seperated list of JSON-based profile configuration files, which contain three fields: a name (to be displayed within the hover text), an applicability xpath, and the schematron. E.g. a sketch for src/main/resources/profiles/profileSML101discovery.json:

{
    "name" : "my metadata profile version 4.2",
    "applicabilityPath":"boolean(//*[local-name()='SensorML'][@version='1.0.1'])",
    "schematron":"<?xml version=\"1.0\"?><my=\"personal\"><schematron /><goes_here /></my>"
}