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>"
}
Implement a "registry" for profiles and add profile conformance to the created facet.
Registry: Add a property
profile.resources
to the configuration fileserver.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 forsrc/main/resources/profiles/profileSML101discovery.json
: