Scratch Pad: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
==SourceXML==
The DAP Relational Database Server II (DRDS-II) is a (as yet to funded) project that will provide a DAP service layer for relational databases systems. Previously this was (partially) accomplished by a Java servlet known as the DODS Relational Database Server (DRDS).


    <Attribute name="xmlTest" type="OtherXML" relationship="is-a">
== Overview ==
        <t:level0 xmlns:t="http://namespace.t" t:foo1="namespacedattribute" foo2="nonamespaceAttribute">
            <t:level1>simpleContent</t:level1>
            <t:level1>
                <t:level2>
                    <t:level3>simpleContent</t:level3>
                </t:level2>
            </t:level1>
            TextContent of Complex Type
        </t:level0>
    </Attribute>


==RDF==
===  Automated catalog generation vs. external configuration ===


      <dapObj:type>
Should the DRDS-II interrogate the database to learn the table and key structures so that it can automatically build a ''catalog'' of DAP data objects that represent the database holdings? Or, should the DRDS-II rely (as it's predecessor did) on having the operator develop a DDS/DDX (or some other configuration item) for each data holding?
        <t:level0 xmlns:t="http://namespace.t" xmlns:grddl="http://www.w3.org/2003/g/data-view#"
                  xmlns="http://xml.opendap.org/ns/DAP/3.3#"
                  t:foo1="namespacedattribute">
            <dapObj:xmlAttribute name="foo2" rdf:value="nonamespaceAttribute"/>
            <dapObj:xmlText>
            TextContent of Complex Type
        </dapObj:xmlText>
            <t:level1>simpleContent</t:level1>
            <dapObj:xmlContains>
              <t:level1>
                  <dapObj:xmlContains>
                    <t:level2>
                        <t:level3>simpleContent</t:level3>
                    </t:level2>
                  </dapObj:xmlContains>
              </t:level1>
            </dapObj:xmlContains>
        </t:level0>
      </dapObj:type>


=== Data model representation: Tables/Queries as Sequences ===


== Hacked HFRadar Example ==


In the world of the RDBMS everything is structurally a ''row set'': A collection (tuple) of columns (variables) whose length my not be known until the content is delivered in total.  Tables are ''row sets''.  A database ''view'' is a ''row set''. SQL queries return ''row sets''. SQL JOIN operations take ''row sets' as input and produce ''row sets''.


<rdf:RDF xmlns:dap="http://xml.opendap.org/ns/DAP/3.3#"
''Row sets'' map naturally to the DAP Sequence data type, thus a reasonable representation of an SQL query is a Sequence: A repeating tuple of unknown length.  
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
         xmlns:cf="http://iridl.ldeo.columbia.edu/ontologies/cf-att.owl#"
When a database contains multiple tables or views, each one could be represented as a DAP Sequence. Thus a DDS might contain multiple Sequences each representing a single table  or view in the RDBMS:
         xmlns:dapObj="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#"
 
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Dataset {
         xmlns:owl="http://www.w3.org/2002/07/owl#"
    Sequence {
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        String FirstName;
         xml:base="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx">
         String LastName;
   <owl:Ontology rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    ">
         String PhoneNumber;
      <owl:imports rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl"/>
    } Authors;
      <owl:imports rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/NetcdfConventionRegistry.owl"/>
  </owl:Ontology>
    Sequence {
  <dapObj:Dataset rdf:about="">
         String Title;
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;   "/>
         String Publisher;
      <dapObj:dataset_id rdf:datatype="http://www.w3.org/2001/XMLSchema#string"/>
         Int16  Pages;
      <dapObj:type>
        String  CopyrightDate;
         <CoverageDescription xmlns="http://www.opengis.net/wcs/1.1" xmlns:ows="http://www.opengis.net/ows/1.1"
         String  ISBN;
                              xmlns:owcs="http://www.opengis.net/wcs/1.1/ows"
    } Books;
                              xmlns:gml="http://www.opengis.net/gml/3.2"
                              xmlns:xlink="http://www.w3.org/1999/xlink"
} Inventory;
                              xmlns:schemaLocation="http://www.opengis.net/wcs/1.1  http://schemas.opengis.net/wcs/1.1.0/wcsDescribeCoverage.xsd  http://www.opengis.net/ows/1.1  http://schemas.opengis.net/ows/1.1.0/owsAll.xsd  http://www.opengis.net/wcs/1.1/ows http://schemas.opengis.net/wcs/1.1.0/owsDataIdentification.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"
 
                              xmlns:grddl="http://www.w3.org/2003/g/data-view#">
Databases are typically much more complex. In our example above it would more likely that the Books table contains one or more foreign keys that references the authors of the book. So how to capture this? If we simply add the key field to the Sequence how do users of the system know how to construct queries that can return the data they want? Would this representation allow them to make requests that could return data with the key relationships expressed in the DAP structure (I don't think so)   How do we prevent them from making requests the create problems for the RDBMS by creating, via the DAP constraint expression, unreasonable JOIN requests. Additionally, this very flat representation doesn't clearly establish the relationships between the tables.
            <ows:Title>Near-Real Time Surface Ocean Velocity</ows:Title>
 
            <ows:Abstract>CoverageDescription generated by OPeNDAP WCS UseCase 2.0</ows:Abstract>
On possible solution is to represent the databse tables as a series of nested sequences:
            <Identifier>coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc</Identifier>
 
            <dapObj:xmlContains>
Dataset {
              <Domain>
                  <dapObj:xmlContains>
    Sequence {
                    <SpatialDomain>
        String Title;
                        <dapObj:xmlContains>
        String Publisher;
                          <ows:BoundingBox>
        Int16  Pages;
                              <dapObj:xmlAttribute dapObj:name="crs" rdf:value="urn:ogc:def:crs:EPSG::4326"/>
        String  CopyrightDate;
                              <ows:LowerCorner>-97.8839 21.736</ows:LowerCorner>
        String  ISBN;
                              <ows:UpperCorner>-57.2312 46.4944</ows:UpperCorner>
        Sequence {
                          </ows:BoundingBox>
            String FirstName;
                        </dapObj:xmlContains>
            String LastName;
                    </SpatialDomain>
            String PhoneNumber;
                  </dapObj:xmlContains>
         } Authors;
                  <dapObj:xmlContains>
    } Books;
                    <TemporalDomain>
                        <gml:timePosition>2008-03-27T16:00:00.000Z</gml:timePosition>
} Inventory;
                    </TemporalDomain>
 
                  </dapObj:xmlContains>
Does this actually represent the case of foreign keys?
              </Domain>
 
            </dapObj:xmlContains>
=== Tasks ===
            <dapObj:xmlContains>
 
              <Range>
A server that adds a DAP interface to a RDBMS needs:
                  <dapObj:xmlContains>
 
                    <Field>
# A component that can translate a DAP query into an SQL query string. This might happen at the string level by simply converting one to the other. The DRDS accomplished this by processing the DAP query string (marking variables in a DDS instance as projected and parsing the selection part of the constraint into Clause objects) and then working with the in memory objects (DDS and Clause objects) to build the SQL query.
                        <ows:Title>surface_eastward_sea_water_velocity</ows:Title>
#  A mechanism through which the RDBMS holdings (a collection of one or more tables and views) can be represented as a collection of DAP data sets. For this document we will refer to this as ''catalog'' generation. This is inexorably connected to the ''type mapping'' activities explained next.
                        <ows:Abstract>Eastward component of a 2D sea surface velocity vector.</ows:Abstract>
# A mapping between the data types found in the RDBMS to the appropriate DAP data types. For many simple/atomic type this is simple: An SQL FLOAT maps naturally to a DAP Float64. For other types, such as an database table with foreign keys the mapping is less straightforward. This activity s further complicated by the fact that nearly every RDBMS implementation contains a number of useful, yet proprietary data types. Thus a proper data model might have to be generated for each RDBMS encountered.
                        <Identifier>u</Identifier>
 
                        <dapObj:xmlContains>
=== Previous Design/Implementation ===
                          <Definition>
 
                              <ows:AnyValue/>
The first DRDS (DODS Relational Database Server) was implemented as a Java Servlet. It relied on the Java-DODS implementation of the DAP to provide the DAP type classes with constraint expression evaluation and data value serialization.
                          </Definition>
Some documentation can be found here:
                        </dapObj:xmlContains>
* [http://www.opendap.org/design/java-api/design.html General Java DAP Implementation Documents]
                        <NullValue>-32768</NullValue>
* [http://scm.opendap.org/svn/trunk/DRDS/ DRDS source tree]
                        <dapObj:xmlContains>
 
                          <owcs:InterpolationMethods>
 
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
Important features/activities:
                          </owcs:InterpolationMethods>
 
                        </dapObj:xmlContains>
* The server used filesystem directories containing DDS and DAS documents to represent the holdings in the RDBMS. These files were used to generate the DDS and DAS responses.  
                    </Field>
* The opendap.servers.sql.sqlCEEval.getSQLQueries() method that takes a constrained DDS object and interrogates it to form an SQL query.  
                  </dapObj:xmlContains>
* Each table or view in the database could only be represented as a data set containing a singe DAP Sequence.
                  <dapObj:xmlContains>
* The individual DAP type classes implement the read() and serialize() methods that extracts values from the SQL query result and write the values to the client. The DAP Sequence implementation manages which "row" is being read from the SQL response object.
                    <Field>
 
                        <ows:Title>surface_northward_sea_water_velocity</ows:Title>
Despite its limitations and lack of ongoing support the DRDS was useful for a number of data centers and continues to be used today. However, the DRDS had many drawbacks:
                        <ows:Abstract>Northward component of a 2D sea surface velocity vector.</ows:Abstract>
 
                        <Identifier>v</Identifier>
* It required the operator to engage in a significant configuration steps:
                        <dapObj:xmlContains>
** Locating a JDBC driver for their database implementation.  
                          <Definition>
** Configuring the DRDS to correctly use the JDBC driver.
                              <ows:AnyValue/>
** Hand writing the DDS and DAS documents for each table or view in the database for which DAP 2 services were to be provided. This in effect placed the operator of the server in charge of mapping the different types of data held in the database tables into the different types in the DAP data model. The DRDS implementation only allowed certain mappings (as many of the possible combinations were non-sensical), thus if the operator made a poor mapping (For example creating a floating point variable in the DDS and then trying to read a SQL CHAR type into it) the server would not function correctly.
                          </Definition>
* It could not automatically build a catalog of the RDBMS holdings. (This was done by the operator as described above)
                        </dapObj:xmlContains>
* The representation of the RDBMS holds was limited to a single table per DAP data set. Thus each DDS in the catalog contained a single Sequence representing a single table or view from within the RDBMS. Since most RDBMS holds are a collection of tables linked together through keys, this single Sequence representation was a very "flat" view of the RDBMS which many users found particularly restrictive. Making different views of the database alleviated the effects of this limitation to a certain extent, but typically caused some (many?) data values to be sent in a repetitive manner.
                        <NullValue>-32768</NullValue>
 
                        <dapObj:xmlContains>
== Data model representation ==
                          <owcs:InterpolationMethods>
 
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
Mapping the a the SQL data model to the DAP data model is problematic due to the diversity of the implementations of an SQL database.
                          </owcs:InterpolationMethods>
 
                        </dapObj:xmlContains>
 
                    </Field>
 
                  </dapObj:xmlContains>
=== Atomic (Simple) Types ===
                  <dapObj:xmlContains>
 
                    <Field>
 
                        <ows:Title>longitudinal dilution of precision</ows:Title>
=== Tables as Sequences ===
                        <ows:Abstract>The longitudinal dilution of precision (DOPx) represents the\\012contribution of the
 
                            radars' configuration geometry to\\012uncertainty in the eastward velocity estimate (u). DOPx
==== Single Tables ====
                            is a\\012direct multiplier of the standard error in obtaining the\\012standard deviation for the
 
                            eastward velocity estimate from the\\012least squares best fit. DOPx and DOPy are commonly used
==== Multiple Tables ====
                            to\\012obtain the geometric dilution of precision\\012(GDOP = sqrt(DOPx^2 + DOPy^2)), a useful
 
                            metric for filtering\\012errant velocities due to poor geometry.
==== Multiple Tables as Nested Sequences ====
                        </ows:Abstract>
 
                        <Identifier>DOPx</Identifier>
=== Other Complex Types ===
                        <dapObj:xmlContains>
 
                          <Definition>
== Relational Database Data Types ==
                              <ows:AnyValue/>
 
                          </Definition>
Accessing data in an RDBMS is often a many layered affair. Many RDBMS implementations provide a native API library that can be used with a common programming language such as C, C++, C#, Visual Basic, or even Java. These API's interact directly with the RDBMS and provide the maximum level of flexibility, control and access. If one was using a native API to work with a RDBMS to get data then there would be a mapping from the native RDBMS data types to the language data types:
                        </dapObj:xmlContains>
 
                        <NullValue>-32768</NullValue>
 
                        <dapObj:xmlContains>
:''Native RDBMS Data Types'' '''--->''' ''C++ Data Types''
                          <owcs:InterpolationMethods>
 
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
 
                          </owcs:InterpolationMethods>
However, most software that works with RDMSs does so through a database connectivity API. The two most common are the Open Database Connectivity (ODBC) API and the Java Database Connectivity (JDBC) API. Using one of these database connectivity APIs adds a layer of data type mapping to the process:
                        </dapObj:xmlContains>
 
                    </Field>
 
                  </dapObj:xmlContains>
:''Native RDBMS Data Types'' '''--->''' ''Database Connectivity API  Data Types'' '''--->''' ''C++ Data Types''
                  <dapObj:xmlContains>
 
                    <Field>
 
                        <ows:Title>latitudinal dilution of precision</ows:Title>
To complete the picture, generating DAP data objects requires the finally mapping from the programming language data types in to the DAP data model:
                        <ows:Abstract>The latitudinal dilution of precision (DOPy) represents the\\012contribution of the radars'
 
                            configuration geometry to\\012uncertainty in the northward velocity estimate (v). DOPy is
 
                            a\\012direct multiplier of the standard error in obtaining the\\012standard deviation for the
:''Native RDBMS Data Types'' '''--->''' ''Database Connectivity API  Data Types'' '''--->''' ''C++ Data Types'' '''--->''' ''DAP Data Types''
                            northward velocity estimate from the\\012least squares best fit. DOPx and DOPy are commonly used
 
                            to\\012obtain the geometric dilution of precision\\012(GDOP = sqrt(DOPx^2 + DOPy^2)), a useful
 
                            metric for filtering\\012errant velocities due to poor geometry.
For simple/atomic types such as integers an booleans this doesn't require much thought. For more complex types it may require both thought ad careful development to preserve the original semantics of the RDBMS data type across the various mappings and into the appropriate DAP data type. Even then the DAP data model may not have a data type that directly captures the semantics of the original type. For example PostgreSQL has a number of geometric types (such as ''point'', ''box'', and ''circle'') whose content can be held in DAP types, but the semantic meaning (''these two floating point values represent a point on a cartesian plain'') is not explicit in the DAP object holding the values. That information can only be included in the metadata associated with the instance of the DAP variable.
                        </ows:Abstract>
 
                        <Identifier>DOPy</Identifier>
 
                        <dapObj:xmlContains>
 
                          <Definition>
 
                              <ows:AnyValue/>
=== Database Connectivity APIs ===
                          </Definition>
 
                        </dapObj:xmlContains>
<br/><br/>
                        <NullValue>-32768</NullValue>
----
                        <dapObj:xmlContains>
----
                          <owcs:InterpolationMethods>
==== [http://en.wikipedia.org/wiki/Open_Database_Connectivity ODBC Data Types] ====
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
 
                          </owcs:InterpolationMethods>
<br/><br/>
                        </dapObj:xmlContains>
----
                    </Field>
----
                  </dapObj:xmlContains>
==== [http://java.sun.com/javase/technologies/database/ JDBC Data Types] ====
                  <dapObj:xmlContains>
 
                    <Field>
The DRDS used a JDBC connection to retrieve data from a relational database. It is important to note that their are several layers of type translation happening in this:
                        <ows:Title>Contributing radar site latitudes</ows:Title>
:'''Database -> JDBC -> Java -> DODS'''
                        <ows:Abstract>Contributing radar site latitudes</ows:Abstract>
The Database types are the native types for the particular database that is being read from. The translation from Database->JDBC was handled before the data arrived at the DRDS (most likely by the JDBC Drivers). The mapping of JDBC type to DODS types (the intermediate Java types happen in the process) looked like this:
                        <Identifier>site_lat</Identifier>
 
                        <dapObj:xmlContains>
{| align="center" border="1" cellspacing="0" width="75%"
                          <Definition>
|+'''Mapping from JDBC Types to DODS Types'''
                              <ows:AnyValue/>
! JDBC Type !! DAP Type
                          </Definition>
|-
                        </dapObj:xmlContains>
| TINYINT || DByte
                        <NullValue>-32768</NullValue>
|-
                        <dapObj:xmlContains>
|  SMALLINT  ||    DInt16
                          <owcs:InterpolationMethods>
|-
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
|  INTEGER  ||      DInt32
                          </owcs:InterpolationMethods>
|-
                        </dapObj:xmlContains>
|  BIGINT  ||        DInt32  **NO SENSIBLE MAPPING (Need DInt64)
                    </Field>
|-
                  </dapObj:xmlContains>
|  REAL    ||      DFloat32
                  <dapObj:xmlContains>
|-
                    <Field>
|  FLOAT    ||      DFloat64
                        <ows:Title>Contributing radar site longitudes</ows:Title>
|-
                        <ows:Abstract>Contributing radar site longitudes.</ows:Abstract>
|  DOUBLE  ||      DFloat64
                        <Identifier>site_lon</Identifier>
|-
                        <dapObj:xmlContains>
|  DECIMAL ||        DFloat64 **NO SENSIBLE MAPPING (Need Some Kind Monsterous Floating point value)
                          <Definition>
|-
                              <ows:AnyValue/>
|  NUMERIC ||      DFloat64 **NO SENSIBLE MAPPING (ibid)
                          </Definition>
|-
                        </dapObj:xmlContains>
|  BIT  ||          DBoolean
                        <NullValue>-32768</NullValue>
|-
                        <dapObj:xmlContains>
|  CHAR  ||        DString
                          <owcs:InterpolationMethods>
|-
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
|  VARCHAR  ||      DString
                          </owcs:InterpolationMethods>
|-
                        </dapObj:xmlContains>
|    LONGVARCHAR ||    Implemented to be read into a DString, although it is a "BLOB" type  and might be better represented as a DArray(of bytes).
                    </Field>
|-
                  </dapObj:xmlContains>
|    BINARY    ||      DArray(of bytes)
                  <dapObj:xmlContains>
|-
                    <Field>
|    VARBINARY    ||  DArray(of bytes)
                        <ows:Title>Contributing radar site code.</ows:Title>
|-
                        <ows:Abstract>Contributing radar site code.</ows:Abstract>
|    LONGVARBINARY ||  DArray(of bytes)
                        <Identifier>site_code</Identifier>
|-
                        <dapObj:xmlContains>
|    DATE    ||      DString
                          <Definition>
|-
                              <ows:AnyValue/>
|    TIME  ||        DString
                          </Definition>
|-
                        </dapObj:xmlContains>
|    TIMESTAMP    ||  DString
                        <NullValue>-32768</NullValue>
|}
                        <dapObj:xmlContains>
 
                          <owcs:InterpolationMethods>
=== Native SQL Data Types by Implementation ===
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
 
                          </owcs:InterpolationMethods>
 
                        </dapObj:xmlContains>
<br/><br/>
                    </Field>
----
                  </dapObj:xmlContains>
----
                  <dapObj:xmlContains>
==== [http://www.postgresql.org/docs/8.3/interactive/datatype.html PostgreSQL Data Types] ====
                    <Field>
:'''Todo:'''
                        <ows:Title>Contributing radar site network affiliation code.</ows:Title>
::'''<font color=red> !! This section needs to be updated and otherwise corrected. !!</font>'''
                        <ows:Abstract>Contributing radar site network affiliation code.</ows:Abstract>
 
                        <Identifier>site_netCode</Identifier>
===== Boolean and Binary Types =====
                        <dapObj:xmlContains>
{| border="1" cellspacing="0"
                          <Definition>
! Data Type  !! Description !! Standardization || Logical DAP data type association.
                              <ows:AnyValue/>
|-
                          </Definition>
| boolean, bool ||  A single true or false value. || SQL99 || Boolean
                        </dapObj:xmlContains>
|-
                        <NullValue>-32768</NullValue>
| bit(n) || An n -length bit string (exactly n binary bits). || SQL92 || ''None''
                        <dapObj:xmlContains>
|-
                          <owcs:InterpolationMethods>
| bit varying(n), varbit(n) || A variable n -length bit string (up to n binary bits) || SQL92 || ''None''
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
|}
                          </owcs:InterpolationMethods>
 
                        </dapObj:xmlContains>
===== Character Types =====
                    </Field>
{| border="1" cellspacing="0"
                  </dapObj:xmlContains>
! Data Type  !! Description !! Storage !! Standardization || Logical DAP data type association.
                  <dapObj:xmlContains>
|-
                    <Field>
| character (n ), char(n ) ||A fixed n -length character string.|| (4+n) bytes|| SQL89 || String
                        <ows:Title>RTV processing parameters</ows:Title>
|-
                        <ows:Abstract>Contributing radar site network affiliation code.</ows:Abstract>
| character varying(n), varchar(n) || A variable length character string of up to n characters. || Up to (4+n) bytes || SQL92 || String
                        <Identifier>procParams</Identifier>
|-
                        <dapObj:xmlContains>
| text || A variable length character string, of unlimited length. || Variable || PostgreSQL-specific || String
                          <Definition>
|}
                              <ows:AnyValue/>
 
                          </Definition>
===== Numeric Types =====
                        </dapObj:xmlContains>
{| border="1" cellspacing="0"
                        <NullValue>-32768</NullValue>
! Data Type  !! Description !! Storage !! Standardization || Logical DAP data type association.
                        <dapObj:xmlContains>
|-
                          <owcs:InterpolationMethods>
| smallint, int2 || A signed 2-byte integer || 2 bytes || SQL89 || Int16
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
|-
                          </owcs:InterpolationMethods>
| integer, int, int4 || A signed, fixed-precision 4-byte number. || 4 bytes || SQL92 || Int32
                        </dapObj:xmlContains>
|-
                    </Field>
| bigint, int8 || A signed 8-byte integer, up to 18 digits in length. || 8 bytes || PostgreSQL-specific || ''None (Need Int64)''
                  </dapObj:xmlContains>
|-
              </Range>
| real, float4 || A 4-byte floating point number. || 4 bytes ||  SQL89 || Float32
            </dapObj:xmlContains>
|-
            <SupportedCRS>urn:ogc:def:crs:EPSG::4326</SupportedCRS>
| double precision, float8, float || An 8-byte floating point number || 8 bytes || SQL89 || Float64
            <SupportedFormat>netcdf-cf1.0</SupportedFormat>
|-
            <SupportedFormat>dap2.0</SupportedFormat>
| numeric(p,s), decimal(p,s) || An exact numeric type with arbitrary precision p, and scale s. || Variable || SQL99 || ''None''
        </CoverageDescription>
|-
      </dapObj:type>
| money || A fixed precision, U.S.-style currency. || 4 bytes || PostgreSQL-specific, deprecated. || ''None''
      <att:site_code xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
|-
                    rdf:parseType="Resource">
| serial || An auto-incrementing 4-byte integer. || 4 bytes || PostgreSQL-specific. || ''None''
        <att:long_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Contributing radar site code</att:long_name>
|}
      </att:site_code>
 
      <att:site_netCode xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
===== Date and Time Types =====
                        rdf:parseType="Resource">
{| border="1" cellspacing="0"
        <att:long_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Contributing radar site network affiliation code</att:long_name>
! Data Type  !! Description !! Storage !! Standardization || Logical DAP data type association.
      </att:site_netCode>
|-
      <att:NC_GLOBAL xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
| date || A calendar date (day, month, year). || 4 bytes ||  SQL92 || ''String''
                    rdf:parseType="Resource">
|-
        <att:netcdf_library_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">netcdf library version 3.6.1 of Feb 3 2008 23:15:25 $</att:netcdf_library_version>
| time || The time of day. || 4 bytes || SQL92 || ''String''
        <att:format_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">HFRNet_1.0.0b2</att:format_version>
|-
        <att:product_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">HFRNet_1.1.01</att:product_version>
| time with time zone || The time of day, including time zone information. || 4 bytes || SQL92 || ''String''
        <att:Conventions rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CF-1.1</att:Conventions>
|-
        <att:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Near-Real Time Surface Ocean Velocity</att:title>
| timestamp (includes time zone) || Both date and time. || 8 bytes || SQL92 || ''String''
        <att:institution rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Scripps Institution of Oceanography</att:institution>
|-
        <att:source rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Surface Ocean HF-Radar</att:source>
| interval || An arbitrary specified length of time || 12 bytes || SQL92 || ''String''
        <att:history rdf:datatype="http://www.w3.org/2001/XMLSchema#string">12-Mar-2008 22:26:19: NetCDF file created</att:history>
|}
        <att:references rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Terrill, E. et al., 2006. Data Management and Real-time\\012Distribution in the HF-Radar National
 
                Network. Proceedings\\012of the MTS/IEEE Oceans 2006 Conference, Boston MA,\\012September 2006.
===== Geometric Types =====
            </att:references>
{| border="1" cellspacing="0"
        <att:creator_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Mark Otero</att:creator_name>
! Data Type  !! Description !! Storage !! Standardization || Logical DAP data type association.
        <att:creator_email rdf:datatype="http://www.w3.org/2001/XMLSchema#string">motero@mpl.ucsd.edu</att:creator_email>
|-
        <att:creator_url rdf:datatype="http://www.w3.org/2001/XMLSchema#string">http://cordc.ucsd.edu/projects/mapping/</att:creator_url>
| box || A rectangular box in a 2D plane. || 32 bytes || PostgreSQL-specific || ''None'' ([2][2] Array of Float32)
        <att:summary rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Surface ocean velocities estimated from HF-Radar are\\012representitive of the upper 0.3 - 2.5 meters
|-
                of the\\012ocean. The main objective of near-real time\\012processing is to produce the best product
| line || An infinite line in a 2D plane. || ?? bytes || PostgreSQL-specific || ''None'' ([2][2] Array of Float32)
                from\\012available data at the time of processing. Radial\\012velocity measurements are obtained from
|-
                individual\\012radar sites through the HF-Radar Network and\\012processed to create near-real time
| lineseg ||A finite line segment in a 2D plane. || 32 bytes ||  PostgreSQL-specific || ''None'' ([2][2] Array of Float32)
                velocities\\012(RTVs)
|-
            </att:summary>
| circle || A circle with center and radius. || 24 bytes || PostgreSQL-specific || ''None'' ([3]Array of Float32)
        <att:geospatial_lat_min rdf:datatype="http://www.w3.org/2001/XMLSchema#float">21.73596001</att:geospatial_lat_min>
|-
        <att:geospatial_lat_max rdf:datatype="http://www.w3.org/2001/XMLSchema#float">46.49441910</att:geospatial_lat_max>
| path ||  Open and closed geometric paths in a two-dimensional plane . || 4+32*n  bytes || PostgreSQL-specific || ''None'' (Array of Float32)
        <att:geospatial_lon_min rdf:datatype="http://www.w3.org/2001/XMLSchema#float">-97.88385010</att:geospatial_lon_min>
|-
        <att:geospatial_lon_max rdf:datatype="http://www.w3.org/2001/XMLSchema#float">-57.23120880</att:geospatial_lon_max>
| point || geometric point in a 2D plane || 16 bytes || PostgreSQL-specific || ''None''  ([2] Array of Float32)
        <att:grid_resolution rdf:datatype="http://www.w3.org/2001/XMLSchema#string">6km</att:grid_resolution>
|-
        <att:grid_projection rdf:datatype="http://www.w3.org/2001/XMLSchema#string">equidistant cylindrical</att:grid_projection>
| polygon || A closed geometric path in a 2D plane || 4+32*n bytes || PostgreSQL-specific || ''None'' (Array of Float32)
        <att:regional_description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Unites States, East and Gulf Coast</att:regional_description>
|}
      </att:NC_GLOBAL>
 
      <att:DODS_EXTRA xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
===== Network Types =====
                      rdf:parseType="Resource">
{| border="1" cellspacing="0"
        <att:Unlimited_Dimension rdf:datatype="http://www.w3.org/2001/XMLSchema#string">time</att:Unlimited_Dimension>
! Data Type  !! Description !! Standardization || Logical DAP data type association.
      </att:DODS_EXTRA>
|-
      <dapObj:isContainerOf>
| cdir || An IP network specification || PostgreSQL-specific || ''None''
        <dap:Int32 rdf:ID="time">
|-
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
| inet || A network IP address, with optional subnet bits. || PostgreSQL-specific || ''None''
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">time</att:standard_name>
|-
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
| macaddr || A MAC address (e.g., an Ethernet card's hardware address). || PostgreSQL-specific || ''None''
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">seconds since 1970-01-01</att:units>
|}
            <att:calendar xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
 
                          rdf:datatype="http://www.w3.org/2001/XMLSchema#string">gregorian</att:calendar>
===== System  Types =====
            <dapObj:hasDimensions rdf:parseType="Collection">
{| border="1" cellspacing="0"
              <dap:dimension>
! Data Type  !! Description !! Standardization || Logical DAP data type association.
                  <dapObj:size>1</dapObj:size>
|-
                  <dapObj:name>time</dapObj:name>
| oid || An object (row) identifier. || PostgreSQL-specific || ''None''
              </dap:dimension>
|-
            </dapObj:hasDimensions>
| xid || A transaction identifier  || PostgreSQL-specific || ''None''
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">time</dapObj:localId>
|}
        </dap:Int32>
<br /><br />
      </dapObj:isContainerOf>
----
      <dapObj:isContainerOf>
----
        <dap:Float32 rdf:ID="lat">
==== [http://msdn.microsoft.com/en-us/library/ms187752.aspx Transact-SQL (Microsoft)] ====
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
:'''Todo:'''
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">latitude</att:standard_name>
::'''<font color=red> !! This section needs to be updated and otherwise corrected. !!</font>'''
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
 
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">degrees_north</att:units>
{| border="1" cellspacing="0"
            <dapObj:hasDimensions rdf:parseType="Collection">
!Type !! Description !! Storage Bytes !! DAP equiv.
              <dap:dimension>
|-
                  <dapObj:size>460</dapObj:size>
|bigint ||Integer (whole number) data from -2^63 (-9,223,372,036,854,775,808) through 2^63-1 (9,223,372,036,854,775,807). || 8 bytes || none
                  <dapObj:name>lat</dapObj:name>
|-  
              </dap:dimension>
|int ||Integer (whole number) data from -2^31 (-2,147,483,648) through 2^31 - 1 (2,147,483,647). || 4 bytes ||
            </dapObj:hasDimensions>
|-
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">lat</dapObj:localId>
|numeric || Functionally equivalent to decimal. || ||
        </dap:Float32>
|-  
      </dapObj:isContainerOf>
|decimal || Fixed precision and scale numeric data from -10^38 +1 through 10^38 –1. || ||
      <dapObj:isContainerOf>
|-  
        <dap:Float32 rdf:ID="lon">
| bit || Integer data with either a 1 or 0 value  || ||
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
|-
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">longitude</att:standard_name>
|smallint || Integer data from -2^15 (-32,768) through 2^15 - 1 (32,767). ||  2 bytes ||
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
|-  
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">degrees_east</att:units>
|tinyint || Integer data from 0 through 255  || 1 bytes||
            <dapObj:hasDimensions rdf:parseType="Collection">
|-  
              <dap:dimension>
| smallmoney  || Monetary data values from -214,748.3648 through +214,748.3647, with accuracy to a ten-thousandth of a monetary unit. ||  ||
                  <dapObj:size>701</dapObj:size>
|-
                  <dapObj:name>lon</dapObj:name>
| money  || Monetary data values from -2^63 (-922,337,203,685,477.5808) through 2^63 - 1 (+922,337,203,685,477.5807), with accuracy to a ten-thousandth of a monetary unit. || ||
              </dap:dimension>
|-
            </dapObj:hasDimensions>
| float || Floating precision number data with the following valid values: -1.79E + 308 through -2.23E - 308, 0 and 2.23E + 308 through 1.79E + 308. || 4 or 8 bytes ||
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">lon</dapObj:localId>
|-
        </dap:Float32>
| real  || Floating precision number data with the following valid values: -3.40E + 38 through -1.18E - 38, 0 and 1.18E - 38 through 3.40E + 38. || 4 bytes ||
      </dapObj:isContainerOf>
|-  
      <dapObj:isContainerOf>
| date  || ||  ||
        <dap:Grid rdf:ID="u">
|-  
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
| datetimeoffset  || ||  ||
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">surface_eastward_sea_water_velocity</att:standard_name>
|-  
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
| datetime2  || ||  ||
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">m s-1</att:units>
|-  
            <att:_FillValue xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
| smalldatetime  || Date and time data from January 1, 1900, through June 6, 2079, with an accuracy of one minute.  ||  ||
                            rdf:datatype="http://www.w3.org/2001/XMLSchema#short">-32768</att:_FillValue>
|-
            <att:scale_factor xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
| datetime  || Date and time data from January 1, 1753, through December 31, 9999, with an accuracy of three-hundredths of a second, or 3.33 milliseconds. ||  ||
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.009999999776</att:scale_factor>
|-
            <att:ancillary_variables xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
| time  || ||  ||
                                    rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPx</att:ancillary_variables>
|-
            <dapObj:isContainerOf>
| char  || Fixed-length non-Unicode character data with a maximum length of 8,000 characters. ||  ||
              <dap:Int16 rdf:ID="u.&#xA;            u">
|-
                  <dapObj:hasDimensions rdf:parseType="Collection">
| varchar  || Variable-length non-Unicode data with a maximum of 8,000 characters. ||  ||
                    <dap:dimension>
|-
                        <dapObj:size>1</dapObj:size>
| next  || Variable-length non-Unicode data with a maximum length of 2^31 - 1 (2,147,483,647) characters ||  ||
                        <dapObj:name>time</dapObj:name>
|-
                    </dap:dimension>
| nchar  || Fixed-length Unicode data with a maximum length of 4,000 characters  ||  ||
                    <dap:dimension>
|-  
                        <dapObj:size>460</dapObj:size>
| nvarchar  || Variable-length Unicode data with a maximum length of 4,000 characters. sysname is a system-supplied user-defined data type that is functionally equivalent to nvarchar(128) and is used to reference database object names. ||  ||
                        <dapObj:name>lat</dapObj:name>
|-
                    </dap:dimension>
| ntext  || Variable-length Unicode data with a maximum length of 2^30 - 1 (1,073,741,823) characters. ||  ||
                    <dap:dimension>
|-
                        <dapObj:size>701</dapObj:size>
| binary  || Fixed-length binary data with a maximum length of 8,000 bytes. ||  ||
                        <dapObj:name>lon</dapObj:name>
|-
                    </dap:dimension>
| varbinary  || Variable-length binary data with a maximum length of 8,000 bytes. ||  ||
                  </dapObj:hasDimensions>
|-
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">u.
| image  || Variable-length binary data with a maximum length of 2^31 - 1 (2,147,483,647) bytes. ||  ||
            u</dapObj:localId>
|-
              </dap:Int16>
| cursor  || A reference to a cursor.||  ||
            </dapObj:isContainerOf>
|-
            <dapObj:hasMap>
| timestamp  || A database-wide unique number that gets updated every time a row gets updated. ||  ||
              <dap:Int32 rdf:ID="u.&#xA;            time">
|-
                  <dapObj:hasDimensions rdf:parseType="Collection">
| hierarchyid  || ||  ||
                    <dap:dimension>
|-
                        <dapObj:size>1</dapObj:size>
| uniquieidentifier  || A globally unique identifier (GUID). ||  ||
                        <dapObj:name>time</dapObj:name>
|-
                    </dap:dimension>
| sql_variant  || ||  ||
                  </dapObj:hasDimensions>
|-
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">u.
| xml  || ||  ||
            time</dapObj:localId>
|-
              </dap:Int32>
| table  || ||  ||
            </dapObj:hasMap>
|}
            <dapObj:hasMap>
 
              <dap:Float32 rdf:ID="u.&#xA;            lat">
== Template ==
                  <dapObj:hasDimensions rdf:parseType="Collection">
==== Types ====
                    <dap:dimension>
{| border="1" cellspacing="0"
                        <dapObj:size>460</dapObj:size>
! Data Type  !! Description !! Standardization || Logical DAP data type association.
                        <dapObj:name>lat</dapObj:name>
|-
                    </dap:dimension>
|
                  </dapObj:hasDimensions>
|-
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">u.
|
            lat</dapObj:localId>
|-
              </dap:Float32>
|
            </dapObj:hasMap>
|}
            <dapObj:hasMap>
 
              <dap:Float32 rdf:ID="u.&#xA;            lon">
== Desired Features ==
                  <dapObj:hasDimensions rdf:parseType="Collection">
 
                    <dap:dimension>
== Implementation Target ==
                        <dapObj:size>701</dapObj:size>
                        <dapObj:name>lon</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">u.
            lon</dapObj:localId>
              </dap:Float32>
            </dapObj:hasMap>
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">u</dapObj:localId>
        </dap:Grid>
      </dapObj:isContainerOf>
      <dapObj:isContainerOf>
        <dap:Grid rdf:ID="v">
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">surface_northward_sea_water_velocity</att:standard_name>
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">m s-1</att:units>
            <att:_FillValue xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                            rdf:datatype="http://www.w3.org/2001/XMLSchema#short">-32768</att:_FillValue>
            <att:scale_factor xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.009999999776</att:scale_factor>
            <att:ancillary_variables xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                                    rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPy</att:ancillary_variables>
            <dapObj:isContainerOf>
              <dap:Int16 rdf:ID="v.&#xA;            v">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>1</dapObj:size>
                        <dapObj:name>time</dapObj:name>
                    </dap:dimension>
                    <dap:dimension>
                        <dapObj:size>460</dapObj:size>
                        <dapObj:name>lat</dapObj:name>
                    </dap:dimension>
                    <dap:dimension>
                        <dapObj:size>701</dapObj:size>
                        <dapObj:name>lon</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">v.
            v</dapObj:localId>
              </dap:Int16>
            </dapObj:isContainerOf>
            <dapObj:hasMap>
              <dap:Int32 rdf:ID="v.&#xA;            time">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>1</dapObj:size>
                        <dapObj:name>time</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">v.
            time</dapObj:localId>
              </dap:Int32>
            </dapObj:hasMap>
            <dapObj:hasMap>
              <dap:Float32 rdf:ID="v.&#xA;            lat">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>460</dapObj:size>
                        <dapObj:name>lat</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">v.
            lat</dapObj:localId>
              </dap:Float32>
            </dapObj:hasMap>
            <dapObj:hasMap>
              <dap:Float32 rdf:ID="v.&#xA;            lon">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>701</dapObj:size>
                        <dapObj:name>lon</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">v.
            lon</dapObj:localId>
              </dap:Float32>
            </dapObj:hasMap>
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">v</dapObj:localId>
        </dap:Grid>
      </dapObj:isContainerOf>
      <dapObj:isContainerOf>
        <dap:Grid rdf:ID="DOPx">
            <att:long_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                          rdf:datatype="http://www.w3.org/2001/XMLSchema#string">longitudinal dilution of precision</att:long_name>
            <att:comment xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                        rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The longitudinal dilution of precision (DOPx) represents the\\012contribution of the radars'
                configuration geometry to\\012uncertainty in the eastward velocity estimate (u). DOPx is a\\012direct
                multiplier of the standard error in obtaining the\\012standard deviation for the eastward velocity
                estimate from the\\012least squares best fit. DOPx and DOPy are commonly used to\\012obtain the
                geometric dilution of precision\\012(GDOP = sqrt(DOPx^2 + DOPy^2)), a useful metric for
                filtering\\012errant velocities due to poor geometry.
            </att:comment>
            <att:_FillValue xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                            rdf:datatype="http://www.w3.org/2001/XMLSchema#short">-32768</att:_FillValue>
            <att:scale_factor xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.009999999776</att:scale_factor>
            <dapObj:isContainerOf>
              <dap:Int16 rdf:ID="DOPx.&#xA;            DOPx">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>1</dapObj:size>
                        <dapObj:name>time</dapObj:name>
                    </dap:dimension>
                    <dap:dimension>
                        <dapObj:size>460</dapObj:size>
                        <dapObj:name>lat</dapObj:name>
                    </dap:dimension>
                    <dap:dimension>
                        <dapObj:size>701</dapObj:size>
                        <dapObj:name>lon</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPx.
            DOPx</dapObj:localId>
              </dap:Int16>
            </dapObj:isContainerOf>
            <dapObj:hasMap>
              <dap:Int32 rdf:ID="DOPx.&#xA;            time">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>1</dapObj:size>
                        <dapObj:name>time</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPx.
            time</dapObj:localId>
              </dap:Int32>
            </dapObj:hasMap>
            <dapObj:hasMap>
              <dap:Float32 rdf:ID="DOPx.&#xA;            lat">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>460</dapObj:size>
                        <dapObj:name>lat</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPx.
            lat</dapObj:localId>
              </dap:Float32>
            </dapObj:hasMap>
            <dapObj:hasMap>
              <dap:Float32 rdf:ID="DOPx.&#xA;            lon">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>701</dapObj:size>
                        <dapObj:name>lon</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPx.
            lon</dapObj:localId>
              </dap:Float32>
            </dapObj:hasMap>
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPx</dapObj:localId>
        </dap:Grid>
      </dapObj:isContainerOf>
      <dapObj:isContainerOf>
        <dap:Grid rdf:ID="DOPy">
            <att:long_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                          rdf:datatype="http://www.w3.org/2001/XMLSchema#string">latitudinal dilution of precision</att:long_name>
            <att:comment xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                        rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The latitudinal dilution of precision (DOPy) represents the\\012contribution of the radars'
                configuration geometry to\\012uncertainty in the northward velocity estimate (v). DOPy is a\\012direct
                multiplier of the standard error in obtaining the\\012standard deviation for the northward velocity
                estimate from the\\012least squares best fit. DOPx and DOPy are commonly used to\\012obtain the
                geometric dilution of precision\\012(GDOP = sqrt(DOPx^2 + DOPy^2)), a useful metric for
                filtering\\012errant velocities due to poor geometry.
            </att:comment>
            <att:_FillValue xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                            rdf:datatype="http://www.w3.org/2001/XMLSchema#short">-32768</att:_FillValue>
            <att:scale_factor xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.009999999776</att:scale_factor>
            <dapObj:isContainerOf>
              <dap:Int16 rdf:ID="DOPy.&#xA;            DOPy">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>1</dapObj:size>
                        <dapObj:name>time</dapObj:name>
                    </dap:dimension>
                    <dap:dimension>
                        <dapObj:size>460</dapObj:size>
                        <dapObj:name>lat</dapObj:name>
                    </dap:dimension>
                    <dap:dimension>
                        <dapObj:size>701</dapObj:size>
                        <dapObj:name>lon</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPy.
            DOPy</dapObj:localId>
              </dap:Int16>
            </dapObj:isContainerOf>
            <dapObj:hasMap>
              <dap:Int32 rdf:ID="DOPy.&#xA;            time">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>1</dapObj:size>
                        <dapObj:name>time</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPy.
            time</dapObj:localId>
              </dap:Int32>
            </dapObj:hasMap>
            <dapObj:hasMap>
              <dap:Float32 rdf:ID="DOPy.&#xA;            lat">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>460</dapObj:size>
                        <dapObj:name>lat</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPy.
            lat</dapObj:localId>
              </dap:Float32>
            </dapObj:hasMap>
            <dapObj:hasMap>
              <dap:Float32 rdf:ID="DOPy.&#xA;            lon">
                  <dapObj:hasDimensions rdf:parseType="Collection">
                    <dap:dimension>
                        <dapObj:size>701</dapObj:size>
                        <dapObj:name>lon</dapObj:name>
                    </dap:dimension>
                  </dapObj:hasDimensions>
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPy.
            lon</dapObj:localId>
              </dap:Float32>
            </dapObj:hasMap>
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPy</dapObj:localId>
        </dap:Grid>
      </dapObj:isContainerOf>
      <dapObj:isContainerOf>
        <dap:Float32 rdf:ID="site_lat">
            <att:long_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                          rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Contributing radar site latitudes</att:long_name>
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">latitude</att:standard_name>
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">degrees_north</att:units>
            <dapObj:hasDimensions rdf:parseType="Collection">
              <dap:dimension>
                  <dapObj:size>27</dapObj:size>
                  <dapObj:name>nSites</dapObj:name>
              </dap:dimension>
            </dapObj:hasDimensions>
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">site_lat</dapObj:localId>
        </dap:Float32>
      </dapObj:isContainerOf>
      <dapObj:isContainerOf>
        <dap:Float32 rdf:ID="site_lon">
            <att:long_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                          rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Contributing radar site longitudes</att:long_name>
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">longitude</att:standard_name>
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">degrees_east</att:units>
            <dapObj:hasDimensions rdf:parseType="Collection">
              <dap:dimension>
                  <dapObj:size>27</dapObj:size>
                  <dapObj:name>nSites</dapObj:name>
              </dap:dimension>
            </dapObj:hasDimensions>
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">site_lon</dapObj:localId>
        </dap:Float32>
      </dapObj:isContainerOf>
      <dapObj:isContainerOf>
        <dap:Float32 rdf:ID="procParams">
            <att:long_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                          rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RTV processing parameters</att:long_name>
            <att:comment xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    "
                        rdf:datatype="http://www.w3.org/2001/XMLSchema#string">\\01201) Maximum GDOP threshold\\01202) Maximum speed threshold (cm s-1)\\01203) Minimum number of
                sites required\\01204) Minimum number of radials required\\01205) Maximum angular gap to interpolate
                radial\\012 data over (degrees, 0 = no interpolation)\\01206) Maximum gap in range to interpolate
                radial\\012 data over (range-resolution, 0 = no interpolation)\\01207) Spatial search radius for radial
                solutions (km)
            </att:comment>
            <dapObj:hasDimensions rdf:parseType="Collection">
              <dap:dimension>
                  <dapObj:size>7</dapObj:size>
                  <dapObj:name>nProcParam</dapObj:name>
              </dap:dimension>
            </dapObj:hasDimensions>
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">procParams</dapObj:localId>
        </dap:Float32>
      </dapObj:isContainerOf>
  </dapObj:Dataset>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    wcsStuff">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    site_code">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    long_name">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    site_netCode">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    NC_GLOBAL">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    netcdf_library_version">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    format_version">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    product_version">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    Conventions">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    title">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    institution">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    source">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    history">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    references">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    creator_name">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    creator_email">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    creator_url">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    summary">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    geospatial_lat_min">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    geospatial_lat_max">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    geospatial_lon_min">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    geospatial_lon_max">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    grid_resolution">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    grid_projection">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    regional_description">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    DODS_EXTRA">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    Unlimited_Dimension">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    standard_name">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    units">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    calendar">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    _FillValue">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    scale_factor">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    ancillary_variables">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    comment">
      <rdfs:domain rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#Container"/>
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
  </owl:DatatypeProperty>
</rdf:RDF>

Latest revision as of 21:23, 24 April 2009

The DAP Relational Database Server II (DRDS-II) is a (as yet to funded) project that will provide a DAP service layer for relational databases systems. Previously this was (partially) accomplished by a Java servlet known as the DODS Relational Database Server (DRDS).

Overview

Automated catalog generation vs. external configuration

Should the DRDS-II interrogate the database to learn the table and key structures so that it can automatically build a catalog of DAP data objects that represent the database holdings? Or, should the DRDS-II rely (as it's predecessor did) on having the operator develop a DDS/DDX (or some other configuration item) for each data holding?

Data model representation: Tables/Queries as Sequences

In the world of the RDBMS everything is structurally a row set: A collection (tuple) of columns (variables) whose length my not be known until the content is delivered in total. Tables are row sets. A database view is a row set. SQL queries return row sets. SQL JOIN operations take row sets' as input and produce row sets.

Row sets map naturally to the DAP Sequence data type, thus a reasonable representation of an SQL query is a Sequence: A repeating tuple of unknown length.

When a database contains multiple tables or views, each one could be represented as a DAP Sequence. Thus a DDS might contain multiple Sequences each representing a single table or view in the RDBMS:

Dataset {
    Sequence {
        String FirstName;
        String LastName;
        String PhoneNumber;
    } Authors;

    Sequence {
        String Title;
        String Publisher;
        Int16  Pages;
        String   CopyrightDate;
        String   ISBN;
    } Books;

} Inventory;

Databases are typically much more complex. In our example above it would more likely that the Books table contains one or more foreign keys that references the authors of the book. So how to capture this? If we simply add the key field to the Sequence how do users of the system know how to construct queries that can return the data they want? Would this representation allow them to make requests that could return data with the key relationships expressed in the DAP structure (I don't think so) How do we prevent them from making requests the create problems for the RDBMS by creating, via the DAP constraint expression, unreasonable JOIN requests. Additionally, this very flat representation doesn't clearly establish the relationships between the tables.

On possible solution is to represent the databse tables as a series of nested sequences:

Dataset {

    Sequence {
        String Title;
        String Publisher;
        Int16  Pages;
        String   CopyrightDate;
        String   ISBN;
        Sequence {
            String FirstName;
            String LastName;
            String PhoneNumber;
        } Authors;
    } Books;

} Inventory;

Does this actually represent the case of foreign keys?

Tasks

A server that adds a DAP interface to a RDBMS needs:

  1. A component that can translate a DAP query into an SQL query string. This might happen at the string level by simply converting one to the other. The DRDS accomplished this by processing the DAP query string (marking variables in a DDS instance as projected and parsing the selection part of the constraint into Clause objects) and then working with the in memory objects (DDS and Clause objects) to build the SQL query.
  2. A mechanism through which the RDBMS holdings (a collection of one or more tables and views) can be represented as a collection of DAP data sets. For this document we will refer to this as catalog generation. This is inexorably connected to the type mapping activities explained next.
  3. A mapping between the data types found in the RDBMS to the appropriate DAP data types. For many simple/atomic type this is simple: An SQL FLOAT maps naturally to a DAP Float64. For other types, such as an database table with foreign keys the mapping is less straightforward. This activity s further complicated by the fact that nearly every RDBMS implementation contains a number of useful, yet proprietary data types. Thus a proper data model might have to be generated for each RDBMS encountered.

Previous Design/Implementation

The first DRDS (DODS Relational Database Server) was implemented as a Java Servlet. It relied on the Java-DODS implementation of the DAP to provide the DAP type classes with constraint expression evaluation and data value serialization. Some documentation can be found here:


Important features/activities:

  • The server used filesystem directories containing DDS and DAS documents to represent the holdings in the RDBMS. These files were used to generate the DDS and DAS responses.
  • The opendap.servers.sql.sqlCEEval.getSQLQueries() method that takes a constrained DDS object and interrogates it to form an SQL query.
  • Each table or view in the database could only be represented as a data set containing a singe DAP Sequence.
  • The individual DAP type classes implement the read() and serialize() methods that extracts values from the SQL query result and write the values to the client. The DAP Sequence implementation manages which "row" is being read from the SQL response object.

Despite its limitations and lack of ongoing support the DRDS was useful for a number of data centers and continues to be used today. However, the DRDS had many drawbacks:

  • It required the operator to engage in a significant configuration steps:
    • Locating a JDBC driver for their database implementation.
    • Configuring the DRDS to correctly use the JDBC driver.
    • Hand writing the DDS and DAS documents for each table or view in the database for which DAP 2 services were to be provided. This in effect placed the operator of the server in charge of mapping the different types of data held in the database tables into the different types in the DAP data model. The DRDS implementation only allowed certain mappings (as many of the possible combinations were non-sensical), thus if the operator made a poor mapping (For example creating a floating point variable in the DDS and then trying to read a SQL CHAR type into it) the server would not function correctly.
  • It could not automatically build a catalog of the RDBMS holdings. (This was done by the operator as described above)
  • The representation of the RDBMS holds was limited to a single table per DAP data set. Thus each DDS in the catalog contained a single Sequence representing a single table or view from within the RDBMS. Since most RDBMS holds are a collection of tables linked together through keys, this single Sequence representation was a very "flat" view of the RDBMS which many users found particularly restrictive. Making different views of the database alleviated the effects of this limitation to a certain extent, but typically caused some (many?) data values to be sent in a repetitive manner.

Data model representation

Mapping the a the SQL data model to the DAP data model is problematic due to the diversity of the implementations of an SQL database.


Atomic (Simple) Types

Tables as Sequences

Single Tables

Multiple Tables

Multiple Tables as Nested Sequences

Other Complex Types

Relational Database Data Types

Accessing data in an RDBMS is often a many layered affair. Many RDBMS implementations provide a native API library that can be used with a common programming language such as C, C++, C#, Visual Basic, or even Java. These API's interact directly with the RDBMS and provide the maximum level of flexibility, control and access. If one was using a native API to work with a RDBMS to get data then there would be a mapping from the native RDBMS data types to the language data types:


Native RDBMS Data Types ---> C++ Data Types


However, most software that works with RDMSs does so through a database connectivity API. The two most common are the Open Database Connectivity (ODBC) API and the Java Database Connectivity (JDBC) API. Using one of these database connectivity APIs adds a layer of data type mapping to the process:


Native RDBMS Data Types ---> Database Connectivity API Data Types ---> C++ Data Types


To complete the picture, generating DAP data objects requires the finally mapping from the programming language data types in to the DAP data model:


Native RDBMS Data Types ---> Database Connectivity API Data Types ---> C++ Data Types ---> DAP Data Types


For simple/atomic types such as integers an booleans this doesn't require much thought. For more complex types it may require both thought ad careful development to preserve the original semantics of the RDBMS data type across the various mappings and into the appropriate DAP data type. Even then the DAP data model may not have a data type that directly captures the semantics of the original type. For example PostgreSQL has a number of geometric types (such as point, box, and circle) whose content can be held in DAP types, but the semantic meaning (these two floating point values represent a point on a cartesian plain) is not explicit in the DAP object holding the values. That information can only be included in the metadata associated with the instance of the DAP variable.



Database Connectivity APIs





ODBC Data Types





JDBC Data Types

The DRDS used a JDBC connection to retrieve data from a relational database. It is important to note that their are several layers of type translation happening in this:

Database -> JDBC -> Java -> DODS

The Database types are the native types for the particular database that is being read from. The translation from Database->JDBC was handled before the data arrived at the DRDS (most likely by the JDBC Drivers). The mapping of JDBC type to DODS types (the intermediate Java types happen in the process) looked like this:

Mapping from JDBC Types to DODS Types
JDBC Type DAP Type
TINYINT DByte
SMALLINT DInt16
INTEGER DInt32
BIGINT DInt32 **NO SENSIBLE MAPPING (Need DInt64)
REAL DFloat32
FLOAT DFloat64
DOUBLE DFloat64
DECIMAL DFloat64 **NO SENSIBLE MAPPING (Need Some Kind Monsterous Floating point value)
NUMERIC DFloat64 **NO SENSIBLE MAPPING (ibid)
BIT DBoolean
CHAR DString
VARCHAR DString
LONGVARCHAR Implemented to be read into a DString, although it is a "BLOB" type and might be better represented as a DArray(of bytes).
BINARY DArray(of bytes)
VARBINARY DArray(of bytes)
LONGVARBINARY DArray(of bytes)
DATE DString
TIME DString
TIMESTAMP DString

Native SQL Data Types by Implementation





PostgreSQL Data Types

Todo:
 !! This section needs to be updated and otherwise corrected. !!
Boolean and Binary Types
Data Type Description Standardization Logical DAP data type association.
boolean, bool A single true or false value. SQL99 Boolean
bit(n) An n -length bit string (exactly n binary bits). SQL92 None
bit varying(n), varbit(n) A variable n -length bit string (up to n binary bits) SQL92 None
Character Types
Data Type Description Storage Standardization Logical DAP data type association.
character (n ), char(n ) A fixed n -length character string. (4+n) bytes SQL89 String
character varying(n), varchar(n) A variable length character string of up to n characters. Up to (4+n) bytes SQL92 String
text A variable length character string, of unlimited length. Variable PostgreSQL-specific String
Numeric Types
Data Type Description Storage Standardization Logical DAP data type association.
smallint, int2 A signed 2-byte integer 2 bytes SQL89 Int16
integer, int, int4 A signed, fixed-precision 4-byte number. 4 bytes SQL92 Int32
bigint, int8 A signed 8-byte integer, up to 18 digits in length. 8 bytes PostgreSQL-specific None (Need Int64)
real, float4 A 4-byte floating point number. 4 bytes SQL89 Float32
double precision, float8, float An 8-byte floating point number 8 bytes SQL89 Float64
numeric(p,s), decimal(p,s) An exact numeric type with arbitrary precision p, and scale s. Variable SQL99 None
money A fixed precision, U.S.-style currency. 4 bytes PostgreSQL-specific, deprecated. None
serial An auto-incrementing 4-byte integer. 4 bytes PostgreSQL-specific. None
Date and Time Types
Data Type Description Storage Standardization Logical DAP data type association.
date A calendar date (day, month, year). 4 bytes SQL92 String
time The time of day. 4 bytes SQL92 String
time with time zone The time of day, including time zone information. 4 bytes SQL92 String
timestamp (includes time zone) Both date and time. 8 bytes SQL92 String
interval An arbitrary specified length of time 12 bytes SQL92 String
Geometric Types
Data Type Description Storage Standardization Logical DAP data type association.
box A rectangular box in a 2D plane. 32 bytes PostgreSQL-specific None ([2][2] Array of Float32)
line An infinite line in a 2D plane. ?? bytes PostgreSQL-specific None ([2][2] Array of Float32)
lineseg A finite line segment in a 2D plane. 32 bytes PostgreSQL-specific None ([2][2] Array of Float32)
circle A circle with center and radius. 24 bytes PostgreSQL-specific None ([3]Array of Float32)
path Open and closed geometric paths in a two-dimensional plane . 4+32*n bytes PostgreSQL-specific None (Array of Float32)
point geometric point in a 2D plane 16 bytes PostgreSQL-specific None ([2] Array of Float32)
polygon A closed geometric path in a 2D plane 4+32*n bytes PostgreSQL-specific None (Array of Float32)
Network Types
Data Type Description Standardization Logical DAP data type association.
cdir An IP network specification PostgreSQL-specific None
inet A network IP address, with optional subnet bits. PostgreSQL-specific None
macaddr A MAC address (e.g., an Ethernet card's hardware address). PostgreSQL-specific None
System Types
Data Type Description Standardization Logical DAP data type association.
oid An object (row) identifier. PostgreSQL-specific None
xid A transaction identifier PostgreSQL-specific None





Transact-SQL (Microsoft)

Todo:
 !! This section needs to be updated and otherwise corrected. !!
Type Description Storage Bytes DAP equiv.
bigint Integer (whole number) data from -2^63 (-9,223,372,036,854,775,808) through 2^63-1 (9,223,372,036,854,775,807). 8 bytes none
int Integer (whole number) data from -2^31 (-2,147,483,648) through 2^31 - 1 (2,147,483,647). 4 bytes
numeric Functionally equivalent to decimal.
decimal Fixed precision and scale numeric data from -10^38 +1 through 10^38 –1.
bit Integer data with either a 1 or 0 value
smallint Integer data from -2^15 (-32,768) through 2^15 - 1 (32,767). 2 bytes
tinyint Integer data from 0 through 255 1 bytes
smallmoney Monetary data values from -214,748.3648 through +214,748.3647, with accuracy to a ten-thousandth of a monetary unit.
money Monetary data values from -2^63 (-922,337,203,685,477.5808) through 2^63 - 1 (+922,337,203,685,477.5807), with accuracy to a ten-thousandth of a monetary unit.
float Floating precision number data with the following valid values: -1.79E + 308 through -2.23E - 308, 0 and 2.23E + 308 through 1.79E + 308. 4 or 8 bytes
real Floating precision number data with the following valid values: -3.40E + 38 through -1.18E - 38, 0 and 1.18E - 38 through 3.40E + 38. 4 bytes
date
datetimeoffset
datetime2
smalldatetime Date and time data from January 1, 1900, through June 6, 2079, with an accuracy of one minute.
datetime Date and time data from January 1, 1753, through December 31, 9999, with an accuracy of three-hundredths of a second, or 3.33 milliseconds.
time
char Fixed-length non-Unicode character data with a maximum length of 8,000 characters.
varchar Variable-length non-Unicode data with a maximum of 8,000 characters.
next Variable-length non-Unicode data with a maximum length of 2^31 - 1 (2,147,483,647) characters
nchar Fixed-length Unicode data with a maximum length of 4,000 characters
nvarchar Variable-length Unicode data with a maximum length of 4,000 characters. sysname is a system-supplied user-defined data type that is functionally equivalent to nvarchar(128) and is used to reference database object names.
ntext Variable-length Unicode data with a maximum length of 2^30 - 1 (1,073,741,823) characters.
binary Fixed-length binary data with a maximum length of 8,000 bytes.
varbinary Variable-length binary data with a maximum length of 8,000 bytes.
image Variable-length binary data with a maximum length of 2^31 - 1 (2,147,483,647) bytes.
cursor A reference to a cursor.
timestamp A database-wide unique number that gets updated every time a row gets updated.
hierarchyid
uniquieidentifier A globally unique identifier (GUID).
sql_variant
xml
table

Template

Types

Data Type Description Standardization Logical DAP data type association.

Desired Features

Implementation Target