[GeoNetwork-devel] ISO 19119 Validation

Hi All,

I'm just testing out the new ISO 19119 support with a trial WMS service.

Everything looks good, but when I perform a check on the metadata, quite a few errors are reported. I can forward these problems, but first I was wondering if these errors may be occurring because the wrong schema is being used to validate the XML? I say this because the Schematron Report is headed:

"Schematron validation for ISO 19115(19139)"

Should I expect a different heading if the "WMS service in ISO19139/119" template was used?

Best regards,

Andy

P.S. I realise the code is yet to be included in a stable release, but I'm happy to be a guinea pig in the meantime.

Hi Andy,

The schematron heading you refer to is just a text string included in the schematron report xsl - it could be modified to anything we/you want - schematrons are just rules that end up being applied as an xslt to the metadata record - they are the second part of the validation process. The first part of the validation process is against the XSDs - which are the iso19139 and iso19119 XSDs.

The schematron xslts and XSDs etc are in the appropriate directory in web/geonetwork/xml/schemas. The schematron rules and instructions for generating the xslts are in the schematrons directory. The html templates used to display the report are in schematronCache/schematronscripts. The schematron report shown tells you that is work from David Carlisle and Rick Jelliffe but see also http://xml.ascc.net/resource/schematron/schematron-report.html

I'd be interested to see the validation errors and whether any of them are oddities/anomalous.

Cheers,
Simon

-----Original Message-----
From: geonetwork-devel-bounces@lists.sourceforge.net on behalf of Andrew Chamberlain
Sent: Tue 9/9/2008 11:50 PM
To: geonetwork-devel@lists.sourceforge.net
Cc:
Subject: [GeoNetwork-devel] ISO 19119 Validation

Hi All,

I'm just testing out the new ISO 19119 support with a trial WMS service.

Everything looks good, but when I perform a check on the metadata, quite
a few errors are reported. I can forward these problems, but first I
was wondering if these errors may be occurring because the wrong schema
is being used to validate the XML? I say this because the Schematron
Report is headed:

"Schematron validation for ISO 19115(19139)"

Should I expect a different heading if the "WMS service in ISO19139/119"
template was used?

Best regards,

Andy

P.S. I realise the code is yet to be included in a stable release, but
I'm happy to be a guinea pig in the meantime.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Simon,

Thanks for that.

Just to confirm/paraphrase, if the check gets as far as the schematrons, then can I assume the metadata is at least valid against the XSDs? I ask because I was previously getting errors which GeoNetwork itself would pick up and report (like missing mandatory elements). When I ‘fixed’ these (by populating them), I started getting the schematron reports, I wasn’t sure if I was going forwards or backwards!

Regarding the schematron errors themselves, I enclose them below. Not sure if these are all oddities/anomalies, but either way, I’m rather surprised that some metadata which adheres to the XSD schema could be so wrong after all!

So far I’ve only filled in the elements in the Default View of the metadata. Is it possible that the errors are due to some of the (mandatory) fields in the Advanced View being left empty? Please forgive me it should have been obvious, but I would have thought that a Default View would include all the mandatory fields?

Andy

Hi Simon,

Thanks again for that.

Further to what John and yourself have said, I'm just in the process of making sense of the Schematron errors. For instance, when it says "ISOFTDS19139:2005-TableA1-Row24 - name required", I'm keen to identify (and examine) Table A1 and Row 24. However, I can't seem to find the "schematrons" directory you mention.

Do you know where this might be? Or more specifically, do you know where I can find the Tables and Rows which are referenced by the schematron rules?

Also, the "schemas" directory only seems to contain schemas for ISO 19115 and 19139. Is there supposed to be one for ISO 19119?

I know this might just be a naming thing again, but all the schematron errors seem to be prefixed with "ISOFTD19139:2005". Is this because there isn't an XML representation standard for ISO 19119 yet? Apologies if this is well known, but I just wanted to confirm.

Many thanks,

Andy

Simon.Pigot@anonymised.com wrote:

Hi Andy,

The schematron heading you refer to is just a text string included in the schematron report xsl - it could be modified to anything we/you want - schematrons are just rules that end up being applied as an xslt to the metadata record - they are the second part of the validation process. The first part of the validation process is against the XSDs - which are the iso19139 and iso19119 XSDs.

The schematron xslts and XSDs etc are in the appropriate directory in web/geonetwork/xml/schemas. The schematron rules and instructions for generating the xslts are in the schematrons directory. The html templates used to display the report are in schematronCache/schematronscripts. The schematron report shown tells you that is work from David Carlisle and Rick Jelliffe but see also http://xml.ascc.net/resource/schematron/schematron-report.html

I'd be interested to see the validation errors and whether any of them are oddities/anomalous.

Cheers,
Simon

-----Original Message-----
From: geonetwork-devel-bounces@lists.sourceforge.net on behalf of Andrew Chamberlain
Sent: Tue 9/9/2008 11:50 PM
To: geonetwork-devel@lists.sourceforge.net
Cc:
Subject: [GeoNetwork-devel] ISO 19119 Validation

Hi All,

I'm just testing out the new ISO 19119 support with a trial WMS service.

Everything looks good, but when I perform a check on the metadata, quite
a few errors are reported. I can forward these problems, but first I
was wondering if these errors may be occurring because the wrong schema
is being used to validate the XML? I say this because the Schematron
Report is headed:

"Schematron validation for ISO 19115(19139)"

Should I expect a different heading if the "WMS service in ISO19139/119"
template was used?

Best regards,

Andy

P.S. I realise the code is yet to be included in a stable release, but
I'm happy to be a guinea pig in the meantime.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

.

Hi Andy,

Hi Simon,

Thanks again for that.

Further to what John and yourself have said, I'm just in the process of making sense of the Schematron errors. For instance, when it says "ISOFTDS19139:2005-TableA1-Row24 - name required", I'm keen to identify (and examine) Table A1 and Row 24. However, I can't seem to find the "schematrons" directory you mention.
  

I suspect this is a reference to table A1 (probably in what looks like a draft version of ISO19139) - I can see this table A1 in ISO/TS 19139:2007 on page 75. These references should be updated to refer to this table ISO/TS 19139:2007.

schematrons directory should be installed as a subdirectory of the install directory - its part of the core install package. You can also find it by browsing the geonetwork subversion repository on sourceforge.

Do you know where this might be? Or more specifically, do you know where I can find the Tables and Rows which are referenced by the schematron rules?

Also, the "schemas" directory only seems to contain schemas for ISO 19115 and 19139. Is there supposed to be one for ISO 19119?
  

19119 XSDs are held with and parsed with the 19139 schemas - see the srv directory in xml/schemas/iso19139/schema

I know this might just be a naming thing again, but all the schematron errors seem to be prefixed with "ISOFTD19139:2005". Is this because there isn't an XML representation standard for ISO 19119 yet?

The ISOFTDS thing seems to be a reference to the version of the standard available to those who originally wrote the schematron rules (CSIRO) - in 2006 - which was before the final 19139 standard was released - the references need to be updated to refer to table A1 in ISO/TS19139:2007.

Apologies if this is well known, but I just wanted to confirm.
Many thanks,
  

No worries.

Cheers,
Simon

Andy

Simon.Pigot@anonymised.com wrote:
  

Hi Andy,

The schematron heading you refer to is just a text string included in the schematron report xsl - it could be modified to anything we/you want - schematrons are just rules that end up being applied as an xslt to the metadata record - they are the second part of the validation process. The first part of the validation process is against the XSDs - which are the iso19139 and iso19119 XSDs.

The schematron xslts and XSDs etc are in the appropriate directory in web/geonetwork/xml/schemas. The schematron rules and instructions for generating the xslts are in the schematrons directory. The html templates used to display the report are in schematronCache/schematronscripts. The schematron report shown tells you that is work from David Carlisle and Rick Jelliffe but see also http://xml.ascc.net/resource/schematron/schematron-report.html

I'd be interested to see the validation errors and whether any of them are oddities/anomalous.

Cheers,
Simon

-----Original Message-----
From: geonetwork-devel-bounces@lists.sourceforge.net on behalf of Andrew Chamberlain
Sent: Tue 9/9/2008 11:50 PM
To: geonetwork-devel@lists.sourceforge.net
Cc:
Subject: [GeoNetwork-devel] ISO 19119 Validation

Hi All,

I'm just testing out the new ISO 19119 support with a trial WMS service.

Everything looks good, but when I perform a check on the metadata, quite
a few errors are reported. I can forward these problems, but first I
was wondering if these errors may be occurring because the wrong schema
is being used to validate the XML? I say this because the Schematron
Report is headed:

"Schematron validation for ISO 19115(19139)"

Should I expect a different heading if the "WMS service in ISO19139/119"
template was used?

Best regards,

Andy

P.S. I realise the code is yet to be included in a stable release, but
I'm happy to be a guinea pig in the meantime.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
geonetwork-devel List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
geonetwork-devel List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

Thanks Simon,

That’s helped me understand what’s going on. I can see the table you mean, and agree that the row numbers probably need updating since the 2005 version. Row 24 gives:

CI_ResponsibleParty: count of (individualName + organisationName + positionName) > 0

and yet all my CI_ResponsibleParty elements include all 3 of these name types. I guess I need to get hold of the 2005 spec to know what they’re referencing.

Thanks again for your help,

Andy