Skip to content
@uri-templates-time

uri-templates-time

URI-templates

URI-templates are what we call the convention for encoding times within a formatted string, typically the names of data files or images. For example the file 2024-09-17.dat is understood using the URI template $Y-$m-$d.dat to represent the data collected on September 17, 2024. While this simple example could be handled with the unix date command, this specification supports various odd cases found in Space Physics data handling.

This is a repository of tools and tests for URI templates. Reference implementations are provided for Java, JavaScript, and Python.

Specification: https://github.com/uri-templates-time/uri-templates/wiki/Specification

Wiki Page: https://github.com/uri-templates-time/uri-templates/wiki

The files formatting.json and parsing.json can be used to run unit tests on code that implements the specification.

A useful time utilities library, TimeUtil.java, is found at https://github.com/hapi-server/client-java/blob/master/src/org/hapiserver/TimeUtil.java and its use is shown in unit tests at https://github.com/uri-templates-time/uri-templates/blob/master/UriTemplatesJava/test/org/hapiserver/TimeUtilTest.java.

Here is a list of implementations of the specification:

Name
Notes
Language URL
URI_Templates Java
reference implementation
Java https://github.com/uri-templates-time/uri-templates/tree/master/UriTemplatesJava
https://cottagesystems.com/hapi/uri_templates/doc/
Autoplot Aggregation
nearly complete for spec
Java https://autoplot.org/
URI_Templates JavaScript JavaScript https://github.com/uri-templates-time/uri-templates/tree/master/UriTemplatesJavaScript
URI_Templates Python Python https://github.com/uri-templates-time/uri-templates/tree/master/UriTemplatesPython
URI_Templates IDL IDL Coming soon, Java bridge could be used as well.
URI_Templates Matlab Matlab This could be done as well, Java bridge could be used as well.

Note this project is not associated with https://github.com/uri-templates. This was once located at https://github.com/hapi-server/uri-templates.

Popular repositories Loading

  1. uri-templates uri-templates Public

    Repository of tools for URI templates

    Java 3

  2. .github .github Public

    Project branding page

  3. documentation documentation Public

    documentation wiki for URI Templates

Repositories

Showing 3 of 3 repositories
  • uri-templates Public

    Repository of tools for URI templates

    uri-templates-time/uri-templates’s past year of commit activity
    Java 3 Apache-2.0 0 14 0 Updated Oct 23, 2024
  • .github Public

    Project branding page

    uri-templates-time/.github’s past year of commit activity
    0 0 0 0 Updated Sep 17, 2024
  • documentation Public

    documentation wiki for URI Templates

    uri-templates-time/documentation’s past year of commit activity
    0 0 0 0 Updated Sep 13, 2024

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…