From: Paul C. <P.C...@hr...> - 2014-04-25 13:10:12
|
:-) Yes - I have read it about fifty times :-) ! (hence my quotes from it ). I am clearly a bear of very little brain! I am using 2.10.3. I suspect there is a huge gap between what you guys are aware of in terms of other schemata (eg srv, etc) and what they are for and what I know (new to geo systems I'm afraid so there is something of the monkey pushing buttons about my current role :-} ) - and also a familiarity with geonetwork itself. Anyway, I have manfully struggled through Tomcat, GN v 2.6 and 2.8, spaces in path names, GAST and Postgres under windows and multiple instances of GN with different names and arrived at the installation of 2.10.3 using jetty. And - phew - it works - although when the server fires up I get warnings they don’t look particularly dangerous (I list them here for consideration) 2014-04-25 14:05:59,365 WARN [geonetwork.schemamanager] - Cannot resolve http://www.w3.org/2001/03/xml.xsd: will append last component to current path (not sure it will help though!) 2014-04-25 14:05:59,739 WARN [geonetwork.schemamanager] - WARNING: gco:Record is a global element without a type - assuming a string 2014-04-25 14:06:00,102 WARN [geonetwork.schemamanager] - WARNING: gco:Record is a global element without a type - assuming a string 2014-04-25 14:06:00,113 WARN [geonetwork.schemamanager] - WARNING: schema-substitutions.xml has wiped out XSD substitution list for gml:CoordinateSystemAxis 2014-04-25 14:06:00,119 WARN [geonetwork.schemamanager] - WARNING: schema-substitutions.xml has wiped out XSD substitution list for gml:VerticalCS 2014-04-25 14:06:00,125 WARN [geonetwork.schemamanager] - WARNING: schema-substitutions.xml has wiped out XSD substitution list for gml:CoordinateSystemAxis 2014-04-25 14:06:00,126 WARN [geonetwork.schemamanager] - WARNING: schema-substitutions.xml has wiped out XSD substitution list for gml:VerticalDatum One thing I find confusing about the documentation is this - it starts off talking about *schema plugins* and then mentions *profiles* as a useful way of doing simple extensions and then goes on to describe mcp ( a *profile*) in fairly complex terms - I am not at all clear on the difference between a "profile" and a "schema plugin" I'm afraid. I'll read it again and hope the penny drops but... Jose's mail will give me lots to chew on I'm sure! Thanks again! Paul -----Original Message----- From: Sim...@cs... [mailto:Sim...@cs...] Sent: Friday, April 25, 2014 1:57 PM To: Paul Cleverley; jos...@ge... Cc: geo...@li... Subject: RE: [GeoNetwork-users] Schema plugin and profile Paul, The developer manual has a whole section on schema plugins http://geonetwork-opensource.org/manuals/2.10.3/eng/developer/schemaPlugins/index.html that explains most if not all of the things you mention below (using iso19139.mcp as an example). I suspect Jose intended that you read that in order to help with his steps :-). Please make sure you're using 2.10.3 as well on windows because there were a number of issues (mainly relating to handling of URIs/URLs in xml-resolver jar) that prevented GeoNetwork 2.10.2 and earlier from working on windows - one of the problems actually caused the error you were seeing. Cheers, Simon ________________________________________ From: Paul Cleverley [P.C...@hr...] Sent: Friday, 25 April 2014 10:43 PM To: 'Jose Garcia' Cc: geo...@li... Subject: Re: [GeoNetwork-users] Schema plugin and profile Jose, thank you very much indeed - that gives me a lot to go on! I have managed to fake my iso19139.model schema to the point where the whole system doesn’t fall over. I am currently trying to edit an example MEF file to incorporate the new element I have added (ModelFeatureType) so I can add it as sample-data. In step 7) you say “Almost all the other files you can see that delegate to iso19139” – do you mean I don’t have to have instances of these for my iso19139.model? I don’t know what oasis is or what it is for? I don’t know how geonetwork uses schema-ident.xml. I don’t know how geonetwork uses codelists (lookup tables yes? – but the references to codelists are relative to what?) I can’t find an explanation of what geonetwork thinks a “template” is – and no idea what the metadata.xsl and metadata-edit.xsl transforms are used for or where or when. Labels is good! I will obviously need a new label for my element – I’ll call it “Model Feature Type” – but not yet clear on how GN uses the labels files (there appear to be lots of files called labels.xml, codelist.xml etc all in different directories and it’s not clear how GN merges / separates these ) Thank you so much for your help with this I will endeavour to go through each step accordingly! Thanks! Best wishes Paul From: Jose Garcia [mailto:jos...@ge...] Sent: Friday, April 25, 2014 1:34 PM To: Paul Cleverley Cc: geo...@li... Subject: Re: [GeoNetwork-users] Schema plugin and profile Hi Paul I have worked recently in some schemas, let me explain how I managed: I started the development based on this template project: https://github.com/geonetwork/schema-plugins/tree/master/iso19139.xyz One of the schemas is https://github.com/geonetwork/schema-plugins/tree/master/iso19139.napm , that is iso19139 with customisations in xsd related to cardinality and some custom codelist values mostly. I did mostly these steps: 1) Customise schema-ident.xml with the rules to match metadata to the new schema 2) In schema folder copy the iso19139 xsd and custom xsd (see https://github.com/geonetwork/schema-plugins/tree/master/iso19139.napm/schema/napm) 3) Map custom xsd in oasis-catalog.xml (see https://github.com/geonetwork/schema-plugins/blob/master/iso19139.napm/oasis-catalog.xml#L58) 4) Customise the codelists (if your schema has new values for iso19139 codelist or new codelists) See https://github.com/geonetwork/schema-plugins/blob/master/iso19139.napm/loc/eng/codelists.xml 5) Customise the labels (if your schema requires to replace iso19139 element labels or add labels for new elements) See https://github.com/geonetwork/schema-plugins/blob/master/iso19139.napm/loc/eng/labels.xml 6) Customise template names in present/metadata-edit.xsl and present/metadata.xsl (I assume you work with 2.8 or 2.10 versions, for develop branch changes a bit) Take a look for example to https://github.com/geonetwork/schema-plugins/blob/master/iso19139.napm/present/metadata-edit.xsl, my schema is named iso19139.napm, some templates should have this name in the template name (you need to replace with your schema name) 7) Almost all the other files you can see that delegate to iso19139 (see for example, https://github.com/geonetwork/schema-plugins/blob/master/iso19139.napm/index-fields.xsl) Another plugin that can be interesting to check is this one: https://github.com/geonetwork/schema-plugins/tree/master/iso19139.naplio-dataset , as adds new elements to iso19139. 1) The steps are similar, but present/metadata-edit.xsl and present/metadata.xsl require some additional customisation to manage the new elements. See https://github.com/geonetwork/schema-plugins/blob/master/iso19139.naplio-dataset/present/metadata.xsl#L234 2) Also another change is to remove the custom elements from CSW responses when requested iso19139 output. See https://github.com/geonetwork/schema-plugins/blob/master/iso19139.naplio-dataset/present/csw/iso-full.xsl#L15 A bit long mail, but hope can help a bit to clarify the steps. I want to update the documentation to improve it with a simple case, but could not manage yet, will try to check in coming weeks. Regards, Jose García On Fri, Apr 25, 2014 at 1:01 PM, Paul Cleverley <P.C...@hr...<mailto:P.C...@hr...>> wrote: HI I wonder if anyone could point me at a *simple* example of a "profile" with a clear statement about the minimum requirements for adding to - say - iso19139? All I want to do is....:-) Add a few elements to the iso19139 schema I don't want to extend or otherwise modify *anything* in the iso19139 schema except to add a couple of elements - let's call the profile / plugin iso19139.model I have a model.xsd file and a schema.xsd file and a schema-ident.xml file What else is needed? I find the current documentation confusing I'm afraid - sections which say these directories *can* be present which implies they are optional followed by some which are mandatory and some which are optional? Are "converters" XSLT transforms or a servlet or what? I feel I am swimming way out of my depth here and would appreciate some help :)! Thanks Paul Paul Cleverley Software Developer, Hydrodynamics & Metocean E: p.c...@hr...<mailto:p.c...@hr...><mailto:p.c...@hr...<mailto:p.c...@hr...>> T: +44 (0)1491 822483<tel:%2B44%20%280%291491%20822483> <http://www.hrwallingford.com/banner.html> ________________________________ [HR Wallingford Logo] HR Wallingford Howbery Park, Wallingford, Oxfordshire OX10 8BA, United Kingdom T: +44 (0)1491 835381<tel:%2B44%20%280%291491%20835381> F: +44 (0)1491 832233<tel:%2B44%20%280%291491%20832233> www.hrwallingford.com<http://www.hrwallingford.com> [HR Wallingford Secondary Logo] ________________________________ ________________________________ HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them. If you have received this message in error please advise us immediately and destroy all copies of it. HR Wallingford Limited Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom Registered in England No. 02562099 ________________________________ ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ GeoNetwork-users mailing list Geo...@li...<mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geonetwork-users GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork -- GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net<http://geocat.net/> for details. _________________________ Jose García GeoCat bv Veenderweg 13 6721 WD Bennekom The Netherlands http://GeoCat.net<http://geocat.net/> This message has been scanned for viruses by MailControl<http://www.mailcontrol.com/>, a service from BlackSpider Technology Click here<https://www.mailcontrol.com/sr/n274HG0AFdHGX2PQPOmvUvmldA89nuwlhZgA2r7PaGotm4jMfTGRzy6Jv+6tRVI65zXWrIMm5qT1JTd!1uc+!w==> to report this email as spam. ________________________________ HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them. If you have received this message in error please advise us immediately and destroy all copies of it. HR Wallingford Limited Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom Registered in England No. 02562099 ________________________________ ________________________________ HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them. If you have received this message in error please advise us immediately and destroy all copies of it. HR Wallingford Limited Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom Registered in England No. 02562099 ________________________________ |