You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by le...@apache.org on 2017/10/27 22:41:52 UTC

[15/15] incubator-sdap-edge git commit: SDAP-1 Import all code under the SDAP SGA

SDAP-1 Import all code under the SDAP SGA


Project: http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/commit/53351bf3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/tree/53351bf3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/diff/53351bf3

Branch: refs/heads/master
Commit: 53351bf3a48e9f844c21e175ed13ae1b22dd69f6
Parents: 
Author: Lewis John McGibbney <le...@gmail.com>
Authored: Fri Oct 27 15:41:26 2017 -0700
Committer: Lewis John McGibbney <le...@gmail.com>
Committed: Fri Oct 27 15:41:26 2017 -0700

----------------------------------------------------------------------
 LICENSE                                         |  201 +++
 README.md                                       |   59 +
 pom.xml                                         |  103 ++
 .../database/src/create_imagery_provider.sql    |  195 +++
 .../database/src/create_product_type_view.sql   |  739 ++++++++
 src/main/database/src/create_product_view.sql   |  635 +++++++
 src/main/python/config.conf                     |    3 +
 src/main/python/edge-env.bash                   |    7 +
 src/main/python/edge-env.csh                    |    7 +
 src/main/python/libraries/edge/__init__.py      |    0
 src/main/python/libraries/edge/dateutility.py   |   57 +
 .../libraries/edge/elasticsearch/__init__.py    |    0
 .../edge/elasticsearch/datasetwriter.py         |  192 +++
 .../edge/elasticsearch/granulewriter.py         |  142 ++
 .../edge/elasticsearch/opensearch/__init__.py   |    0
 .../opensearch/atomresponsebyelasticsearch.py   |   87 +
 .../opensearch/datasetatomresponse.py           |   79 +
 .../opensearch/granuleatomresponse.py           |   78 +
 src/main/python/libraries/edge/httputility.py   |   13 +
 .../libraries/edge/opensearch/__init__.py       |    0
 .../libraries/edge/opensearch/atomresponse.py   |  145 ++
 .../edge/opensearch/atomresponsebysolr.py       |  134 ++
 .../opensearch/datacastingresponsebysolr.py     |   71 +
 .../edge/opensearch/datasetatomresponse.py      |   85 +
 .../edge/opensearch/datasetgcmdresponse.py      |   11 +
 .../edge/opensearch/datasetgranulewriter.py     |  233 +++
 .../edge/opensearch/datasetisoresponse.py       |   11 +
 .../edge/opensearch/datasetresponsebysolr.py    |   14 +
 .../edge/opensearch/datasetrssresponse.py       |   85 +
 .../libraries/edge/opensearch/datasetwriter.py  |  192 +++
 .../libraries/edge/opensearch/fgdcresponse.py   |   56 +
 .../edge/opensearch/fgdcresponsebysolr.py       |  141 ++
 .../edge/opensearch/gcmdresponsebysolr.py       |  123 ++
 .../edge/opensearch/granuleatomresponse.py      |  110 ++
 .../opensearch/granuledatacastingresponse.py    |   41 +
 .../edge/opensearch/granulefgdcresponse.py      |   13 +
 .../edge/opensearch/granuleisoresponse.py       |   33 +
 .../edge/opensearch/granuleresponsebysolr.py    |   37 +
 .../edge/opensearch/granulerssresponse.py       |   96 ++
 .../libraries/edge/opensearch/granulewriter.py  |  251 +++
 .../libraries/edge/opensearch/isoresponse.py    |   38 +
 .../edge/opensearch/isoresponsebysolr.py        |  121 ++
 .../libraries/edge/opensearch/response.py       |   12 +
 .../libraries/edge/opensearch/responsebysolr.py |   67 +
 .../libraries/edge/opensearch/responsewriter.py |  142 ++
 .../libraries/edge/opensearch/rssresponse.py    |  126 ++
 .../edge/opensearch/rssresponsebysolr.py        |  134 ++
 .../edge/opensearch/solrcmrtemplateresponse.py  |  243 +++
 .../edge/opensearch/solrtemplateresponse.py     |   65 +
 .../edge/opensearch/templateresponse.py         |   33 +
 .../python/libraries/edge/response/__init__.py  |    0
 .../edge/response/estemplateresponse.py         |   54 +
 .../edge/response/jsontemplateresponse.py       |   33 +
 .../edge/response/solrfacettemplateresponse.py  |   23 +
 .../edge/response/solrjsontemplateresponse.py   |   60 +
 src/main/python/libraries/edge/spatialsearch.py |   66 +
 .../python/libraries/edge/writer/__init__.py    |    0
 .../edge/writer/estemplateresponsewriter.py     |  116 ++
 .../libraries/edge/writer/genericproxywriter.py |   14 +
 .../python/libraries/edge/writer/proxywriter.py |   32 +
 .../edge/writer/solrtemplateresponsewriter.py   |  115 ++
 .../edge/writer/templateresponsewriter.py       |   40 +
 src/main/python/logging.conf                    |   28 +
 src/main/python/pluginhandler.py                |   58 +
 src/main/python/plugins/TestPlugin.py           |    5 +
 src/main/python/plugins/__init__.py             |    0
 src/main/python/plugins/dataset/__init__.py     |    0
 .../python/plugins/dataset/atom/AtomWriter.py   |   26 +
 .../python/plugins/dataset/atom/__init__.py     |    0
 .../python/plugins/dataset/atom/plugin.conf     |   11 +
 .../python/plugins/dataset/gcmd/DifWriter.py    |   32 +
 .../python/plugins/dataset/gcmd/__init__.py     |    0
 .../plugins/dataset/gcmd/dif_template.xml       |  216 +++
 .../python/plugins/dataset/gcmd/plugin.conf     |   32 +
 .../python/plugins/dataset/iso/IsoWriter.py     |   28 +
 src/main/python/plugins/dataset/iso/__init__.py |    0
 .../python/plugins/dataset/iso/iso_template.xml |  587 +++++++
 src/main/python/plugins/dataset/iso/plugin.conf |   11 +
 .../python/plugins/dataset/rss/RssWriter.py     |   18 +
 src/main/python/plugins/dataset/rss/__init__.py |    0
 src/main/python/plugins/dataset/rss/plugin.conf |   10 +
 src/main/python/plugins/example/__init__.py     |    0
 .../python/plugins/example/elastic/Writer.py    |   45 +
 .../python/plugins/example/elastic/__init__.py  |    0
 .../python/plugins/example/elastic/plugin.conf  |   12 +
 .../python/plugins/example/elastic/template.xml |   35 +
 .../python/plugins/example/json/JsonWriter.py   |    6 +
 .../python/plugins/example/json/__init__.py     |    0
 src/main/python/plugins/granule/__init__.py     |    0
 .../python/plugins/granule/atom/AtomWriter.py   |   27 +
 .../python/plugins/granule/atom/__init__.py     |    0
 .../python/plugins/granule/atom/plugin.conf     |   12 +
 .../granule/datacasting/DatacastingWriter.py    |   39 +
 .../plugins/granule/datacasting/__init__.py     |    0
 .../datacasting/datacasting_template.xml        |   58 +
 .../plugins/granule/datacasting/plugin.conf     |   13 +
 .../python/plugins/granule/fgdc/FgdcWriter.py   |   21 +
 .../python/plugins/granule/fgdc/__init__.py     |    0
 .../plugins/granule/fgdc/fgdc_template.xml      |  510 ++++++
 .../python/plugins/granule/fgdc/plugin.conf     |   10 +
 .../python/plugins/granule/iso/IsoWriter.py     |   23 +
 src/main/python/plugins/granule/iso/__init__.py |    0
 .../python/plugins/granule/iso/iso_template.xml |  674 ++++++++
 src/main/python/plugins/granule/iso/plugin.conf |   10 +
 .../python/plugins/granule/rss/RssWriter.py     |   21 +
 src/main/python/plugins/granule/rss/__init__.py |    0
 src/main/python/plugins/granule/rss/plugin.conf |   12 +
 src/main/python/plugins/heartbeat/__init__.py   |    0
 .../python/plugins/heartbeat/json/Writer.py     |   30 +
 .../python/plugins/heartbeat/json/__init__.py   |    0
 .../python/plugins/heartbeat/json/plugin.conf   |    2 +
 src/main/python/plugins/icoads/__init__.py      |    0
 src/main/python/plugins/icoads/json/Writer.py   |   89 +
 src/main/python/plugins/icoads/json/__init__.py |    0
 src/main/python/plugins/icoads/json/plugin.conf |   11 +
 .../python/plugins/icoads/json/template.json    |   64 +
 src/main/python/plugins/nexus/__init__.py       |    0
 .../python/plugins/nexus/climatology/Writer.py  |    8 +
 .../plugins/nexus/climatology/__init__.py       |    0
 .../plugins/nexus/climatology/plugin.conf       |    2 +
 src/main/python/plugins/nexus/solr/Writer.py    |    8 +
 src/main/python/plugins/nexus/solr/__init__.py  |    0
 src/main/python/plugins/nexus/solr/plugin.conf  |    2 +
 .../python/plugins/nexus/subsetter/Writer.py    |    8 +
 .../python/plugins/nexus/subsetter/__init__.py  |    0
 .../python/plugins/nexus/subsetter/plugin.conf  |    2 +
 .../python/plugins/oceanxtremes/__init__.py     |    0
 .../plugins/oceanxtremes/datacasting/Writer.py  |   62 +
 .../oceanxtremes/datacasting/__init__.py        |    0
 .../oceanxtremes/datacasting/plugin.conf        |   12 +
 .../oceanxtremes/datacasting/template.xml       |   43 +
 .../python/plugins/oceanxtremes/post/Writer.py  |   44 +
 .../plugins/oceanxtremes/post/__init__.py       |    0
 .../plugins/oceanxtremes/post/plugin.conf       |    3 +
 src/main/python/plugins/oiip/__init__.py        |    0
 src/main/python/plugins/oiip/json/Writer.py     |   46 +
 src/main/python/plugins/oiip/json/__init__.py   |    0
 src/main/python/plugins/oiip/json/plugin.conf   |   11 +
 src/main/python/plugins/oiip/json/template.json |   22 +
 src/main/python/plugins/oiip/xml/Writer.py      |   44 +
 src/main/python/plugins/oiip/xml/__init__.py    |    0
 src/main/python/plugins/oiip/xml/plugin.conf    |   11 +
 src/main/python/plugins/oiip/xml/template.xml   |   14 +
 src/main/python/plugins/passthrough/__init__.py |    0
 .../plugins/passthrough/pt/PassThroughWriter.py |  105 ++
 .../python/plugins/passthrough/pt/__init__.py   |    0
 .../python/plugins/passthrough/pt/plugin.conf   |    2 +
 src/main/python/plugins/product/__init__.py     |    0
 .../python/plugins/product/atom/AtomWriter.py   |   27 +
 src/main/python/plugins/product/atom/Writer.py  |   71 +
 .../python/plugins/product/atom/__init__.py     |    0
 .../python/plugins/product/atom/plugin.conf     |   12 +
 .../python/plugins/product/atom/template.xml    |   85 +
 src/main/python/plugins/product/iso/Writer.py   |   38 +
 src/main/python/plugins/product/iso/__init__.py |    0
 src/main/python/plugins/product/iso/plugin.conf |    8 +
 .../python/plugins/product/iso/template.xml     |  726 ++++++++
 src/main/python/plugins/productType/__init__.py |    0
 .../plugins/productType/atom/AtomWriter.py      |   26 +
 .../python/plugins/productType/atom/__init__.py |    0
 .../python/plugins/productType/atom/plugin.conf |   11 +
 .../python/plugins/product_type/__init__.py     |    0
 .../python/plugins/product_type/atom/Writer.py  |   74 +
 .../plugins/product_type/atom/__init__.py       |    0
 .../plugins/product_type/atom/plugin.conf       |   12 +
 .../plugins/product_type/atom/template.xml      |  116 ++
 .../python/plugins/product_type/iso/Writer.py   |   35 +
 .../python/plugins/product_type/iso/__init__.py |    0
 .../python/plugins/product_type/iso/plugin.conf |    8 +
 .../plugins/product_type/iso/template.xml       |  914 ++++++++++
 src/main/python/plugins/samos/__init__.py       |    0
 src/main/python/plugins/samos/json/Writer.py    |   89 +
 src/main/python/plugins/samos/json/__init__.py  |    0
 src/main/python/plugins/samos/json/plugin.conf  |   11 +
 .../python/plugins/samos/json/template.json     |   63 +
 src/main/python/plugins/slcp/__init__.py        |    0
 src/main/python/plugins/slcp/atom/Writer.py     |   86 +
 src/main/python/plugins/slcp/atom/__init__.py   |    0
 src/main/python/plugins/slcp/atom/plugin.conf   |   12 +
 src/main/python/plugins/slcp/atom/template.xml  |  148 ++
 src/main/python/plugins/slcp/basin/Writer.py    |   35 +
 src/main/python/plugins/slcp/basin/__init__.py  |    0
 src/main/python/plugins/slcp/basin/plugin.conf  |   11 +
 .../python/plugins/slcp/basin/template.json     |   68 +
 src/main/python/plugins/slcp/content/Writer.py  |   76 +
 .../python/plugins/slcp/content/__init__.py     |    0
 .../python/plugins/slcp/content/plugin.conf     |   11 +
 .../python/plugins/slcp/content/template.xml    |  158 ++
 src/main/python/plugins/slcp/dat/Writer.py      |   53 +
 src/main/python/plugins/slcp/dat/__init__.py    |    0
 src/main/python/plugins/slcp/dat/plugin.conf    |    9 +
 src/main/python/plugins/slcp/dat/template.json  |   33 +
 src/main/python/plugins/slcp/echo10/Writer.py   |   39 +
 src/main/python/plugins/slcp/echo10/__init__.py |    0
 src/main/python/plugins/slcp/echo10/plugin.conf |    8 +
 .../python/plugins/slcp/echo10/template.xml     |  190 ++
 src/main/python/plugins/slcp/facet/Writer.py    |   70 +
 src/main/python/plugins/slcp/facet/__init__.py  |    0
 src/main/python/plugins/slcp/facet/plugin.conf  |   11 +
 src/main/python/plugins/slcp/facet/template.xml |   41 +
 src/main/python/plugins/slcp/granule/Writer.py  |   79 +
 .../python/plugins/slcp/granule/__init__.py     |    0
 .../python/plugins/slcp/granule/plugin.conf     |   12 +
 .../python/plugins/slcp/granule/template.xml    |   49 +
 .../python/plugins/slcp/indicator/Writer.py     |   64 +
 .../python/plugins/slcp/indicator/__init__.py   |    0
 .../python/plugins/slcp/indicator/plugin.conf   |    4 +
 src/main/python/plugins/slcp/stats/Writer.py    |   57 +
 src/main/python/plugins/slcp/stats/__init__.py  |    0
 src/main/python/plugins/slcp/stats/plugin.conf  |   11 +
 .../python/plugins/slcp/stats/template.json     |   40 +
 src/main/python/plugins/slcp/suggest/Writer.py  |   22 +
 .../python/plugins/slcp/suggest/__init__.py     |    0
 .../python/plugins/slcp/suggest/plugin.conf     |    2 +
 src/main/python/plugins/slcp/umm-json/Writer.py |   39 +
 .../python/plugins/slcp/umm-json/__init__.py    |    0
 .../python/plugins/slcp/umm-json/plugin.conf    |    8 +
 .../python/plugins/slcp/umm-json/template.json  |  274 +++
 src/main/python/plugins/spurs/__init__.py       |    0
 src/main/python/plugins/spurs/json/Writer.py    |   76 +
 src/main/python/plugins/spurs/json/__init__.py  |    0
 src/main/python/plugins/spurs/json/plugin.conf  |   12 +
 .../python/plugins/spurs/json/template.json     |   63 +
 src/main/python/plugins/spurs2/__init__.py      |    0
 src/main/python/plugins/spurs2/json/Writer.py   |   76 +
 src/main/python/plugins/spurs2/json/__init__.py |    0
 src/main/python/plugins/spurs2/json/plugin.conf |   12 +
 .../python/plugins/spurs2/json/template.json    |   64 +
 src/main/python/plugins/tie/__init__.py         |    0
 .../python/plugins/tie/collection/Writer.py     |   54 +
 .../python/plugins/tie/collection/__init__.py   |    0
 .../python/plugins/tie/collection/plugin.conf   |    2 +
 src/main/python/requestresponder.py             |   24 +
 src/main/python/requirements.txt                |    3 +
 src/main/python/server.py                       |  102 ++
 .../python/templates/podaac-dataset-osd.xml     |   16 +
 .../python/templates/podaac-granule-osd.xml     |   16 +
 src/main/solr/product/conf/data-config.xml      |  106 ++
 .../solr/product/conf/dataimport.properties     |    3 +
 src/main/solr/product/conf/schema.xml           | 1201 +++++++++++++
 src/main/solr/product/conf/solrconfig.xml       | 1626 +++++++++++++++++
 src/main/solr/product_type/conf/data-config.xml |  124 ++
 .../product_type/conf/dataimport.properties     |    3 +
 src/main/solr/product_type/conf/schema.xml      | 1262 ++++++++++++++
 src/main/solr/product_type/conf/solrconfig.xml  | 1627 ++++++++++++++++++
 src/site/apt/index.apt                          |   14 +
 src/site/apt/install/index.apt                  |  144 ++
 src/site/apt/operate/index.apt                  |  344 ++++
 src/site/apt/release/index-2.2.1.apt            |   73 +
 src/site/apt/release/index-3.0.0.apt            |   71 +
 src/site/apt/release/index-3.1.0.apt            |   81 +
 src/site/apt/release/index-3.1.1.apt            |   89 +
 src/site/apt/release/index-3.2.0.apt            |   79 +
 src/site/apt/release/index-3.2.1.apt            |   79 +
 src/site/apt/release/index-3.2.2.apt            |   81 +
 src/site/apt/release/index-3.3.0.apt            |   81 +
 src/site/apt/release/index-4.0.0.apt            |   79 +
 src/site/apt/release/index-4.1.0.apt            |   79 +
 src/site/apt/release/index-4.2.0.apt            |   79 +
 src/site/apt/release/index-4.3.0.apt            |   77 +
 src/site/apt/release/index-4.4.0.apt            |   78 +
 src/site/apt/release/index-4.4.1.apt            |   79 +
 src/site/apt/release/index.apt                  |  101 ++
 src/site/resources/images/podaac_logo.jpg       |  Bin 0 -> 5151 bytes
 src/site/site.xml                               |   36 +
 265 files changed, 21510 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/blob/53351bf3/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8dada3e
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,201 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "{}"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright {yyyy} {name of copyright owner}
+
+   Licensed 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.

http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/blob/53351bf3/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..8be6037
--- /dev/null
+++ b/README.md
@@ -0,0 +1,59 @@
+# The Extensible Data Gateway Environment (EDGE)
+The Extensible Data Gateway Environment (EDGE) is a data integration platform designed to facilitate high-performance geospatial data discovery and access with the ability to support multimetadata standard specifications. EDGE is designed with two main building blocks: data aggregation service and enterprise geospatial indexed search cluster. The data aggregation service provides web service interfaces for searches, metadata packaging, and data access. Aggregation often involves retrieving data from two or more sources and packaging the resulting sets into a single response to the requestor. It could also serve as a proxy to other local/remote services to reduce the number of interfaces a requestor has to access. The enterprise geospatial indexed search cluster, which currently supports Apache Solr (http://lucene.apache.org/solr/) and ElasticSearch (http://elasticsearch.org), is a horizontal scale cluster for faceted search with geospatial support.
+
+# Setup
+
+1. Setup and activate a conda environment
+
+    ````
+    conda create --name edge python
+    source activate edge
+    ````
+
+2. Install dependencies
+
+    ````
+    cd edge/src/main/python
+    pip install -r requirements.txt
+    ````
+
+3. Update pythonpath
+
+    ````
+    source edge-env.bash
+    ````
+
+4. Launch EDGE service
+
+    ````
+    python server.py
+    ````
+# Adding Custom Plugin
+
+You will need to customize EDGE to work with your existing Apache Solr or ElasticSearch metadata endpoints.
+
+## ElasticSearch
+
+For an ElasticSearch example plugin, see [plugins/example/elastic](src/main/python/plugins/example/elastic)
+
+1. Copy the plugins/example/elastic plugin into a new directory, for example, plugins/myproject/elastic.
+
+2. Update [plugin.conf](src/main/python/plugins/example/elastic/plugin.conf) datasetUrl to point to an ElasticSarch index endpoint.
+
+3. Update [template.xml](src/main/python/plugins/example/elastic/template.xml) to modify the response XML. Metadata values for each document returned are stored in the doc variable dictionary, for example, doc['ShortName'].
+
+    To handle additional search parameters, update [plugin.conf](src/main/python/plugins/example/elastic/plugin.conf) parameters to include additional parameters, for example,
+
+    ````
+    parameters=keyword,bbox,startTime,endTime
+    ````
+
+    Update [Writer.py](src/main/python/plugins/example/elastic/Writer.py) to handle these additional parameters by modifying the resulting query sent to ElasticSearch endpoint.
+
+4. Update [server.py](src/main/python/server.py) to add a new endpoint that will invoke the newly created plugin, for example,
+
+    ````
+    (r"/myplugin/es", GenericHandler, dict(pluginName='myplugin', format=['elastic'])),
+    ````
+
+5. Restart EDGE and access the new endpoint at [http://localhost:8890/myplugin/es](http://localhost:8890/myplugin/es).

http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/blob/53351bf3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..5fcf32b
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- 
+   Copyright 2009, by the California Institute of Technology.
+   ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged.
+   
+   View Parent POM
+   
+   @author Thomas Huang {Thomas.Huang@jpl.nasa.gov}
+   @version $Id: $
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+   http://maven.apache.org/xsd/maven-4.0.0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+   <parent>
+      <groupId>gov.nasa.podaac</groupId>
+      <artifactId>podaac</artifactId>
+      <version>0.0.0</version>
+   </parent>
+
+   <groupId>gov.nasa.podaac</groupId>
+   <artifactId>ocsi</artifactId>
+   <version>4.4.1</version>
+   <packaging>pom</packaging>
+
+   <name>OCSI Program Set</name>
+   <description> The OCSI Program Set captures presentation layer
+      implementations.</description>
+   <url>http://podaac-cm.jpl.nasa.gov/docs/ocsi/</url>
+
+   <modules>
+      <!--
+        <module>ghrsst-web</module>
+        <module>portal</module>
+        <module>vodc</module>
+        -->
+   </modules>
+
+   <repositories>
+      <repository>
+         <id>podaac-repo</id>
+         <name>PO.DAAC Repository</name>
+         <url>http://podaac-cm.jpl.nasa.gov/maven2</url>
+         <releases>
+            <updatePolicy>always</updatePolicy>
+            <checksumPolicy>warn</checksumPolicy>
+         </releases>
+         <snapshots>
+            <enabled>false</enabled>
+         </snapshots>
+      </repository>
+   </repositories>
+
+   <build>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-site-plugin</artifactId>
+            <version>2.1.1</version>
+            <dependencies>
+               <dependency>
+                  <groupId>commons-httpclient</groupId>
+                  <artifactId>commons-httpclient</artifactId>
+                  <version>3.1</version>
+                  <exclusions>
+                     <exclusion>
+                        <groupId>commons-logging</groupId>
+                        <artifactId>commons-logging</artifactId>
+                     </exclusion>
+                  </exclusions>
+               </dependency>
+            </dependencies>
+         </plugin>
+      </plugins>
+   </build>
+
+   <reporting>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-project-info-reports-plugin</artifactId>
+            <reportSets>
+               <reportSet>
+                  <reports>
+                     <report>dependencies</report>
+                     <report>summary</report>
+                  </reports>
+               </reportSet>
+            </reportSets>
+         </plugin>
+         <plugin>
+            <artifactId>maven-javadoc-plugin</artifactId>
+         </plugin>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-report-plugin</artifactId>
+         </plugin>
+      </plugins>
+   </reporting>
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/blob/53351bf3/src/main/database/src/create_imagery_provider.sql
----------------------------------------------------------------------
diff --git a/src/main/database/src/create_imagery_provider.sql b/src/main/database/src/create_imagery_provider.sql
new file mode 100644
index 0000000..97a2b06
--- /dev/null
+++ b/src/main/database/src/create_imagery_provider.sql
@@ -0,0 +1,195 @@
+--*********************************************************************************************
+--**  Imagery Provider Model 
+--**
+--**  The imagery provider model is comprised of the following data models:
+--**
+--**     Imagery Provider Model
+--**        - product_contact_view
+--**             - provider_view (intermediate view)
+--**             - contact_view (intermediate view)
+--**
+--*********************************************************************************************
+
+--*********************************************************************************************
+-- Imagery Provider Model 
+--*********************************************************************************************
+
+--------------------------------------------------
+-- provider_resource_view
+--------------------------------------------------
+DROP VIEW IF EXISTS provider_resource_view CASCADE;
+CREATE VIEW provider_resource_view AS
+SELECT
+   
+   -- provider
+   provider.id         as provider_id,  
+
+   -- provider_resource
+   string_agg(provider_resource.version::int8::text, 
+              ',' order by provider_resource.id) as provider_resource_version_list,
+   string_agg(provider_resource.description, 
+              ',' order by provider_resource.id) as provider_resource_description_list,
+   string_agg(provider_resource.name,        
+              ',' order by provider_resource.id) as provider_resource_name_list,
+   string_agg(provider_resource.path,        
+              ',' order by provider_resource.id) as provider_resource_path_list,
+   string_agg(provider_resource.type,        
+              ',' order by provider_resource.id) as provider_resource_type_list
+
+FROM provider 
+LEFT JOIN provider_resource ON provider_resource.provider_id = provider.id
+GROUP BY provider.id;
+SELECT COUNT(*) AS provider_resource_view_count FROM provider_resource_view;
+SELECT * FROM provider_resource_view LIMIT 5;
+
+--------------------------------------------------
+-- provider_contact_view
+--------------------------------------------------
+DROP VIEW IF EXISTS provider_contact_view CASCADE;
+CREATE VIEW provider_contact_view AS
+SELECT
+
+   -- provider
+   provider.id as provider_id,
+
+   -- contact
+   string_agg(contact.version::int8::text, ',' order by contact.id) as provider_contact_version_list,
+   string_agg(contact.role,                ',' order by contact.id) as provider_contact_role_list,
+   string_agg(contact.first_name,          ',' order by contact.id) as provider_contact_first_name_list,
+   string_agg(contact.last_name,           ',' order by contact.id) as provider_contact_last_name_list,
+   string_agg(contact.middle_name,         ',' order by contact.id) as provider_contact_middle_name_list,
+   string_agg(contact.address,             ',' order by contact.id) as provider_contact_address_list,
+   string_agg(contact.notify_type,         ',' order by contact.id) as provider_contact_notify_type_list,
+   string_agg(contact.email,               ',' order by contact.id) as provider_contact_email_list,
+   string_agg(contact.phone,               ',' order by contact.id) as provider_contact_phone_list,
+   string_agg(contact.fax,                 ',' order by contact.id) as provider_contact_fax_list
+
+FROM provider
+LEFT JOIN contact ON contact.provider_id = provider.id
+GROUP BY provider.id;
+SELECT COUNT(*) AS provider_contact_view_count FROM provider_contact_view;
+SELECT * FROM provider_contact_view LIMIT 5;
+
+--------------------------------------------------
+-- provider_view
+--------------------------------------------------
+DROP VIEW IF EXISTS provider_view CASCADE;
+CREATE VIEW provider_view AS
+SELECT
+
+   -- provider
+   provider.id          as provider_id,
+   provider.version     as provider_version,
+   provider.long_name   as provider_long_name,
+   provider.short_name  as provider_short_name,
+   provider.type        as provider_type,
+
+   -- provider_resource_view
+   provider_resource_version_list,
+   provider_resource_description_list,
+   provider_resource_name_list,
+   provider_resource_path_list,
+   provider_resource_type_list,
+
+   -- provider_contact_view
+   provider_contact_version_list,
+   provider_contact_role_list,
+   provider_contact_first_name_list,
+   provider_contact_last_name_list,
+   provider_contact_middle_name_list,
+   provider_contact_address_list,
+   provider_contact_notify_type_list,
+   provider_contact_email_list,
+   provider_contact_phone_list,
+   provider_contact_fax_list
+
+FROM provider, 
+     provider_resource_view,
+     provider_contact_view
+WHERE 
+     provider.id = provider_resource_view.provider_id AND
+     provider.id = provider_contact_view.provider_id;
+SELECT COUNT(*) AS provider_view_count FROM provider_view;
+SELECT * FROM provider_view LIMIT 5;
+
+--------------------------------------------------
+-- contact_provider_view (used for product)
+--------------------------------------------------
+DROP VIEW IF EXISTS contact_provider_view CASCADE;
+CREATE VIEW contact_provider_view AS
+SELECT
+
+   -- contact
+   contact.provider_id,
+   contact.id           as contact_id,
+   contact.version      as contact_version,
+   contact.role         as contact_role,
+   contact.first_name   as contact_first_name,
+   contact.last_name    as contact_last_name,
+   contact.middle_name  as contact_middle_name,
+   contact.address      as contact_address,
+   contact.notify_type  as contact_notify_type,
+   contact.email        as contact_email,
+   contact.phone        as contact_phone,
+   contact.fax          as contact_fax,
+
+   -- provider
+   provider.type        as provider_type,
+   provider.version     as provider_version,
+   provider.long_name   as provider_long_name,
+   provider.short_name  as provider_short_name,
+
+   -- provider_resource_view
+   provider_resource_view.provider_resource_version_list,
+   provider_resource_view.provider_resource_description_list,
+   provider_resource_view.provider_resource_name_list,
+   provider_resource_view.provider_resource_path_list,
+   provider_resource_view.provider_resource_type_list
+FROM contact,
+     provider,
+     provider_resource_view
+WHERE contact.provider_id = provider.id
+AND   contact.provider_id = provider_resource_view.provider_id;
+SELECT COUNT(*) AS contact_provider_view_count FROM contact_provider_view;
+SELECT * FROM contact_provider_view LIMIT 5;
+
+--------------------------------------------------
+-- dataset_provider_view (no provider id in the dataset )
+--------------------------------------------------
+DROP VIEW IF EXISTS dataset_provider_view CASCADE;
+CREATE VIEW dataset_provider_view AS
+SELECT
+
+   -- dataset
+   dataset.provider_id,
+   dataset.id                as dataset_id,
+   dataset.version           as dataset_version,
+   dataset.long_name         as dataset_long_name,
+   dataset.short_name        as dataset_short_name,
+   dataset.metadata_endpoint as dataset_metadata_endpoint,
+   dataset.metadata_registry as dataset_metadata_registry,
+   dataset.remote_dataset_id as dataset_remote_dataset_id,
+
+   -- provider
+   provider.version          as provider_version,
+   provider.type             as provider_type,
+   provider.long_name        as provider_long_name,
+   provider.short_name       as provider_short_name,
+
+   -- provider_resource_view
+   provider_resource_view.provider_resource_version_list,
+   provider_resource_view.provider_resource_description_list,
+   provider_resource_view.provider_resource_name_list,
+   provider_resource_view.provider_resource_path_list,
+   provider_resource_view.provider_resource_type_list
+
+FROM dataset,
+     provider,
+     provider_resource_view
+WHERE dataset.provider_id = provider.id
+AND   dataset.provider_id = provider_resource_view.provider_id;
+SELECT COUNT(*) AS dataset_provider_view_count FROM dataset_provider_view;
+SELECT * FROM dataset_provider_view LIMIT 5;
+
+
+

http://git-wip-us.apache.org/repos/asf/incubator-sdap-edge/blob/53351bf3/src/main/database/src/create_product_type_view.sql
----------------------------------------------------------------------
diff --git a/src/main/database/src/create_product_type_view.sql b/src/main/database/src/create_product_type_view.sql
new file mode 100644
index 0000000..01cadfc
--- /dev/null
+++ b/src/main/database/src/create_product_type_view.sql
@@ -0,0 +1,739 @@
+--*********************************************************************************************
+--**  Product Type Model
+--**
+--**  The product type model is comprised of the following data models:
+--**
+--**     Product Type Model
+--**
+--**        - product_type_dataset_view
+--**            - dataset_imagery_view
+--**                - dataset_imagery
+--**                - dataset
+--**
+--**        - product_type_resource_view
+--**            - product_type
+--**            - product_type_resource
+--**
+--**        - product_type_coverage_view
+--**            - product_type
+--**            - product_type_coverage
+--**
+--**        - product_type_generation_view
+--**            - product_type
+--**            - product_type_generation
+--**
+--**        - product_type_metadata_view
+--**            - product_type
+--**            - product_type_metadata
+--**
+--**        - product_type_policy_view
+--**            - product_type
+--**            - product_type_policy
+--**
+--**        - product_type_location_policy_view
+--**            - product_type
+--**            - product_type_location_policy_view
+--**
+--**        - product_type_provider_view
+--**            - product_type
+--**            - provider_view (see create_imagery_provider.sql)
+--**                 - provider
+--**                 - provider_resource_view
+--**                     - provider
+--**                     - provider_resource
+--**                 - provider_contact_view 
+--**                     - provider
+--**                     - contact
+--**
+--**        - product_type_element_view
+--**            - product_type_element
+--**            - product_type_element_dd_view
+--**                - product_type_element
+--**                - element_dd
+--**
+--**        - product_type_datetime_view
+--**            - product_type
+--**            - product_type_datetime
+--**
+--**        - product_type_character_view
+--**            - product_type
+--**            - product_type_character
+--**
+--**        - product_type_integer_view
+--**            - product_type
+--**            - product_type_integer
+--**
+--**        - product_type_real_view
+--**            - product_type
+--**            - product_type_real
+--**
+--*********************************************************************************************
+
+-----------------------------------------------------------------------------------------------
+-- product_type_dataset_view
+-----------------------------------------------------------------------------------------------
+DROP VIEW IF EXISTS dataset_imagery_view CASCADE;
+CREATE VIEW dataset_imagery_view AS
+SELECT
+
+   -- dataset_imagery
+   dataset_imagery.pt_id       as product_type_id,
+
+   -- dataset
+   string_agg(dataset.id::int8::text,
+              ',' order by dataset.id) as dataset_id_list,
+   string_agg(dataset.revision::int8::text,
+              ',' order by dataset.id) as dataset_revision_list,
+   string_agg(dataset.description,
+              ',' order by dataset.id) as dataset_description_list,
+   string_agg(dataset.long_name,
+              ',' order by dataset.id) as dataset_long_name_list,
+   string_agg(dataset.short_name,
+              ',' order by dataset.id) as dataset_short_name_list,
+   string_agg(dataset.metadata_endpoint,
+              ',' order by dataset.id) as dataset_metadata_endpoint_list,
+   string_agg(dataset.metadata_registry,
+              ',' order by dataset.id) as dataset_metadata_registry_list,
+   string_agg(dataset.remote_dataset_id,
+              ',' order by dataset.id) as dataset_remote_dataset_id_list
+
+FROM dataset_imagery
+LEFT JOIN dataset ON dataset.id = dataset_imagery.dataset_id
+GROUP BY dataset_imagery.pt_id;
+SELECT COUNT(*) AS dataset_imagery_view FROM dataset_imagery_view;
+--SELECT * FROM dataset_imagery_view ORDER BY product_type_id LIMIT 5;
+
+DROP VIEW IF EXISTS product_type_dataset_view CASCADE;
+CREATE VIEW product_type_dataset_view AS
+SELECT
+
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- dataset_imagery_view
+   dataset_imagery_view.dataset_id_list                as product_type_dataset_id_list, 
+   dataset_imagery_view.dataset_revision_list          as product_type_dataset_revision_list, 
+   dataset_imagery_view.dataset_description_list       as product_type_dataset_description_list,          
+   dataset_imagery_view.dataset_long_name_list         as product_type_dataset_long_name_list,            
+   dataset_imagery_view.dataset_short_name_list        as product_type_dataset_short_name_list,           
+   dataset_imagery_view.dataset_metadata_endpoint_list as product_type_dataset_metadata_endpoint_list,    
+   dataset_imagery_view.dataset_metadata_registry_list as product_type_dataset_metadata_registry_list,    
+   dataset_imagery_view.dataset_remote_dataset_id_list as product_type_dataset_remote_dataset_id_list
+
+FROM product_type
+LEFT JOIN dataset_imagery_view ON dataset_imagery_view.product_type_id = product_type.id
+GROUP BY product_type.id,
+         dataset_imagery_view.dataset_id_list,  
+         dataset_imagery_view.dataset_revision_list,  
+         dataset_imagery_view.dataset_description_list,  
+         dataset_imagery_view.dataset_long_name_list,  
+         dataset_imagery_view.dataset_short_name_list,  
+         dataset_imagery_view.dataset_metadata_endpoint_list,
+         dataset_imagery_view.dataset_metadata_registry_list,
+         dataset_imagery_view.dataset_remote_dataset_id_list;
+SELECT COUNT(*) AS product_type_dataset_view FROM product_type_dataset_view;
+--SELECT * FROM product_type_dataset_view ORDER BY product_type_id LIMIT 5;
+
+---------------------------------------------------------------------------
+-- product_type_resource_view
+---------------------------------------------------------------------------
+DROP VIEW IF EXISTS product_type_resource_view CASCADE;
+CREATE VIEW product_type_resource_view AS
+SELECT
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- product_type_resource
+   string_agg(product_type_resource.version::int8::text,
+              ',' order by product_type_resource.id) as product_type_resource_version_list,
+   string_agg(product_type_resource.type,        
+              ',' order by product_type_resource.id) as product_type_resource_type_list,
+   string_agg(product_type_resource.name,        
+              ',' order by product_type_resource.id) as product_type_resource_name_list,
+   string_agg(product_type_resource.path,        
+              ',' order by product_type_resource.id) as product_type_resource_path_list,
+   string_agg(product_type_resource.description, 
+              ',' order by product_type_resource.id) as product_type_resource_description_list
+FROM product_type
+LEFT JOIN product_type_resource ON product_type_resource.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_resource_view_count FROM product_type_resource_view;
+--SELECT * FROM product_type_resource_view LIMIT 5;
+
+---------------------------------------------------------------------------
+-- product_type_coverage_view
+---------------------------------------------------------------------------
+DROP VIEW IF EXISTS product_type_coverage_view CASCADE;
+CREATE VIEW product_type_coverage_view AS 
+SELECT 
+   -- product_type
+   product_type.id as product_type_id,
+ 
+   -- product_type_coverage 
+   string_agg(product_type_coverage.version::int8::text,
+              ',' order by product_type_coverage.id) as product_type_coverage_version_list,
+   string_agg(product_type_coverage.north_latitude::real::text,      
+              ',' order by product_type_coverage.id) as product_type_coverage_north_latitude_list,
+   string_agg(product_type_coverage.east_longitude::real::text,      
+              ',' order by product_type_coverage.id) as product_type_coverage_east_longitude_list,
+   string_agg(product_type_coverage.south_latitude::real::text,      
+              ',' order by product_type_coverage.id) as product_type_coverage_south_latitude_list,
+   string_agg(product_type_coverage.west_longitude::real::text,      
+              ',' order by product_type_coverage.id) as product_type_coverage_west_longitude_list,
+   string_agg(product_type_coverage.start_time::int8::text,          
+              ',' order by product_type_coverage.id) as product_type_coverage_start_time_list,
+   string_agg(product_type_coverage.stop_time::int8::text,           
+              ',' order by product_type_coverage.id) as product_type_coverage_stop_time_list,
+   string_agg(('1970-01-01 00:00:00 GMT'::timestamp + ((product_type_coverage.start_time/1000)::text)::interval)::timestamp::text,
+              ',' order by product_type_coverage.id) as product_type_coverage_start_time_string_list,
+   string_agg(('1970-01-01 00:00:00 GMT'::timestamp + ((product_type_coverage.stop_time/1000)::text)::interval)::timestamp::text, 
+              ',' order by product_type_coverage.id) as product_type_coverage_stop_time_string_list
+FROM product_type
+LEFT JOIN product_type_coverage ON product_type_coverage.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_coverage_view_count FROM product_type_coverage_view;
+--SELECT * FROM product_type_coverage_view LIMIT 5;
+
+---------------------------------------------------------------------------
+-- product_type_generation_view
+---------------------------------------------------------------------------
+DROP VIEW IF EXISTS product_type_generation_view CASCADE;
+CREATE VIEW product_type_generation_view AS 
+SELECT
+   -- product_type
+   product_type.id as product_type_id,
+ 
+   -- product_type_generation 
+   string_agg(product_type_generation.version::int8::text,      
+              ',' order by product_type_generation.id) as product_type_generation_version_list,
+   string_agg(product_type_generation.mrf_block_size::int8::text,      
+              ',' order by product_type_generation.id) as product_type_generation_mrf_block_size_list,
+   string_agg(product_type_generation.output_sizex::int8::text,        
+              ',' order by product_type_generation.id) as product_type_generation_output_sizex_list,
+   string_agg(product_type_generation.output_sizey::int8::text,        
+              ',' order by product_type_generation.id) as product_type_generation_output_sizey_list,
+   string_agg(product_type_generation.overview_levels::int8::text,     
+              ',' order by product_type_generation.id) as product_type_generation_overview_levels_list,
+   string_agg(product_type_generation.overview_resample,               
+              ',' order by product_type_generation.id) as product_type_generation_overview_resample_list,
+   string_agg(product_type_generation.overview_scale::int8::text,      
+              ',' order by product_type_generation.id) as product_type_generation_overview_scale_list,
+   string_agg(product_type_generation.reprojection_resample,           
+              ',' order by product_type_generation.id) as product_type_generation_reprojection_resample_list,
+   string_agg(product_type_generation.resize_resample,                 
+              ',' order by product_type_generation.id) as product_type_generation_resize_resample_list,
+   string_agg(product_type_generation.vrt_nodata,                      
+              ',' order by product_type_generation.id) as product_type_generation_vrt_nodata_list
+FROM product_type
+LEFT JOIN product_type_generation ON product_type_generation.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_generation_view_count FROM product_type_generation_view;
+--SELECT * FROM product_type_generation_view LIMIT 5;
+
+---------------------------------------------------------------------------
+-- product_type_metadata_view
+---------------------------------------------------------------------------
+DROP VIEW IF EXISTS product_type_metadata_view;
+CREATE VIEW product_type_metadata_view AS 
+SELECT
+   -- product_type
+   product_type.id as product_type_id,
+ 
+   -- product_type_metadata 
+   product_type_metadata.version              as product_type_metadata_version,
+   product_type_metadata.asc_desc             as product_type_metadata_asc_desc,
+   product_type_metadata.science_parameter    as product_type_metadata_science_parameter,
+   product_type_metadata.data_version         as product_type_metadata_data_version,
+   product_type_metadata.day_night            as product_type_metadata_day_night,
+   product_type_metadata.display_resolution   as product_type_metadata_display_resolution,
+   product_type_metadata.instrument           as product_type_metadata_instrument,
+   product_type_metadata.native_resolution    as product_type_metadata_native_resolution,
+   product_type_metadata.platform             as product_type_metadata_platform,
+   product_type_metadata.processing_level     as product_type_metadata_processing_level,
+   product_type_metadata.project              as product_type_metadata_project,
+   product_type_metadata.source_projection_id as product_type_metadata_source_projection_id,
+   product_type_metadata.target_projection_id as product_type_metadata_target_projection_id,
+   product_type_metadata.region_coverage      as product_type_metadata_region_coverage
+FROM product_type
+LEFT JOIN product_type_metadata ON product_type_metadata.pt_id = product_type.id
+GROUP BY product_type.id,
+         product_type_metadata.version,
+         product_type_metadata.asc_desc,
+         product_type_metadata.science_parameter,
+         product_type_metadata.data_version,
+         product_type_metadata.day_night,
+         product_type_metadata.display_resolution,
+         product_type_metadata.instrument,
+         product_type_metadata.native_resolution,
+         product_type_metadata.platform,
+         product_type_metadata.processing_level,
+         product_type_metadata.project,
+         product_type_metadata.source_projection_id,
+         product_type_metadata.target_projection_id,
+         product_type_metadata.region_coverage;
+
+SELECT COUNT(*) AS product_type_metadata_view_count FROM product_type_metadata_view;
+--SELECT * FROM product_type_metadata_view LIMIT 5;
+
+---------------------------------------------------------------------------
+-- product_type_policy_view
+---------------------------------------------------------------------------
+DROP VIEW IF EXISTS product_type_policy_view;
+CREATE VIEW product_type_policy_view AS
+SELECT
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- product_type_policy
+   string_agg(product_type_policy.version::int8::text,
+              ',' order by product_type_policy.id) as product_type_policy_version_list,
+   string_agg(product_type_policy.access_type,
+              ',' order by product_type_policy.id) as product_type_policy_access_type_list,
+   string_agg(product_type_policy.access_constraint,
+              ',' order by product_type_policy.id) as product_type_policy_access_constraint_list,
+   string_agg(product_type_policy.use_constraint,
+              ',' order by product_type_policy.id) as product_type_policy_use_constraint_list,
+   string_agg(product_type_policy.base_path_append_type,
+              ',' order by product_type_policy.id) as product_type_policy_base_path_append_type_list,
+   string_agg(product_type_policy.checksum_type,
+              ',' order by product_type_policy.id) as product_type_policy_checksum_type_list,
+   string_agg(product_type_policy.compress_type,
+              ',' order by product_type_policy.id) as product_type_policy_compress_type_list,
+   string_agg(product_type_policy.data_class,
+              ',' order by product_type_policy.id) as product_type_policy_data_class_list,
+   string_agg(product_type_policy.data_format,
+              ',' order by product_type_policy.id) as product_type_policy_data_format_list,
+   string_agg(product_type_policy.spatial_type,
+              ',' order by product_type_policy.id) as product_type_policy_spatial_type_list,
+   string_agg(product_type_policy.data_duration::int8::text,
+              ',' order by product_type_policy.id) as product_type_policy_data_duration_list,
+   string_agg(product_type_policy.data_frequency::int8::text,
+              ',' order by product_type_policy.id) as product_type_policy_data_frequency_list,
+   string_agg(product_type_policy.data_latency::int8::text,
+              ',' order by product_type_policy.id) as product_type_policy_data_latency_list,
+   string_agg(product_type_policy.data_volume::int8::text,
+              ',' order by product_type_policy.id) as product_type_policy_data_volume_list,
+   string_agg(product_type_policy.delivery_rate::int8::text,
+              ',' order by product_type_policy.id) as product_type_policy_delivery_rate_list,
+   string_agg(product_type_policy.multi_day::int8::text,
+              ',' order by product_type_policy.id) as product_type_policy_multi_day_list,
+   string_agg(product_type_policy.multi_day_link::boolean::text,
+              ',' order by product_type_policy.id) as product_type_policy_multi_day_link_list
+
+FROM product_type
+LEFT JOIN product_type_policy ON product_type_policy.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_policy FROM product_type_policy_view;
+--SELECT * FROM product_type_policy_view LIMIT 5;
+
+---------------------------------------------------------------------------
+-- product_type_location_policy_view
+---------------------------------------------------------------------------
+DROP VIEW IF EXISTS product_type_location_policy_view;
+CREATE VIEW product_type_location_policy_view AS
+SELECT
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- product_type_location_policy
+   string_agg(product_type_location_policy.version::int8::text,
+              ',' order by product_type_location_policy.id) as product_type_location_policy_version_list,
+   string_agg(product_type_location_policy.type,
+              ',' order by product_type_location_policy.id) as product_type_location_policy_type_list,
+   string_agg(product_type_location_policy.base_path,
+              ',' order by product_type_location_policy.id) as product_type_location_policy_access_base_path_list
+FROM product_type
+LEFT JOIN product_type_location_policy ON product_type_location_policy.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_location_policy FROM product_type_location_policy_view;
+--SELECT * FROM product_type_location_policy_view LIMIT 5;
+
+--*********************************************************************************************
+-- Product Type Provider Model
+--*********************************************************************************************
+
+--------------------------------------------------
+-- product_type_provider_view
+--------------------------------------------------
+
+DROP VIEW IF EXISTS product_type_provider_view CASCADE;
+CREATE VIEW product_type_provider_view AS
+SELECT
+
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- provider_view
+   provider_view.provider_version                     as product_type_provider_version,
+   provider_view.provider_long_name                   as product_type_provider_long_name,
+   provider_view.provider_short_name                  as product_type_provider_short_name,
+   provider_view.provider_type                        as product_type_provider_type,            
+   provider_view.provider_resource_version_list       as product_type_provider_resource_version_list,
+   provider_view.provider_resource_description_list   as product_type_provider_resource_description_list,
+   provider_view.provider_resource_name_list          as product_type_provider_resource_name_list,
+   provider_view.provider_resource_path_list          as product_type_provider_resource_path_list,
+   provider_view.provider_resource_type_list          as product_type_provider_resource_type_list,
+   provider_view.provider_contact_version_list        as product_type_provider_contact_version_list,
+   provider_view.provider_contact_role_list           as product_type_provider_contact_role_list,
+   provider_view.provider_contact_first_name_list     as product_type_provider_contact_first_name_list,
+   provider_view.provider_contact_last_name_list      as product_type_provider_contact_last_name_list,
+   provider_view.provider_contact_middle_name_list    as product_type_provider_contact_middle_name_list,
+   provider_view.provider_contact_address_list        as product_type_provider_contact_address_list,
+   provider_view.provider_contact_notify_type_list    as product_type_provider_contact_notify_type_list,
+   provider_view.provider_contact_email_list          as product_type_provider_contact_email_list,
+   provider_view.provider_contact_phone_list          as product_type_provider_contact_phone_list,
+   provider_view.provider_contact_fax_list            as product_type_provider_contact_fax_list
+
+FROM product_type,
+     provider_view
+WHERE product_type.provider_id = provider_view.provider_id;
+SELECT COUNT(*) AS product_type_provider_view_count FROM product_type_provider_view;
+--SELECT * FROM product_type_provider_view LIMIT 5;
+
+--*********************************************************************************************
+-- Product Type Elements Model
+--*********************************************************************************************
+
+--------------------------------------------------
+-- product_type_element_view
+--------------------------------------------------
+DROP VIEW IF EXISTS product_type_element_dd_view CASCADE;
+CREATE VIEW product_type_element_dd_view AS
+SELECT
+
+   -- product_type_element
+   product_type_element.id,
+   product_type_element.pt_id                  as product_type_id,
+   product_type_element.version                as product_type_element_version,
+   product_type_element.obligation_flag        as product_type_element_obligation_flag,
+   product_type_element.scope                  as product_type_element_scope,
+
+   -- element_dd
+   string_agg(element_dd.version::int8::text,    ';' order by element_dd.id) as product_type_element_dd_versions,
+   string_agg(element_dd.type,                   ';' order by element_dd.id) as product_type_element_dd_types,
+   string_agg(element_dd.description,            ';' order by element_dd.id) as product_type_element_dd_descriptions,
+   string_agg(element_dd.scope,                  ';' order by element_dd.id) as product_type_element_dd_scopes,
+   string_agg(element_dd.long_name,              ';' order by element_dd.id) as product_type_element_dd_long_names,
+   string_agg(element_dd.short_name,             ';' order by element_dd.id) as product_type_element_dd_short_names,
+   string_agg(element_dd.max_length::int8::text, ';' order by element_dd.id) as product_type_element_dd_max_lengths
+
+FROM product_type_element
+LEFT JOIN element_dd ON product_type_element.element_id = element_dd.id
+GROUP BY product_type_element.id;
+SELECT COUNT(*) AS product_type_element_dd_view_count FROM product_type_element_dd_view;
+--SELECT * FROM product_type_element_dd_view LIMIT 5;
+
+DROP VIEW IF EXISTS product_type_element_view CASCADE;
+CREATE VIEW product_type_element_view AS
+SELECT
+
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- product_type_element_dd_view
+   string_agg(product_type_element_dd_view.product_type_element_version::int8::text,
+              ',' order by product_type_element_dd_view.id) as product_type_element_version_list,
+   string_agg(product_type_element_dd_view.product_type_element_obligation_flag::boolean::text,
+              ',' order by product_type_element_dd_view.id) as product_type_element_obligation_flag_list,
+   string_agg(product_type_element_dd_view.product_type_element_scope,
+              ',' order by product_type_element_dd_view.id) as product_type_element_scope_list,
+   string_agg(product_type_element_dd_view.product_type_element_dd_versions,                   
+              ',' order by product_type_element_dd_view.id) as product_type_element_dd_version_list,
+   string_agg(product_type_element_dd_view.product_type_element_dd_types,                   
+              ',' order by product_type_element_dd_view.id) as product_type_element_dd_type_list,
+   string_agg(product_type_element_dd_view.product_type_element_dd_descriptions,            
+              ',' order by product_type_element_dd_view.id) as product_type_element_dd_description_list,
+   string_agg(product_type_element_dd_view.product_type_element_dd_scopes,                  
+              ',' order by product_type_element_dd_view.id) as product_type_element_dd_scope_list,
+   string_agg(product_type_element_dd_view.product_type_element_dd_long_names,              
+              ',' order by product_type_element_dd_view.id) as product_type_element_dd_long_name_list,
+   string_agg(product_type_element_dd_view.product_type_element_dd_short_names,             
+              ',' order by product_type_element_dd_view.id) as product_type_element_dd_short_name_list,
+   string_agg(product_type_element_dd_view.product_type_element_dd_max_lengths, 
+              ',' order by product_type_element_dd_view.id) as product_type_element_dd_max_length_list
+
+FROM product_type
+LEFT JOIN product_type_element_dd_view ON product_type_element_dd_view.product_type_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_element_view_count FROM product_type_element_view;
+--SELECT * FROM product_type_element_view LIMIT 5;
+
+--------------------------------------------------
+-- product_type_datetime_view
+--------------------------------------------------
+
+DROP VIEW IF EXISTS product_type_datetime_view CASCADE;
+CREATE VIEW product_type_datetime_view AS
+SELECT
+
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- product_type_datetime
+   string_agg(product_type_datetime.version::int8::text,
+              ',' order by product_type_datetime.id) as product_type_datetime_version_list,
+   string_agg(product_type_datetime.value_long::int8::text,
+              ',' order by product_type_datetime.id) as product_type_datetime_value_list,
+   string_agg(('1970-01-01 00:00:00 GMT'::timestamp +
+              ((product_type_datetime.value_long/1000)::text)::interval)::timestamp::text,
+              ',' order by product_type_datetime.id) as product_type_datetime_value_string_list
+
+FROM product_type
+LEFT JOIN product_type_datetime ON product_type_datetime.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_datetime_view_count FROM product_type_datetime_view;
+--SELECT * FROM product_type_datetime_view LIMIT 5;
+
+--------------------------------------------------
+-- product_type_character_view
+--------------------------------------------------
+DROP VIEW IF EXISTS product_type_character_view CASCADE;
+CREATE VIEW product_type_character_view AS
+SELECT
+
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- product_type_character
+   string_agg(product_type_character.version::int8::text,
+              ',' order by product_type_character.id) as product_type_character_version_list,
+   string_agg(product_type_character.value,
+              ',' order by product_type_character.id) as product_type_character_value_list
+
+FROM product_type
+LEFT JOIN product_type_character ON product_type_character.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_character_view_count FROM product_type_character_view;
+--SELECT * FROM product_type_character_view LIMIT 5;
+
+--------------------------------------------------
+-- product_type_integer_view
+--------------------------------------------------
+DROP VIEW IF EXISTS product_type_integer_view CASCADE;
+CREATE VIEW product_type_integer_view AS
+SELECT
+
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- product_type_integer
+   string_agg(product_type_integer.version::int8::text,
+              ',' order by product_type_integer.id) as product_type_integer_version_list,
+   string_agg(product_type_integer.units,
+              ',' order by product_type_integer.id) as product_type_integer_units_list,
+   string_agg(product_type_integer.value::int::text,
+              ',' order by product_type_integer.id) as product_type_integer_value_list
+
+FROM product_type
+LEFT JOIN product_type_integer ON product_type_integer.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_integer_view_count FROM product_type_integer_view;
+--SELECT * FROM product_type_integer_view LIMIT 5;
+
+--------------------------------------------------
+-- product_type_real_view
+--------------------------------------------------
+DROP VIEW IF EXISTS product_type_real_view CASCADE;
+CREATE VIEW product_type_real_view AS
+SELECT
+
+   -- product_type
+   product_type.id as product_type_id,
+
+   -- product_type_real
+   string_agg(product_type_real.version::int8::text,
+              ',' order by product_type_real.id) as product_type_real_version_list,
+   string_agg(product_type_real.units,
+              ',' order by product_type_real.id) as product_type_real_units_list,
+   string_agg(product_type_real.value::numeric::text,
+              ',' order by product_type_real.id) as product_type_real_value_list
+
+FROM product_type
+LEFT JOIN product_type_real ON product_type_real.pt_id = product_type.id
+GROUP BY product_type.id;
+SELECT COUNT(*) AS product_type_real_view_count FROM product_type_real_view;
+--SELECT * FROM product_type_real_view LIMIT 5;
+
+-----------------------------------------------------------------------------------------------
+-- product_type_view
+-----------------------------------------------------------------------------------------------
+DROP VIEW IF EXISTS product_type_view CASCADE;
+CREATE VIEW product_type_view AS 
+SELECT 
+
+   -- product_type
+   product_type.id,
+   product_type.id           as product_type_id, 
+   product_type.version      as product_type_version, 
+   product_type.provider_id  as product_type_provider_id, 
+   product_type.identifier   as product_type_identifier,
+   product_type.title        as product_type_title,
+   product_type.description  as product_type_description,
+   product_type.purgable     as product_type_purgable,
+   product_type.purge_rate   as product_type_purge_rate,
+   product_type.last_updated as product_type_last_updated,
+   '1970-01-01 00:00:00 GMT'::timestamp + ((product_type.last_updated/1000)::text)::interval 
+                             as product_type_last_updated_string,
+
+   -- product_type_dataset_view
+   product_type_dataset_id_list,
+   product_type_dataset_revision_list,
+   product_type_dataset_description_list,
+   product_type_dataset_long_name_list,
+   product_type_dataset_short_name_list,
+   product_type_dataset_metadata_endpoint_list,
+   product_type_dataset_metadata_registry_list,
+   product_type_dataset_remote_dataset_id_list,
+
+   -- product_type_resource
+   product_type_resource_version_list,
+   product_type_resource_type_list,
+   product_type_resource_name_list,
+   product_type_resource_path_list,
+   product_type_resource_description_list,
+
+   -- product_type_coverage 
+   product_type_coverage_version_list,
+   product_type_coverage_east_longitude_list,
+   product_type_coverage_west_longitude_list,
+   product_type_coverage_north_latitude_list,
+   product_type_coverage_south_latitude_list,
+   product_type_coverage_stop_time_list,
+   product_type_coverage_stop_time_string_list,
+   product_type_coverage_start_time_list,
+   product_type_coverage_start_time_string_list,
+
+   -- product_type_generation
+   product_type_generation_version_list,
+   product_type_generation_mrf_block_size_list,
+   product_type_generation_output_sizex_list,
+   product_type_generation_output_sizey_list,
+   product_type_generation_overview_levels_list,
+   product_type_generation_overview_resample_list,
+   product_type_generation_overview_scale_list,
+   product_type_generation_reprojection_resample_list,
+   product_type_generation_resize_resample_list,
+   product_type_generation_vrt_nodata_list,
+
+   -- product_type_metadata
+   product_type_metadata_version,
+   product_type_metadata_asc_desc,
+   product_type_metadata_science_parameter,
+   product_type_metadata_data_version,
+   product_type_metadata_day_night,
+   product_type_metadata_display_resolution,
+   product_type_metadata_instrument,
+   product_type_metadata_native_resolution,
+   product_type_metadata_platform,
+   product_type_metadata_processing_level,
+   product_type_metadata_project,
+   product_type_metadata_source_projection_id,
+   product_type_metadata_target_projection_id,
+   product_type_metadata_region_coverage,
+
+   -- product_type_policy
+   product_type_policy_version_list,
+   product_type_policy_access_type_list,
+   product_type_policy_access_constraint_list,
+   product_type_policy_use_constraint_list,
+   product_type_policy_base_path_append_type_list,
+   product_type_policy_checksum_type_list,
+   product_type_policy_compress_type_list,
+   product_type_policy_data_class_list,
+   product_type_policy_data_format_list,
+   product_type_policy_spatial_type_list,
+   product_type_policy_data_duration_list,
+   product_type_policy_data_frequency_list,
+   product_type_policy_data_latency_list,
+   product_type_policy_data_volume_list,
+   product_type_policy_delivery_rate_list,
+   product_type_policy_multi_day_list,
+   product_type_policy_multi_day_link_list,
+
+   -- product_type_location_policy
+   product_type_location_policy_version_list,
+   product_type_location_policy_type_list,
+   product_type_location_policy_access_base_path_list,
+
+   -- product_type_provider_view
+   product_type_provider_version,
+   product_type_provider_long_name,
+   product_type_provider_short_name,
+   product_type_provider_type,
+   product_type_provider_resource_version_list,
+   product_type_provider_resource_description_list,
+   product_type_provider_resource_name_list,
+   product_type_provider_resource_path_list,
+   product_type_provider_resource_type_list,
+   product_type_provider_contact_version_list,
+   product_type_provider_contact_role_list,
+   product_type_provider_contact_first_name_list,
+   product_type_provider_contact_last_name_list,
+   product_type_provider_contact_middle_name_list,
+   product_type_provider_contact_address_list,
+   product_type_provider_contact_notify_type_list,
+   product_type_provider_contact_email_list,
+   product_type_provider_contact_phone_list,
+   product_type_provider_contact_fax_list,
+
+   -- product_type_element_view
+   product_type_element_obligation_flag_list,
+   product_type_element_scope_list,
+   product_type_element_dd_version_list,
+   product_type_element_dd_type_list,
+   product_type_element_dd_description_list,
+   product_type_element_dd_scope_list,
+   product_type_element_dd_long_name_list,
+   product_type_element_dd_short_name_list,
+   product_type_element_dd_max_length_list,
+
+   -- product_type_datetime_view
+   product_type_datetime_version_list,
+   product_type_datetime_value_list,
+   product_type_datetime_value_string_list,
+
+   -- product_type_character_view
+   product_type_character_version_list,
+   product_type_character_value_list,
+
+   -- product_type_integer_view
+   product_type_integer_version_list,
+   product_type_integer_value_list,
+   product_type_integer_units_list,
+
+   -- product_type_real_view
+   product_type_real_version_list,
+   product_type_real_value_list,
+   product_type_real_units_list
+
+FROM
+   product_type,
+   product_type_dataset_view,
+   product_type_resource_view,
+   product_type_coverage_view,
+   product_type_generation_view,
+   product_type_metadata_view,
+   product_type_policy_view,
+   product_type_location_policy_view,
+   product_type_provider_view,
+   product_type_element_view,
+   product_type_datetime_view,
+   product_type_character_view,
+   product_type_integer_view,
+   product_type_real_view
+WHERE
+   product_type.id = product_type_dataset_view.product_type_id AND
+   product_type.id = product_type_resource_view.product_type_id AND
+   product_type.id = product_type_coverage_view.product_type_id AND
+   product_type.id = product_type_generation_view.product_type_id AND
+   product_type.id = product_type_metadata_view.product_type_id AND
+   product_type.id = product_type_policy_view.product_type_id AND
+   product_type.id = product_type_location_policy_view.product_type_id AND
+   product_type.id = product_type_provider_view.product_type_id AND
+   product_type.id = product_type_element_view.product_type_id AND
+   product_type.id = product_type_datetime_view.product_type_id AND
+   product_type.id = product_type_character_view.product_type_id AND
+   product_type.id = product_type_integer_view.product_type_id AND
+   product_type.id = product_type_real_view.product_type_id;
+SELECT COUNT(*) AS product_type_view_count FROM product_type_view;
+--SELECT * FROM product_type_view LIMIT 5;