Additional Examples of Working with Content Types

The following examples decribe how to work with the supported content types in a composite resource. To learn more about Content Types, first read Setting Content Type and Extraction of Content Metadata.

Single File

A text file GSL_south_arm.txt has been added to a resource.


Conversion of this to Single File content type is by right clicking and selecting Add metadata to file.

This now appears in HydroShare as Single File Content, a single file with file specific metadata.

The Content Metadata tab can now be used to add metadata specific to the file, such as Title, Keywords and Coverage Information.

At the resource level, Set Spatial coverage from content files, propagates the file level spatial coverage up to the resource.

Geographic Raster from single geotiff file

A single geotiff file is added to a composite resource by dragging into the content area.


HydroShare recognizes this as a geotiff raster file and automatically converts it into Geographic Raster Content stored in a folder depicted using a geographic raster symbol.

Inside the folder there is the original .tif file and a .vrt file.  Together these comprise the GDAL Virtual Raster object used in HydroShare to represent raster data.  


Metadata is read and set from the VRT raster object.

 

Geographic Raster from existing VRT raster object

Five files comprising an existing raster represented as a VRT object are added to a composite resource.



HydroShare recognizes these as a VRT Raster and automatically converts it into Geographic Raster Content stored in a folder depicted using a geographic raster symbol.

Metadata is read and set from the VRT raster object.

Multidimensional

A composite resource is created adding a NetCDF file in the Create Resource Page.



HydroShare recognizes this as a NetCDF file and reads metadata from it, and sets the resource level Title, Abstract, Authors, Keywords and Coverage based on this metadata.  Multidimensional content is stored in a folder depicted using a multidimensional symbol.

In addition to the .nc file the multidimensional content contains header_info.txt that is the result of a NetCDF header dump (ncdump -h) of the file that may be viewed in the Content Metadata tab.

 

Time Series

A composite resource is created adding a .sqlite file in ODM2 format to an empty composite resource.  HydroShare recognizes this as a .sqlite time series file and reads metadata from it, and sets the resource level Title, Abstract, Authors, Keywords and Coverage based on this metadata.  Time series content is stored in a folder depicted using a time series symbol; the folder contains the .sqlite file.



If a csv file containing a time series is added to a composite resource, to add metadata go into edit mode, and navigate to the csv file in the Content section, and right click to convert to Time Series. This will result in a Time Series Content object that holds the original csv file and an ODM2.sqlite file with the time series. In the Content Metatdata tab, metadata for each time series read fro the CSV file can be added. 

Referenced Time Series

An empty composite resource is created and a .refts.json file holding reference information pointing to a WaterOneFlow time series is loaded. HydroShare recognizes this as a reference time series file and reads metadata from it, and sets the resource level Title, Abstract, Authors, Keywords and Coverage based on this metadata.  Reference time series content metadata is stored for the single file holding the reference information. HydroShare recognizes this as a reference time series file and reads metadata from it, and sets the resource level Title, Abstract, Authors, Keywords and Coverage based on this metadata.  Reference time series content metadata is stored for the single file holding the reference information.