[GeoNetwork-devel] how to add new metadata XML tags to the predefined schemas??

Hallo Everyone,

Currently I am creating a new metadata template based on the ISO 19115
metadata scheme. I would like to add custom XML tags into it which are not
yet defined by the ISO (raster specific metadata). I have created my own XML
file based on the ISO and have uploaded into geonetwork, but geonetwork
doesnt recognize these custom XML tags yet. Anyone have experience with
this? I will appreciate it very much!!

Thank you very much beforehand!!

Regards,

Tania P Firdausy

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-add-new-metadata-XML-tags-to-the-predefined-schemas-tp6831846p6831846.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi Tania,

I don't think it is as easy as just adding XML tags to your XML document
instance (metadata record).

In any XML document you must define a Document Style Language
Description (DSDL) so that validation and other tools that use the XML
document know what the structure and possible content should be.
Probably the best option for you would be to write an W3C XML Schema
(XSD) that imports the ISO 19139 XSDs (the XML implementation of ISO
19115 metadata standard) and includes the extra elements that you want
to include in your metadata records. Don't forget to validate the XSD.
If it is wrong then all your metadata will be wrong.

You then need to add the XSDs to GeoNetwork. This is a bit more complex
and I will leave to someone else. I know that there are profile plugins
available in a more recent version of GN so the documentation on that
process may be of help to you. I don't know much about that
configuration for GN.

I wonder why you have the need to add extra elements to the metadata.
Have you made sure that there is nowhere else where you can put the
content? It would be much easier to do that rather than creating your
own metadata profile.

I hope that this helps.

John

-----Original Message-----
From: taniapf [mailto:tania.puspita@anonymised.com]
Sent: Monday, September 26, 2011 11:25 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] how to add new metadata XML tags
to thepredefined schemas??

Hallo Everyone,

Currently I am creating a new metadata template based on the ISO 19115
metadata scheme. I would like to add custom XML tags into it
which are not
yet defined by the ISO (raster specific metadata). I have
created my own XML
file based on the ISO and have uploaded into geonetwork, but
geonetwork
doesnt recognize these custom XML tags yet. Anyone have
experience with
this? I will appreciate it very much!!

Thank you very much beforehand!!

Regards,

Tania P Firdausy

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/how-to-add-new-metadata

-XML-tags-to-the-predefined-schemas-tp6831846p6831846.html

Sent from the GeoNetwork developer mailing list archive at Nabble.com.

--------------------------------------------------------------
----------------
All the data continuously generated in your IT infrastructure
contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data
and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
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

*************************************************************************
The information contained in this e-mail, and any attachments to it,
is intended for the use of the addressee and is confidential. If you
are not the intended recipient you must not use, disclose, read,
forward, copy or retain any of the information. If you received this
e-mail in error, please delete it and notify the sender by return
e-mail or telephone.

The Commonwealth does not warrant that any attachments are free
from viruses or any other defects. You assume all liability for any
loss, damage or other consequences which may arise from opening
or using the attachments.

The security of emails transmitted in an unencrypted environment
cannot be guaranteed. By forwarding or replying to this email, you
acknowledge and accept these risks.
*************************************************************************

Hi John,

Thank you very much for your reply. I need to add extra elements because I
must "adapt" the ISO 19115 schema according to our scientific process, for
example I must add tags like pixel value information which gives information
about which value is used for no data pixels inside the sensor swath and
outside the sensor swath and other raster specific metadata tags.

I have created an XSD file according to my XML definitions, it would be very
nice if you would kindly take a look at it :), there are a couple of tags
which I have defined.

You said I must validate the XSD I created, do you have any good suggestions
about any XSD validator?

I would also appreciate anybody else helping to solve this problem.
maybe explain the steps which must be done to make GN recognize my tags?

Thank you very much once again!

With Kind Regards,

Tania

http://osgeo-org.1803224.n2.nabble.com/file/n6834971/eurac_inspire_template.xml
eurac_inspire_template.xml
http://osgeo-org.1803224.n2.nabble.com/file/n6834971/schema.xsd schema.xsd

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-add-new-metadata-XML-tags-to-the-predefined-schemas-tp6831846p6834971.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi Tania,

You may want to look at the XML implementation of ISO 19115-2 for the
imagery stuff.

Xerces is considered one of the most compliant to the W3C XML
Specification and is very good at validating XSDs. There are also other
Java applications which I can't think of at the moment. (|--(

Oxygen is a very good GUI tool (which I think is based on Xerces and
Saxon but I think you can add others) for validating XML. It is a very
good interpretation of the W3C XML specification because it used Xerces.

I will be on holidays for the next two weeks so I won't be able to help
you with your XSDs. All I can suggest is that you use the absolute URLS
in your schemaLocation(s) for your namespaces. Otherwise no-one else
will be able to validate your XML and you can't assure that the XSDs are
the official ISO TC 211 XSDs that you will be importing.

I hope this helps.

John H.

-----Original Message-----
From: taniapf [mailto:tania.puspita@anonymised.com]
Sent: Tuesday, September 27, 2011 5:08 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] how to add new metadata XML
tags to thepredefined schemas?? [SEC=UNCLASSIFIED]

Hi John,

Thank you very much for your reply. I need to add extra
elements because I
must "adapt" the ISO 19115 schema according to our scientific
process, for
example I must add tags like pixel value information which
gives information
about which value is used for no data pixels inside the
sensor swath and
outside the sensor swath and other raster specific metadata tags.

I have created an XSD file according to my XML definitions,
it would be very
nice if you would kindly take a look at it :), there are a
couple of tags
which I have defined.

You said I must validate the XSD I created, do you have any
good suggestions
about any XSD validator?

I would also appreciate anybody else helping to solve this problem.
maybe explain the steps which must be done to make GN
recognize my tags?

Thank you very much once again!

With Kind Regards,

Tania

http://osgeo-org.1803224.n2.nabble.com/file/n6834971/eurac_ins

pire_template.xml

eurac_inspire_template.xml
http://osgeo-org.1803224.n2.nabble.com/file/n6834971/schema.xs

d schema.xsd

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/how-to-add-new-metadata

-XML-tags-to-the-predefined-schemas-tp6831846p6834971.html

Sent from the GeoNetwork developer mailing list archive at Nabble.com.

--------------------------------------------------------------
----------------
All the data continuously generated in your IT infrastructure
contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data
and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
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

*************************************************************************
The information contained in this e-mail, and any attachments to it,
is intended for the use of the addressee and is confidential. If you
are not the intended recipient you must not use, disclose, read,
forward, copy or retain any of the information. If you received this
e-mail in error, please delete it and notify the sender by return
e-mail or telephone.

The Commonwealth does not warrant that any attachments are free
from viruses or any other defects. You assume all liability for any
loss, damage or other consequences which may arise from opening
or using the attachments.

The security of emails transmitted in an unencrypted environment
cannot be guaranteed. By forwarding or replying to this email, you
acknowledge and accept these risks.
*************************************************************************

Hi John,

Thank you for your reply, do you have any information about tutorials on
this issue? maybe you could just give me a link pointing to this tutorial.

I wish you a nice vacation!

Regards,

Tania

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-add-new-metadata-XML-tags-to-the-predefined-schemas-tp6831846p6843121.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.