Closed wangf1122 closed 7 months ago
There was some good validation in https://github.com/geonetwork/core-geonetwork/blob/main/schemas/iso19139/src/main/plugin/iso19139/schematron/schematron-rules-iso.sch
But HNAP schema has no such validation Sschematron in place. I attempt to introduce such Schematron and found they are not so compactable.
One validation rule I would like to bring in is: https://github.com/geonetwork/core-geonetwork/blob/bd153b0b9af09db01d0faf7d5cfc6b8708110047/schemas/iso19139/src/main/plugin/iso19139/schematron/schematron-rules-iso.sch#L573-L583
There are many fields (i.e. title) in this citation is mandatory
If we attempt to remove this citation, these mandatory fields are removed as well
But the data validates fine:
Here is the fixed result:
There was some good validation in https://github.com/geonetwork/core-geonetwork/blob/main/schemas/iso19139/src/main/plugin/iso19139/schematron/schematron-rules-iso.sch
But HNAP schema has no such validation Sschematron in place. I attempt to introduce such Schematron and found they are not so compactable.
One validation rule I would like to bring in is: https://github.com/geonetwork/core-geonetwork/blob/bd153b0b9af09db01d0faf7d5cfc6b8708110047/schemas/iso19139/src/main/plugin/iso19139/schematron/schematron-rules-iso.sch#L573-L583
There are many fields (i.e. title) in this citation is mandatory
If we attempt to remove this citation, these mandatory fields are removed as well![image](https://github.com/metadata101/iso19139.ca.HNAP/assets/74916635/ed832bb2-3611-4218-b5c9-73f0c4026110)
But the data validates fine:![image](https://github.com/metadata101/iso19139.ca.HNAP/assets/74916635/95882ac4-88e9-4eb0-906d-b7ea87164d3e)
Here is the fixed result:![image](https://github.com/metadata101/iso19139.ca.HNAP/assets/74916635/01bcd5e0-899e-49c5-b691-76766c0d3640)