SPASE Registry Server
The SPASE Registry Server is a web application written in Java which providers resolver, search, render and download services for SPASE XML resource descriptions. It can also chain to other registry servers and aggregate all results, returning all matches in a self-organized network of registry servers.
Try the demonstration registry server.
The registry services then access the metadata to fulfill requests. For example, the "resolver" will locate a resource description in the metadata that matches a given resource ID. The "status" service can report on the contents of the metadata repository. Other services rely on the "resolver" service to fulfill requests. These include "downloader" which will retrieve data described by a resource description, "render" which prepares a resource description stored as XML for viewing in a web browser, and "explorer" which allows tree based navigation of the metadata respository.
The complete list of available services includes:
Most services can also be run from the command-line.
The Registry Server is packaged as a Web Application which can be installed on an application server such as Tomcat. The steps are:
- Download spase-registry-1.2.8.war
- Place the "war" file in the web apps folder on your server
If you don't have an application server or would like to try the registry servers in a testing environment the SPASE Collection contains the Registry Server in a pre-configured Jetty server which can be run on any system with Java installed.
A bare Jetty server is also available which can be upacked and the "war" file can be installed.
The resolver service locates resource descriptions by mapping the "authority" portion of a Resource ID to a location in the local files system, then using the path portion of the resource ID to locate the resource description. The "collator" tool in the Resource Tools can be used to organize a collection of resource descriptions consistant with the requirements for the resolver service.
The authorities known to the services are set in the the "authority.conf" file located in the WEB-INF/conf folder. Each line in an "authority.conf" maps an authority name to a local file system path to the metadata. The format is "authority name <Tab> path". A path that begins with a "." is relative to the installation of the registry server. Lines beginning with a "#" are considered comments and ignored.
An "authority.conf" looks something like:
# Authority name path list # Maps authority names to local paths # Relative paths begin with a dot (.) and # are relative to the service instance (root of webapp) Example ./metadata/Example
Individual services in the Registry Services Package.
A detail description of each service follows:
DownloadObtains a list of URLs associated with a resource by quering a registry server, then downloads and packages all the source files. The collection of files is packaged into a zip file and written to the output stream.
- Help: download?h=yes
- Granule Lists:
- All granules: download?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S
- Granules for August 2004: download?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&b=2004-08-01&e=2004-08-31
A graphical tree based interface to the registries.
The application calls the "resolver" service to populate and navigate through the tree.
A graphical map of connections (associations) between resource descriptions.
Try the Connection Map.
RenderRender a resource using a stylesheet.
- Help: render?h=yes
- Just resource: render?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S
- Full (recursive): render?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&f=yes
ResolverResolver retrieves a resource description for a given resource ID or generates a list of resources at a given partial reosurce ID location.
- Help: resolver?h=yes
- Tree: resolver?i=spase://Example/NumericalData&t=yes
- Resource Description:
- Just resource: resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S
- Full (recursive): resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&r=yes
- All: resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&g=yes
- All (URL): resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&u=yes
- All (size): resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&s=yes
- For August 2004: resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&g=yes&b=2004-08-01&e=2004-08-31
- For August 2004 (URL): resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&g=yes&b=2004-08-01&e=2004-08-31&u=yes
- For August 2004 (size): resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&g=yes&b=2004-08-01&e=2004-08-31&s=yes
- For August 2004 (with parent): resolver?id=spase://Example/NumericalData/Geotail/LEP/EDA.PT12S&g=yes&r=yes&b=2004-08-01&e=2004-08-31
SearchScan a registry for resources containing one or more words.
StatusStatus retrieves information about a registry.
- Help: status?h=yes
- Example 1