DAP4: Capabilities and Versioning: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
mNo edit summary
No edit summary
Line 17: Line 17:
* Support for multiple encoding formats (media types) for each resource type
* Support for multiple encoding formats (media types) for each resource type
* Support description of server and dataset capabilities (e.g., server-side processing capabilities)
* Support description of server and dataset capabilities (e.g., server-side processing capabilities)
----
? To allow servers full control of their URL space, DAP4 URLs will be identified by their resource link type rather than their "file extension".
----


== Proposed solution ==
== Proposed solution ==


Provide server and dataset capabilities documents. A dataset's capabilities document includes links to the various OPeNDAP services for that dataset. Each link is described with a link relationship type and a media type.  
Provide dataset capabilities documents from the raw DAP dataset URL. A dataset's capabilities document includes links to the various OPeNDAP services for that dataset. Each link is described with a link relationship type and a media type. The link relationship type indicates what type of resource will be returned. The media type indicates the document type in which the returned resource will be encoded.


Providing a dataset capabilities document with links to both DAP2 and DAP4 resources allows for DAP2 backward compatibility and will support protocol extensibility and future evolution of the protocol.
Providing a dataset capabilities document with links to both DAP2 and DAP4 resources allows for DAP2 backward compatibility and will support protocol extensibility and future evolution of the protocol.
Line 61: Line 57:
* a list of the types of processing instructions supported for this dataset
* a list of the types of processing instructions supported for this dataset


===== NOTES =====
=== Other Resource Types ===


Should there be a separate server capabilities document?
==== Standard Resource Types ====


=== Other Resource Types ===
* [[#DAP4 DDX]]
* [[#DAP4 Data]]
* [[#DAP4 Constraint Expression]]
* [[#DAP4 Server Capabilities Document]]
* [[#DAP2 DAS]]
* [[#DAP2 DDS]]
* [[#DAP2 DDX]]
* [[#DAP2 Data]]
* [[#DAP2 Constraint Expression]]
 
==== Extension Resource Types ====
 
* [[#DAP4 Processing Instructions]]


=== Examples ===
=== Examples ===
Line 72: Line 80:


== Rationale for the solution ==
== Rationale for the solution ==
* Allows servers full control of their URL space
*** DAP4 URLs are identified by their link type rather than a hard wired "file extension".
*** On the other hand, file extensions can also be supported.


== Discussion ==
== Discussion ==


---
----


== Other Resource Types ==
== Other Resource Types ==
=== DAP4 DDX ===
=== DAP4 Data ===
=== DAP4 Constraint Expression ===
=== DAP4 Processing Instructions ===
=== DAP4 Server Capabilities Documents ===
=== DAP2 DAS ===
=== DAP2 DDS ===
=== DAP2 DDX ===
=== DAP2 Data ===
=== DAP2 Constraint Expression ===


== Example Capabilities Document ==
== Example Capabilities Document ==
=== Some References ===
* http://stackoverflow.com/a/385216
** Response to the question: Use "Accept" header or extension to identify resource type?
** The ideal would be to implement both.

Revision as of 23:33, 16 April 2012

<-- back to OPULS Development

--EthanDavis 13:32, 16 April 2012 (PDT)

Background

Providing OPeNDAP clients with information on the particular capabilities of a given server and given dataset has been discussed many times. Types of capabilities include supported DAP versions, supported server-side functions. Another possible capability would be support for multiple encodings of the various OPeNDAP services. Providing capabilities documents can also make it easier to plan for extensibility and the future evolution of OPeNDAP.

Negotiating versions using HTTP headers or URL keywords is described in DAP 4.0 Design doc. Advertising DAP protocol services is described in the DAP Service Terminus document.

Problem addressed

The proposal attempts to address the following requirements:

  • Support for multiple versions of DAP protocol in a backwards compatible way
  • Support for extensibility and evolution of protocol
  • Support for multiple encoding formats (media types) for each resource type
  • Support description of server and dataset capabilities (e.g., server-side processing capabilities)

Proposed solution

Provide dataset capabilities documents from the raw DAP dataset URL. A dataset's capabilities document includes links to the various OPeNDAP services for that dataset. Each link is described with a link relationship type and a media type. The link relationship type indicates what type of resource will be returned. The media type indicates the document type in which the returned resource will be encoded.

Providing a dataset capabilities document with links to both DAP2 and DAP4 resources allows for DAP2 backward compatibility and will support protocol extensibility and future evolution of the protocol.

Raw DAP Dataset URLs Return Capabilities Documents

http://server.org/some/path/data.nc

A GET request on a DAP dataset URL returns the capabilities document for the dataset. To take advantage of web caching, capabilities Document should try to be light weight (i.e., quick creation) and as stable as possible.

Link Relationship Type

http://opendap.org/rel/dap/dataset

The URL of a link with this relation type can be used to GET the dataset capabilities document for the dataset.

Possible Media Types

  • application/vnd.opendap.org.capabilities+xml
  • application/vnd.opendap.org.capabilities+json
  • application/vnd.opendap.org.capabilities+pbuf

A capabilities resource must contain a server section and a dataset section.

The server section should include

  • a link to the full server capabilities document (if applicable)
  • a list of the DAP versions the server supports
  • the implementation version (e.g., "TDS 4.3.57" or "Hyrax 1.7.45")
  • a list of extensions the server supports

The dataset section should include

  • a link to the full dataset capabilities document (this document)
  • links for all resource types for each supported version
  • a list of extensions the dataset supports
  • a list of the types of constraint expressions supported for this dataset
  • a list of the types of processing instructions supported for this dataset

Other Resource Types

Standard Resource Types

Extension Resource Types

Examples

See below.

Rationale for the solution

  • Allows servers full control of their URL space
      • DAP4 URLs are identified by their link type rather than a hard wired "file extension".
      • On the other hand, file extensions can also be supported.


Discussion


Other Resource Types

DAP4 DDX

DAP4 Data

DAP4 Constraint Expression

DAP4 Processing Instructions

DAP4 Server Capabilities Documents

DAP2 DAS

DAP2 DDS

DAP2 DDX

DAP2 Data

DAP2 Constraint Expression

Example Capabilities Document

Some References