Project

General

Profile

« Previous | Next » 

Revision 8617

Add in Darwin Core schema support into xml_catalog, and insert it on upgrade as well. The schemas are cached in lib/schema/dwc, and Matt and Ben noted that the tdwg_basetypes.xsd and tdwg_dwctypes.xsd are part of the same namespace, but are xs:include'd rather than imported via namespace.

View differences:

loaddtdschema-postgres.sql
15 15
        AND system_id LIKE '%/dc/%';
16 16
DELETE FROM xml_catalog 
17 17
      WHERE entry_type LIKE 'Schema'
18
        AND system_id LIKE '%/dwc/%';
19
DELETE FROM xml_catalog 
20
      WHERE entry_type LIKE 'Schema'
18 21
        AND system_id LIKE '%/dryad/%';                
19 22
INSERT INTO xml_catalog (entry_type, public_id, system_id)
20 23
  VALUES ('DTD', '-//ecoinformatics.org//eml-access-@eml-version@//EN',
......
116 119
  VALUES ('Schema', 'http://purl.org/dc/elements/1.1/', '/schema/dc/dc.xsd');
117 120
INSERT INTO xml_catalog (entry_type, public_id, system_id)
118 121
  VALUES ('Schema', 'http://purl.org/dc/dcmitype/', '/schema/dc/dcmitype.xsd');
122
INSERT INTO xml_catalog (entry_type, public_id, system_id)
123
  VALUES ('Schema', 'http://rs.tdwg.org/dwc/terms/', '/schema/dwc/tdwg_dwcterms.xsd');
119 124

  
120 125

  
126

  
121 127
INSERT INTO db_version (version, status, date_created) 
122 128
  VALUES ('2.4.0',1,CURRENT_DATE);

Also available in: Unified diff