Project

General

Profile

« Previous | Next » 

Revision 8608

Add schema support for the DataONE, dublin Core, and Dryad schemas. Schemas get downloaded into lib/schema priior to jar and dist targets, and get loaded into xml_catalog on installation.

View differences:

src/loaddtdschema-postgres.sql
91 91
  VALUES ('Schema', '@eml2_1_1namespace@', '/schema/eml-2.1.1/eml.xsd');
92 92
INSERT INTO xml_catalog (entry_type, public_id, system_id)
93 93
  VALUES ('Schema', 'http://ecoinformatics.org/registryentry-1.0.0', '/schema/RegistryService/RegistryEntryType.xsd');
94
INSERT INTO xml_catalog (entry_type, public_id, system_id)
95
  VALUES ('Schema', 'http://www.opengis.net/sensorML/1.0.1', '/schema/sensorML.xsd');
96
INSERT INTO xml_catalog (entry_type, public_id, system_id)
97
  VALUES ('Schema', 'http://ns.dataone.org/service/types/v1', '/schema/dataone/dataoneTypes.xsd');
98
INSERT INTO xml_catalog (entry_type, public_id, system_id)
99
  VALUES ('Schema', 'http://ns.dataone.org/service/types/v1.1', '/schema/dataone/dataoneTypes_v1.1.xsd');
100
INSERT INTO xml_catalog (entry_type, public_id, system_id)
101
  VALUES ('Schema', 'http://purl.org/dryad/schema/terms/v3.1', '/schema/dryad/dryad.xsd');
102
INSERT INTO xml_catalog (entry_type, public_id, system_id)
103
  VALUES ('Schema', 'http://purl.org/dryad/schema/dryad-bibo/v3.1', '/schema/dryad/dryad-bibo.xsd');
104
INSERT INTO xml_catalog (entry_type, public_id, system_id)
105
  VALUES ('Schema', 'http://purl.org/dc/terms/', '/schema/dc/dcterms.xsd');
106
INSERT INTO xml_catalog (entry_type, public_id, system_id)
107
  VALUES ('Schema', 'http://purl.org/dc/elements/1.1/', '/schema/dc/dc.xsd');
108
INSERT INTO xml_catalog (entry_type, public_id, system_id)
109
  VALUES ('Schema', 'http://purl.org/dc/dcmitype/', '/schema/dc/dcmitype.xsd');
110

  
111

  
94 112
INSERT INTO db_version (version, status, date_created) 
95 113
  VALUES ('2.4.0',1,CURRENT_DATE);
src/loaddtdschema-oracle.sql
91 91
  VALUES ('Schema', '@eml2_1_1namespace@', '/schema/eml-2.1.1/eml.xsd');
92 92
INSERT INTO xml_catalog (entry_type, public_id, system_id)
93 93
  VALUES ('Schema', '/schema/RegistryService/RegistryEntryType.xsd', '/schema/RegistryService/RegistryEntryType.xsd'); 
94
INSERT INTO xml_catalog (entry_type, public_id, system_id)
95
  VALUES ('Schema', 'http://www.opengis.net/sensorML/1.0.1', '/schema/sensorML.xsd');
96
INSERT INTO xml_catalog (entry_type, public_id, system_id)
97
  VALUES ('Schema', 'http://ns.dataone.org/service/types/v1', '/schema/dataone/dataoneTypes.xsd');
98
INSERT INTO xml_catalog (entry_type, public_id, system_id)
99
  VALUES ('Schema', 'http://ns.dataone.org/service/types/v1.1', '/schema/dataone/dataoneTypes_v1.1.xsd');
100
INSERT INTO xml_catalog (entry_type, public_id, system_id)
101
  VALUES ('Schema', 'http://purl.org/dryad/schema/terms/v3.1', '/schema/dryad/dryad.xsd');
102
INSERT INTO xml_catalog (entry_type, public_id, system_id)
103
  VALUES ('Schema', 'http://purl.org/dryad/schema/dryad-bibo/v3.1', '/schema/dryad/dryad-bibo.xsd');
104
INSERT INTO xml_catalog (entry_type, public_id, system_id)
105
  VALUES ('Schema', 'http://purl.org/dc/terms/', '/schema/dc/dcterms.xsd');
106
INSERT INTO xml_catalog (entry_type, public_id, system_id)
107
  VALUES ('Schema', 'http://purl.org/dc/elements/1.1/', '/schema/dc/dc.xsd');
108
INSERT INTO xml_catalog (entry_type, public_id, system_id)
109
  VALUES ('Schema', 'http://purl.org/dc/dcmitype/', '/schema/dc/dcmitype.xsd');
110

  
94 111
INSERT INTO db_version (version, status, date_created) 
95 112
  VALUES ('2.4.0',1,CURRENT_DATE);
build.xml
536 536
		</javac>
537 537
	</target>
538 538

  
539
	<target name="jar" depends="compile,geteml"
539
	<target name="jar" depends="compile,geteml,getdataone,getdc,getdryad"
540 540
		description="Compiles and jars metacat java code to metacat.jar in build dir ">
541 541

  
542 542
		<delete file="${build.dir}/${name}.jar" />
......
643 643
		<delete file="./harvest-list-editor-${release}.tar" />
644 644
	</target>
645 645

  
646
	<target name="getdataone"
647
		description="Gets the dataone schemas and copies them to your metacat sandbox">
648
		<mkdir dir="lib/schema/dataone" />
649
		<get dest="lib/schema/dataone/dataoneTypes.xsd" skipexisting="true" verbose="on">
650
		  <url url="http://ns.dataone.org/service/types/v1"/> 
651
		</get>
652
		<get dest="lib/schema/dataone/dataoneTypes_v1.1.xsd" skipexisting="true">
653
		  <url url="http://ns.dataone.org/service/types/v1.1"/>
654
		</get>
655
	</target>
656
	
657
	<target name="getdryad" depends="getdc"
658
		description="Gets the dryad schemas and copies them to your metacat sandbox">
659
		<mkdir dir="lib/schema/dryad" />
660
		<get dest="lib/schema/dryad/dryad.xsd" skipexisting="true" verbose="on">
661
		  <url url="http://purl.org/dryad/schema/terms/v3.1"/> 
662
		</get>
663
		<get dest="lib/schema/dryad/dryad-bibo.xsd" skipexisting="true">
664
		  <url url="http://purl.org/dryad/schema/dryad-bibo/v3.1"/>
665
		</get>
666
	</target>
667
	
668
	<target name="getdc" 
669
		description="Gets the dublin core schemas and copies them to your metacat sandbox">
670
		<get dest="lib/schema/dc" skipexisting="true" verbose="on">
671
		  <url url="http://dublincore.org/schemas/xmls/qdc/2008/02/11/dcterms.xsd"/> 
672
		  <url url="http://dublincore.org/schemas/xmls/qdc/2008/02/11/dc.xsd"/>
673
		  <url url="http://dublincore.org/schemas/xmls/qdc/2008/02/11/dcmitype.xsd"/>
674
		</get>
675
	</target>
676

  
646 677
	<target name="geteml" depends="getemlpre2,getemlpre2beta4,geteml2+,getConversionXSL"
647 678
		if="eml.required" description="Calls getemlpre2 and geteml2+ targets" />
648 679

  
......
1445 1476
	</target>
1446 1477

  
1447 1478
	<target name="dist"
1448
		depends="geteml,get-ecogrid,jar,protocol,documentation,getConversionXSL,getutilities"
1479
		depends="geteml,get-ecogrid,jar,protocol,documentation,getConversionXSL,getutilities,getdataone,getdc,getdryad"
1449 1480
		description="prepares a full release distribution">
1450 1481
		<mkdir dir="${dist.dir}" />
1451 1482
		<delete dir="${ver.dir}" />

Also available in: Unified diff