Scratch Pad: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
No edit summary
 
(22 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 ===


<?xml version="1.0" encoding="UTF-8"?>
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?
<rdf:RDF xmlns:dap="http://xml.opendap.org/ns/DAP/3.3#"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:cf="http://iridl.ldeo.columbia.edu/ontologies/cf-att.owl#"
        xmlns:dapObj="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl#"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:owl="http://www.w3.org/2002/07/owl#"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xml:base="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx">
  <owl:Ontology rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    ">
      <owl:imports rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl"/>
      <owl:imports rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/NetcdfConventionRegistry.owl"/>
  </owl:Ontology>
  <dapObj:Dataset rdf:about="">
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf&#xA;    "/>
      <dapObj:dataset_id rdf:datatype="http://www.w3.org/2001/XMLSchema#string"/>
      <dapObj:type>
        <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 dapObj: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>
  </dapObj:Dataset>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#&#xA;    xmlTest">
      <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>


== Hacked HFRadar Example ==
=== Data model representation: Tables/Queries as Sequences ===




  <?xml version="1.0" encoding="UTF-8"?>
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#"
 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
''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:cf="http://iridl.ldeo.columbia.edu/ontologies/cf-att.owl#"
 
         xmlns:dapObj="http://iridl.ldeo.columbia.edu/ontologies/opendap.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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 
         xmlns:owl="http://www.w3.org/2002/07/owl#"
Dataset {
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    Sequence {
         xml:base="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx">
        String FirstName;
  <owl:Ontology rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf">
        String LastName;
      <owl:imports rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/opendap.owl"/>
         String PhoneNumber;
      <owl:imports rdf:resource="http://iridl.ldeo.columbia.edu/ontologies/NetcdfConventionRegistry.owl"/>
    } Authors;
  </owl:Ontology>
  <dapObj:Dataset rdf:about="">
    Sequence {
      <rdfs:isDefinedBy rdf:resource="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx.rdf"/>
         String Title;
      <dapObj:dataset_id rdf:datatype="http://www.w3.org/2001/XMLSchema#string"/>
         String Publisher;
      <dapObj:type>
         Int16  Pages;
         <CoverageDescription xmlns="http://www.opengis.net/wcs/1.1" xmlns:ows="http://www.opengis.net/ows/1.1"
         String  CopyrightDate;
                              xmlns:owcs="http://www.opengis.net/wcs/1.1/ows"
         String  ISBN;
                              xmlns:gml="http://www.opengis.net/gml/3.2"
    } Books;
                              xmlns:xlink="http://www.w3.org/1999/xlink"
                              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"
} Inventory;
                              xmlns:grddl="http://www.w3.org/2003/g/data-view#">
 
            <ows:Title>Near-Real Time Surface Ocean Velocity</ows:Title>
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:Abstract>CoverageDescription generated by OPeNDAP WCS UseCase 2.0</ows:Abstract>
 
            <Identifier>coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc</Identifier>
On possible solution is to represent the databse tables as a series of nested sequences:
            <dapObj:xmlContains>
 
              <Domain>
Dataset {
                  <dapObj:xmlContains>
                    <SpatialDomain>
    Sequence {
                        <dapObj:xmlContains>
        String Title;
                          <ows:BoundingBox>
        String Publisher;
                              <dapObj:xmlAttribute dapObj:name="crs" rdf:value="urn:ogc:def:crs:EPSG::4326"/>
        Int16  Pages;
                              <ows:LowerCorner>-97.8839 21.736</ows:LowerCorner>
        String  CopyrightDate;
                              <ows:UpperCorner>-57.2312 46.4944</ows:UpperCorner>
        String  ISBN;
                          </ows:BoundingBox>
        Sequence {
                        </dapObj:xmlContains>
            String FirstName;
                    </SpatialDomain>
            String LastName;
                  </dapObj:xmlContains>
            String PhoneNumber;
                  <dapObj:xmlContains>
         } Authors;
                    <TemporalDomain>
    } Books;
                        <gml:timePosition>2008-03-27T16:00:00.000Z</gml:timePosition>
                    </TemporalDomain>
} Inventory;
                  </dapObj:xmlContains>
 
              </Domain>
Does this actually represent the case of foreign keys?
            </dapObj:xmlContains>
 
            <dapObj:xmlContains>
=== Tasks ===
              <Range>
 
                  <dapObj:xmlContains>
A server that adds a DAP interface to a RDBMS needs:
                    <Field>
 
                        <ows:Title>surface_eastward_sea_water_velocity</ows:Title>
# 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:Abstract>Eastward component of a 2D sea surface velocity vector.</ows:Abstract>
#  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.
                        <Identifier>u</Identifier>
# 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.
                        <dapObj:xmlContains>
 
                          <Definition>
=== Previous Design/Implementation ===
                              <ows:AnyValue/>
 
                          </Definition>
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.
                        </dapObj:xmlContains>
Some documentation can be found here:
                        <NullValue>-32768</NullValue>
* [http://www.opendap.org/design/java-api/design.html General Java DAP Implementation Documents]
                        <dapObj:xmlContains>
* [http://scm.opendap.org/svn/trunk/DRDS/ DRDS source tree]
                          <owcs:InterpolationMethods>
 
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
 
                          </owcs:InterpolationMethods>
Important features/activities:
                        </dapObj:xmlContains>
 
                    </Field>
* 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.  
                  </dapObj:xmlContains>
* 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.
                    <Field>
* 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.
                        <ows:Title>surface_northward_sea_water_velocity</ows:Title>
 
                        <ows:Abstract>Northward component of a 2D sea surface velocity vector.</ows:Abstract>
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:
                        <Identifier>v</Identifier>
 
                        <dapObj:xmlContains>
* It required the operator to engage in a significant configuration steps:
                          <Definition>
** Locating a JDBC driver for their database implementation.  
                              <ows:AnyValue/>
** Configuring the DRDS to correctly use the JDBC driver.
                          </Definition>
**  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.
                        </dapObj:xmlContains>
* It could not automatically build a catalog of the RDBMS holdings. (This was done by the operator as described above)
                        <NullValue>-32768</NullValue>
* 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.
                        <dapObj:xmlContains>
 
                          <owcs:InterpolationMethods>
== Data model representation ==
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
 
                          </owcs:InterpolationMethods>
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.
                        </dapObj:xmlContains>
 
                    </Field>
 
                  </dapObj:xmlContains>
 
                  <dapObj:xmlContains>
=== Atomic (Simple) Types ===
                    <Field>
 
                        <ows:Title>longitudinal dilution of precision</ows:Title>
 
                        <ows:Abstract>The longitudinal dilution of precision (DOPx) represents the\\012contribution of the
=== Tables as Sequences ===
                            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
==== Single Tables ====
                            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
==== Multiple Tables ====
                            metric for filtering\\012errant velocities due to poor geometry.
 
                        </ows:Abstract>
==== Multiple Tables as Nested Sequences ====
                        <Identifier>DOPx</Identifier>
 
                        <dapObj:xmlContains>
=== Other Complex Types ===
                          <Definition>
 
                              <ows:AnyValue/>
== Relational Database Data Types ==
                          </Definition>
 
                        </dapObj:xmlContains>
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:
                        <NullValue>-32768</NullValue>
 
                        <dapObj:xmlContains>
 
                          <owcs:InterpolationMethods>
:''Native RDBMS Data Types'' '''--->''' ''C++ Data Types''
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
 
                          </owcs:InterpolationMethods>
 
                        </dapObj:xmlContains>
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:
                    </Field>
 
                  </dapObj:xmlContains>
 
                  <dapObj:xmlContains>
:''Native RDBMS Data Types'' '''--->''' ''Database Connectivity API  Data Types'' '''--->''' ''C++ Data Types''
                    <Field>
 
                        <ows:Title>latitudinal dilution of precision</ows:Title>
 
                        <ows:Abstract>The latitudinal dilution of precision (DOPy) represents the\\012contribution of the radars'
To complete the picture, generating DAP data objects requires the finally mapping from the programming language data types in to the DAP data model:
                            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
:''Native RDBMS Data Types'' '''--->''' ''Database Connectivity API  Data Types'' '''--->''' ''C++ Data Types'' '''--->''' ''DAP Data Types''
                            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.
 
                        </ows:Abstract>
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.
                        <Identifier>DOPy</Identifier>
 
                        <dapObj:xmlContains>
 
                          <Definition>
 
                              <ows:AnyValue/>
 
                          </Definition>
=== Database Connectivity APIs ===
                        </dapObj:xmlContains>
 
                        <NullValue>-32768</NullValue>
<br/><br/>
                        <dapObj:xmlContains>
----
                          <owcs:InterpolationMethods>
----
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
==== [http://en.wikipedia.org/wiki/Open_Database_Connectivity ODBC Data Types] ====
                          </owcs:InterpolationMethods>
 
                        </dapObj:xmlContains>
<br/><br/>
                    </Field>
----
                  </dapObj:xmlContains>
----
                  <dapObj:xmlContains>
==== [http://java.sun.com/javase/technologies/database/ JDBC Data Types] ====
                    <Field>
 
                        <ows:Title>Contributing radar site latitudes</ows:Title>
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:Abstract>Contributing radar site latitudes</ows:Abstract>
:'''Database -> JDBC -> Java -> DODS'''
                        <Identifier>site_lat</Identifier>
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:
                        <dapObj:xmlContains>
 
                          <Definition>
{| align="center" border="1" cellspacing="0" width="75%"
                              <ows:AnyValue/>
|+'''Mapping from JDBC Types to DODS Types'''
                          </Definition>
! JDBC Type !! DAP Type
                        </dapObj:xmlContains>
|-
                        <NullValue>-32768</NullValue>
| TINYINT || DByte
                        <dapObj:xmlContains>
|-
                          <owcs:InterpolationMethods>
|  SMALLINT  ||    DInt16
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
|-
                          </owcs:InterpolationMethods>
|  INTEGER  ||      DInt32
                        </dapObj:xmlContains>
|-
                    </Field>
|  BIGINT  ||        DInt32  **NO SENSIBLE MAPPING (Need DInt64)
                  </dapObj:xmlContains>
|-
                  <dapObj:xmlContains>
|  REAL    ||      DFloat32
                    <Field>
|-
                        <ows:Title>Contributing radar site longitudes</ows:Title>
|  FLOAT    ||      DFloat64
                        <ows:Abstract>Contributing radar site longitudes.</ows:Abstract>
|-
                        <Identifier>site_lon</Identifier>
|  DOUBLE  ||      DFloat64
                        <dapObj:xmlContains>
|-
                          <Definition>
|  DECIMAL ||        DFloat64 **NO SENSIBLE MAPPING (Need Some Kind Monsterous Floating point value)
                              <ows:AnyValue/>
|-
                          </Definition>
|  NUMERIC ||      DFloat64 **NO SENSIBLE MAPPING (ibid)
                        </dapObj:xmlContains>
|-
                        <NullValue>-32768</NullValue>
|  BIT  ||          DBoolean
                        <dapObj:xmlContains>
|-
                          <owcs:InterpolationMethods>
|  CHAR  ||        DString
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
|-
                          </owcs:InterpolationMethods>
|  VARCHAR  ||      DString
                        </dapObj:xmlContains>
|-
                    </Field>
|    LONGVARCHAR ||    Implemented to be read into a DString, although it is a "BLOB" type  and might be better represented as a DArray(of bytes).
                  </dapObj:xmlContains>
|-
                  <dapObj:xmlContains>
|    BINARY    ||      DArray(of bytes)
                    <Field>
|-
                        <ows:Title>Contributing radar site code.</ows:Title>
|    VARBINARY    ||  DArray(of bytes)
                        <ows:Abstract>Contributing radar site code.</ows:Abstract>
|-
                        <Identifier>site_code</Identifier>
|    LONGVARBINARY ||  DArray(of bytes)
                        <dapObj:xmlContains>
|-
                          <Definition>
|    DATE    ||      DString
                              <ows:AnyValue/>
|-
                          </Definition>
|    TIME  ||        DString
                        </dapObj:xmlContains>
|-
                        <NullValue>-32768</NullValue>
|    TIMESTAMP    ||  DString
                        <dapObj:xmlContains>
|}
                          <owcs:InterpolationMethods>
 
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
=== Native SQL Data Types by Implementation ===
                          </owcs:InterpolationMethods>
 
                        </dapObj:xmlContains>
 
                    </Field>
<br/><br/>
                  </dapObj:xmlContains>
----
                  <dapObj:xmlContains>
----
                    <Field>
==== [http://www.postgresql.org/docs/8.3/interactive/datatype.html PostgreSQL Data Types] ====
                        <ows:Title>Contributing radar site network affiliation code.</ows:Title>
:'''Todo:'''
                        <ows:Abstract>Contributing radar site network affiliation code.</ows:Abstract>
::'''<font color=red> !! This section needs to be updated and otherwise corrected. !!</font>'''
                        <Identifier>site_netCode</Identifier>
 
                        <dapObj:xmlContains>
===== Boolean and Binary Types =====
                          <Definition>
{| border="1" cellspacing="0"
                              <ows:AnyValue/>
! Data Type  !! Description !! Standardization || Logical DAP data type association.
                          </Definition>
|-
                        </dapObj:xmlContains>
| boolean, bool ||  A single true or false value. || SQL99 || Boolean
                        <NullValue>-32768</NullValue>
|-
                        <dapObj:xmlContains>
| bit(n) || An n -length bit string (exactly n binary bits). || SQL92 || ''None''
                          <owcs:InterpolationMethods>
|-
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
| bit varying(n), varbit(n) || A variable n -length bit string (up to n binary bits) || SQL92 || ''None''
                          </owcs:InterpolationMethods>
|}
                        </dapObj:xmlContains>
 
                    </Field>
===== Character Types =====
                  </dapObj:xmlContains>
{| border="1" cellspacing="0"
                  <dapObj:xmlContains>
! Data Type  !! Description !! Storage !! Standardization || Logical DAP data type association.
                    <Field>
|-
                        <ows:Title>RTV processing parameters</ows:Title>
| character (n ), char(n ) ||A fixed n -length character string.|| (4+n) bytes|| SQL89 || String
                        <ows:Abstract>Contributing radar site network affiliation code.</ows:Abstract>
|-
                        <Identifier>procParams</Identifier>
| character varying(n), varchar(n) || A variable length character string of up to n characters. || Up to (4+n) bytes || SQL92 || String
                        <dapObj:xmlContains>
|-
                          <Definition>
| text || A variable length character string, of unlimited length. || Variable || PostgreSQL-specific || String
                              <ows:AnyValue/>
|}
                          </Definition>
 
                        </dapObj:xmlContains>
===== Numeric Types =====
                        <NullValue>-32768</NullValue>
{| border="1" cellspacing="0"
                        <dapObj:xmlContains>
! Data Type  !! Description !! Storage !! Standardization || Logical DAP data type association.
                          <owcs:InterpolationMethods>
|-
                              <owcs:DefaultMethod>nearest</owcs:DefaultMethod>
| smallint, int2 || A signed 2-byte integer || 2 bytes || SQL89 || Int16
                          </owcs:InterpolationMethods>
|-
                        </dapObj:xmlContains>
| integer, int, int4 || A signed, fixed-precision 4-byte number. || 4 bytes || SQL92 || Int32
                    </Field>
|-
                  </dapObj:xmlContains>
| bigint, int8 || A signed 8-byte integer, up to 18 digits in length. || 8 bytes || PostgreSQL-specific || ''None (Need Int64)''
              </Range>
|-
            </dapObj:xmlContains>
| real, float4 || A 4-byte floating point number. || 4 bytes ||  SQL89 || Float32
            <SupportedCRS>urn:ogc:def:crs:EPSG::4326</SupportedCRS>
|-
            <SupportedFormat>netcdf-cf1.0</SupportedFormat>
| double precision, float8, float || An 8-byte floating point number || 8 bytes || SQL89 || Float64
            <SupportedFormat>dap2.0</SupportedFormat>
|-
        </CoverageDescription>
| numeric(p,s), decimal(p,s) || An exact numeric type with arbitrary precision p, and scale s. || Variable || SQL99 || ''None''
      </dapObj:type>
|-
      <att:site_code xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
| money || A fixed precision, U.S.-style currency. || 4 bytes || PostgreSQL-specific, deprecated. || ''None''
                    rdf:parseType="Resource">
|-
        <att:long_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Contributing radar site code</att:long_name>
| serial || An auto-incrementing 4-byte integer. || 4 bytes || PostgreSQL-specific. || ''None''
      </att:site_code>
|}
      <att:site_netCode xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
 
                        rdf:parseType="Resource">
===== Date and Time Types =====
        <att:long_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Contributing radar site network affiliation code</att:long_name>
{| border="1" cellspacing="0"
      </att:site_netCode>
! Data Type  !! Description !! Storage !! Standardization || Logical DAP data type association.
      <att:NC_GLOBAL xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|-
                    rdf:parseType="Resource">
| date || A calendar date (day, month, year). || 4 bytes ||  SQL92 || ''String''
        <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>
|-
        <att:format_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">HFRNet_1.0.0b2</att:format_version>
| time || The time of day. || 4 bytes || SQL92 || ''String''
        <att:product_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">HFRNet_1.1.01</att:product_version>
|-
        <att:Conventions rdf:datatype="http://www.w3.org/2001/XMLSchema#string">CF-1.1</att:Conventions>
| time with time zone || The time of day, including time zone information. || 4 bytes || SQL92 || ''String''
        <att:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Near-Real Time Surface Ocean Velocity</att:title>
|-
        <att:institution rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Scripps Institution of Oceanography</att:institution>
| timestamp (includes time zone) || Both date and time. || 8 bytes || SQL92 || ''String''
        <att:source rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Surface Ocean HF-Radar</att:source>
|-
        <att:history rdf:datatype="http://www.w3.org/2001/XMLSchema#string">12-Mar-2008 22:26:19: NetCDF file created</att:history>
| interval || An arbitrary specified length of time || 12 bytes || SQL92 || ''String''
        <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.
 
            </att:references>
===== Geometric Types =====
        <att:creator_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Mark Otero</att:creator_name>
{| border="1" cellspacing="0"
        <att:creator_email rdf:datatype="http://www.w3.org/2001/XMLSchema#string">motero@mpl.ucsd.edu</att:creator_email>
! Data Type  !! Description !! Storage !! Standardization || Logical DAP data type association.
        <att:creator_url rdf:datatype="http://www.w3.org/2001/XMLSchema#string">http://cordc.ucsd.edu/projects/mapping/</att:creator_url>
|-
        <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
| box || A rectangular box in a 2D plane. || 32 bytes || PostgreSQL-specific || ''None'' ([2][2] Array of Float32)
                of the\\012ocean. The main objective of near-real time\\012processing is to produce the best product
|-
                from\\012available data at the time of processing. Radial\\012velocity measurements are obtained from
| line || An infinite line in a 2D plane. || ?? bytes || PostgreSQL-specific || ''None'' ([2][2] Array of Float32)
                individual\\012radar sites through the HF-Radar Network and\\012processed to create near-real time
|-
                velocities\\012(RTVs)
| lineseg ||A finite line segment in a 2D plane. || 32 bytes ||  PostgreSQL-specific || ''None'' ([2][2] Array of Float32)
            </att:summary>
|-
        <att:geospatial_lat_min rdf:datatype="http://www.w3.org/2001/XMLSchema#float">21.73596001</att:geospatial_lat_min>
| circle || A circle with center and radius. || 24 bytes || PostgreSQL-specific || ''None'' ([3]Array of Float32)
        <att:geospatial_lat_max rdf:datatype="http://www.w3.org/2001/XMLSchema#float">46.49441910</att:geospatial_lat_max>
|-
        <att:geospatial_lon_min rdf:datatype="http://www.w3.org/2001/XMLSchema#float">-97.88385010</att:geospatial_lon_min>
| path ||  Open and closed geometric paths in a two-dimensional plane . || 4+32*n  bytes || PostgreSQL-specific || ''None'' (Array of Float32)
        <att:geospatial_lon_max rdf:datatype="http://www.w3.org/2001/XMLSchema#float">-57.23120880</att:geospatial_lon_max>
|-
        <att:grid_resolution rdf:datatype="http://www.w3.org/2001/XMLSchema#string">6km</att:grid_resolution>
| point || geometric point in a 2D plane || 16 bytes || PostgreSQL-specific || ''None''  ([2] Array of Float32)
        <att:grid_projection rdf:datatype="http://www.w3.org/2001/XMLSchema#string">equidistant cylindrical</att:grid_projection>
|-
        <att:regional_description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Unites States, East and Gulf Coast</att:regional_description>
| polygon || A closed geometric path in a 2D plane || 4+32*n bytes || PostgreSQL-specific || ''None'' (Array of Float32)
      </att:NC_GLOBAL>
|}
      <att:DODS_EXTRA xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
 
                      rdf:parseType="Resource">
===== Network Types =====
        <att:Unlimited_Dimension rdf:datatype="http://www.w3.org/2001/XMLSchema#string">time</att:Unlimited_Dimension>
{| border="1" cellspacing="0"
      </att:DODS_EXTRA>
! Data Type  !! Description !! Standardization || Logical DAP data type association.
      <dapObj:isContainerOf>
|-
        <dap:Int32 rdf:ID="time">
| cdir || An IP network specification || PostgreSQL-specific || ''None''
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|-
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">time</att:standard_name>
| inet || A network IP address, with optional subnet bits. || PostgreSQL-specific || ''None''
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|-
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">seconds since 1970-01-01</att:units>
| macaddr || A MAC address (e.g., an Ethernet card's hardware address). || PostgreSQL-specific || ''None''
            <att:calendar xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|}
                          rdf:datatype="http://www.w3.org/2001/XMLSchema#string">gregorian</att:calendar>
 
            <dapObj:hasDimensions rdf:parseType="Collection">
===== System  Types =====
              <dap:dimension>
{| border="1" cellspacing="0"
                  <dapObj:size>1</dapObj:size>
! Data Type  !! Description !! Standardization || Logical DAP data type association.
                  <dapObj:name>time</dapObj:name>
|-
              </dap:dimension>
| oid || An object (row) identifier. || PostgreSQL-specific || ''None''
            </dapObj:hasDimensions>
|-
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">time</dapObj:localId>
| xid || A transaction identifier  || PostgreSQL-specific || ''None''
        </dap:Int32>
|}
      </dapObj:isContainerOf>
<br /><br />
      <dapObj:isContainerOf>
----
        <dap:Float32 rdf:ID="lat">
----
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
==== [http://msdn.microsoft.com/en-us/library/ms187752.aspx Transact-SQL (Microsoft)] ====
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">latitude</att:standard_name>
:'''Todo:'''
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
::'''<font color=red> !! This section needs to be updated and otherwise corrected. !!</font>'''
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">degrees_north</att:units>
 
            <dapObj:hasDimensions rdf:parseType="Collection">
{| border="1" cellspacing="0"
              <dap:dimension>
!Type !! Description !! Storage Bytes !! DAP equiv.
                  <dapObj:size>460</dapObj:size>
|-  
                  <dapObj:name>lat</dapObj:name>
|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
              </dap:dimension>
|-
            </dapObj:hasDimensions>
|int ||Integer (whole number) data from -2^31 (-2,147,483,648) through 2^31 - 1 (2,147,483,647). || 4 bytes ||
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">lat</dapObj:localId>
|-
        </dap:Float32>
|numeric || Functionally equivalent to decimal. || ||
      </dapObj:isContainerOf>
|-
      <dapObj:isContainerOf>
|decimal || Fixed precision and scale numeric data from -10^38 +1 through 10^38 –1. || ||
        <dap:Float32 rdf:ID="lon">
|-
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
| bit || Integer data with either a 1 or 0 value  || ||
                              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#"
|smallint || Integer data from -2^15 (-32,768) through 2^15 - 1 (32,767). ||  2 bytes ||
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">degrees_east</att:units>
|-
            <dapObj:hasDimensions rdf:parseType="Collection">
|tinyint || Integer data from 0 through 255  || 1 bytes||
              <dap:dimension>
|-  
                  <dapObj:size>701</dapObj:size>
| smallmoney  || Monetary data values from -214,748.3648 through +214,748.3647, with accuracy to a ten-thousandth of a monetary unit. ||  ||
                  <dapObj:name>lon</dapObj:name>
|-
              </dap:dimension>
| 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. || ||
            </dapObj:hasDimensions>
|-
            <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">lon</dapObj:localId>
| 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 ||
        </dap:Float32>
|-
      </dapObj:isContainerOf>
| 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>
|-
        <dap:Grid rdf:ID="u">
| date  || ||  ||
            <att:standard_name xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|-
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#string">surface_eastward_sea_water_velocity</att:standard_name>
| datetimeoffset  || ||  ||
            <att:units xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|-  
                      rdf:datatype="http://www.w3.org/2001/XMLSchema#string">m s-1</att:units>
| datetime2  || ||  ||
            <att:_FillValue xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|-
                            rdf:datatype="http://www.w3.org/2001/XMLSchema#short">-32768</att:_FillValue>
| smalldatetime  || Date and time data from January 1, 1900, through June 6, 2079, with an accuracy of one minute. ||  ||
            <att:scale_factor xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|-
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.009999999776</att:scale_factor>
| 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. ||  ||
            <att:ancillary_variables xmlns:att="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#"
|-
                                    rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPx</att:ancillary_variables>
| time  || ||  ||
            <dapObj:isContainerOf>
|-
              <dap:Int16 rdf:ID="u.u">
| char  || Fixed-length non-Unicode character data with a maximum length of 8,000 characters. ||  ||
                  <dapObj:hasDimensions rdf:parseType="Collection">
|-
                    <dap:dimension>
| varchar  || Variable-length non-Unicode data with a maximum of 8,000 characters. ||  ||
                        <dapObj:size>1</dapObj:size>
|-
                        <dapObj:name>time</dapObj:name>
| next  || Variable-length non-Unicode data with a maximum length of 2^31 - 1 (2,147,483,647) characters ||  ||
                    </dap:dimension>
|-
                    <dap:dimension>
| nchar  || Fixed-length Unicode data with a maximum length of 4,000 characters  ||  ||
                        <dapObj:size>460</dapObj:size>
|-
                        <dapObj:name>lat</dapObj:name>
| 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. ||  ||
                    </dap:dimension>
|-
                    <dap:dimension>
| ntext  || Variable-length Unicode data with a maximum length of 2^30 - 1 (1,073,741,823) characters.  ||  ||
                        <dapObj:size>701</dapObj:size>
|-
                        <dapObj:name>lon</dapObj:name>
| binary  || Fixed-length binary data with a maximum length of 8,000 bytes. ||  ||
                    </dap:dimension>
|-
                  </dapObj:hasDimensions>
| varbinary  || Variable-length binary data with a maximum length of 8,000 bytes. ||  ||
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">u.u</dapObj:localId>
|-
              </dap:Int16>
| image  || Variable-length binary data with a maximum length of 2^31 - 1 (2,147,483,647) bytes. ||  ||
            </dapObj:isContainerOf>
|-
            <dapObj:hasMap>
| cursor  || A reference to a cursor.||  ||
              <dap:Int32 rdf:ID="u.time">
|-
                  <dapObj:hasDimensions rdf:parseType="Collection">
| timestamp  || A database-wide unique number that gets updated every time a row gets updated. ||  ||
                    <dap:dimension>
|-
                        <dapObj:size>1</dapObj:size>
| hierarchyid  || ||  ||
                        <dapObj:name>time</dapObj:name>
|-
                    </dap:dimension>
| uniquieidentifier  || A globally unique identifier (GUID). ||  ||
                  </dapObj:hasDimensions>
|-
                  <dapObj:localId rdf:datatype="http://www.w3.org/2001/XMLSchema#string">u.time</dapObj:localId>
| sql_variant  || ||  ||
              </dap:Int32>
|-  
            </dapObj:hasMap>
| xml  || ||  ||
            <dapObj:hasMap>
|-  
              <dap:Float32 rdf:ID="u.lat">
| table  || ||  ||
                  <dapObj:hasDimensions rdf:parseType="Collection">
|}
                    <dap:dimension>
 
                        <dapObj:size>460</dapObj:size>
== Template ==
                        <dapObj:name>lat</dapObj:name>
==== Types ====
                    </dap:dimension>
{| border="1" cellspacing="0"
                  </dapObj:hasDimensions>
! Data Type  !! Description !! Standardization || Logical DAP data type association.
                  <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.lon">
|-
                  <dapObj:hasDimensions rdf:parseType="Collection">
|
                    <dap:dimension>
|}
                        <dapObj:size>701</dapObj:size>
 
                        <dapObj:name>lon</dapObj:name>
== Desired Features ==
                    </dap:dimension>
 
                  </dapObj:hasDimensions>
== Implementation Target ==
                  <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#"
                              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#"
                      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#"
                            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#"
                              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#"
                                    rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOPy</att:ancillary_variables>
            <dapObj:isContainerOf>
              <dap:Int16 rdf:ID="v.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.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.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.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#"
                          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#"
                        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#"
                            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#"
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.009999999776</att:scale_factor>
            <dapObj:isContainerOf>
              <dap:Int16 rdf:ID="DOPx.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.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.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.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#"
                          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#"
                        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#"
                            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#"
                              rdf:datatype="http://www.w3.org/2001/XMLSchema#float">0.009999999776</att:scale_factor>
            <dapObj:isContainerOf>
              <dap:Int16 rdf:ID="DOPy.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.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.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.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#"
                          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#"
                              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#"
                      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#"
                          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#"
                              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#"
                      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#"
                          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#"
                        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#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#_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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://localhost:8080/opendap/coverage/200803061600_HFRadar_USEGC_6km_rtv_SIO.nc.ddx/att#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"/>
  </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