http://git-wip-us.apache.org/repos/asf/oodt/blob/a973c531/config/src/main/resources/examples/filemgr/oodt/elements.xml ---------------------------------------------------------------------- diff --git a/config/src/main/resources/examples/filemgr/oodt/elements.xml b/config/src/main/resources/examples/filemgr/oodt/elements.xml new file mode 100755 index 0000000..d56c44b --- /dev/null +++ b/config/src/main/resources/examples/filemgr/oodt/elements.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +--> +<cas:elements xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas"> +<element id="urn:oodt:ProductId" name="CAS.ProductId"> +<dcElement>Identifier</dcElement> + <!-- +You can optionally specify a 'trim' tag to identify whether +or not you want newlines trimmed from the element description. To +turn off trimming (now done by default), include the following with your +description definition: trim="false" +--> +<description> +A Product's unique identifier within the CAS namespace. +</description> +</element> +<element id="urn:oodt:ProductName" name="CAS.ProductName"> +<dcElement>Title</dcElement> +<description> +A Product's name within the CAS namespace. +</description> +</element> +<element id="urn:oodt:ProductReceivedTime" +name="CAS.ProductReceivedTime"> +<dcElement /> +<description> +The ISO 8601 formatted time that the Product was received. +</description> +</element> +<element id="urn:oodt:Filename" name="Filename"> +<description> +The names of the files that represent this product. +</description> +<dcElement /> +</element> +<element id="urn:oodt:FileLocation" name="FileLocation"> +<description> +The locations of the files that represent this product. +</description> +<dcElement /> +</element> +<element id="urn:oodt:ProductType" name="ProductType"> +<description> +Type of product, as specified by, e.g., a data bible. +</description> +<dcElement /> +</element> +<element id="urn:oodt:ProductStructure" name="ProductStructure"> +<description> +Whether or not a product is Flat (e.g., a set of independent +files), or hierarchical, e.g., a dir structure. +</description> +<dcElement /> +</element> +<element id="urn:oodt:MimeType" name="MimeType"> +<description>The IETF mime type of this product.</description> +<dcElement /> +</element> +<element id="urn:test:DataVersion" name="DataVersion"> +<description>The version of the data product</description> +<dcElement /> +</element> +</cas:elements>
http://git-wip-us.apache.org/repos/asf/oodt/blob/a973c531/config/src/main/resources/examples/filemgr/oodt/product-type-element-map.xml ---------------------------------------------------------------------- diff --git a/config/src/main/resources/examples/filemgr/oodt/product-type-element-map.xml b/config/src/main/resources/examples/filemgr/oodt/product-type-element-map.xml new file mode 100755 index 0000000..418c0d9 --- /dev/null +++ b/config/src/main/resources/examples/filemgr/oodt/product-type-element-map.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +--> +<cas:producttypemap xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas"> + <!-- can set the "parent" attribute on types below to allow inheritance +of elements between the types +--> + <type id="urn:oodt:GenericFile"> + <element id="urn:oodt:ProductReceivedTime"/> + <element id="urn:oodt:ProductName"/> + <element id="urn:oodt:ProductId"/> + <element id="urn:oodt:ProductType"/> + <element id="urn:oodt:ProductStructure"/> + <element id="urn:oodt:Filename"/> + <element id="urn:oodt:FileLocation"/> + <element id="urn:oodt:MimeType"/> + <element id="urn:test:DataVersion"/> + </type> +</cas:producttypemap> http://git-wip-us.apache.org/repos/asf/oodt/blob/a973c531/config/src/main/resources/examples/filemgr/oodt/product-types.xml ---------------------------------------------------------------------- diff --git a/config/src/main/resources/examples/filemgr/oodt/product-types.xml b/config/src/main/resources/examples/filemgr/oodt/product-types.xml new file mode 100755 index 0000000..2d40847 --- /dev/null +++ b/config/src/main/resources/examples/filemgr/oodt/product-types.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +--> +<cas:producttypes xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas"> + <type id="urn:oodt:GenericFile" name="GenericFile"> + <repository path="file://[OODT_HOME]/data/archive"/> + <versioner class="org.apache.oodt.cas.filemgr.versioning.BasicVersioner"/> + <!-- +You can optionally specify a 'trim' tag to identify whether +or not you want newlines trimmed from the product type description. To +turn off trimming (now done by default), include the following attribute with your +description definition: trim="false" +--> + <description>The default product type for any kind of file.</description> + <metExtractors> + <extractor + class="org.apache.oodt.cas.filemgr.metadata.extractors.CoreMetExtractor"> + <configuration> + <!-- you can optionally include the envReplace tag to turn on/off environment var replacement --> + <property name="nsAware" value="true" /> + <property name="elementNs" value="CAS" /> + <property name="elements" + value="ProductReceivedTime,ProductName,ProductId" /> + </configuration> + </extractor> + <extractor class="org.apache.oodt.cas.filemgr.metadata.extractors.examples.MimeTypeExtractor" /> + <extractor class="org.apache.oodt.cas.filemgr.metadata.extractors.examples.FinalFileLocationExtractor"> + <configuration> + <!-- this property specifies whether you want the FILE_LOCATION field +computed by this extractor to replace any other FILE_LOCATION met +attribute. +--> + <property name="replace" value="true"/> + </configuration> + </extractor> + </metExtractors> + <metadata/> + </type> +</cas:producttypes>
