semops-placetime
Copyright 2026 Peter Winstanley

This crate is a Rust rewrite of IntervalServer, the servlet that served the interval and
instant URI sets at reference.data.gov.uk:

    https://github.com/epimorphics/IntervalServer
    Copyright 2010-2016 Epimorphics Limited
    Licensed under the Apache License, Version 2.0

No Java source was copied. The rewrite keeps IntervalServer's URI patterns (/id/... and
/doc/..., the British and Gregorian calendar sets, gregorian-instant and gregorian-interval),
its use of the reference.data.gov.uk intervals vocabulary, OWL-Time and SCOVO, and the wording
of its labels and comments.

Changes from IntervalServer:

- The base URI is https://{Host}/ by default, or a configured base; IntervalServer used the
  servlet's own root or a configured hard base.
- The UK government business calendar (government-year, government-half, government-quarter,
  government-week) is not implemented.
- A proleptic Julian calendar set (julian-year ... julian-second) is added, in the same pattern
  as the Gregorian set.
- A WGS84 point URI set is added: /id/geopoint/wgs84/X{longitude}Y{latitude}, following the
  placetime.com pattern, described with GeoSPARQL and the W3C Basic Geo vocabulary.
- Corrected: a half year's xsd:duration is P6M (IntervalServer gave PT1S); the previous hour of
  an hour is one hour earlier (IntervalServer gave the same hour a day earlier); a week's label
  names its own calendar (IntervalServer always said "Gregorian Week"); "fourth", not "forth".
- Documents describe themselves without IntervalServer's provenance block, which named
  data.gov.uk as publisher and claimed Crown copyright under the Open Government Licence.
  Those claims belonged to that deployment and are not repeated here.
- JSON is served as JSON-LD.

The reference.data.gov.uk ontology files bundled in IntervalServer (intervals.n3/.ttl/.rdf,
reference.n3, uri-set.n3) and its copy of the VoID vocabulary are not included. Only the
vocabularies' IRIs are used.

The placetime ontology (ontology/placetime.ttl) and its SHACL shapes
(ontology/placetime-shapes.ttl) are new in this crate and do not derive from IntervalServer.
The ontology extends gist, Semantic Arts' upper ontology, a copy of which is bundled:

    ontology/gist/gistCore14.1.0.ttl
    gist 14.1.0, released 17 April 2026, unchanged
    https://github.com/semanticarts/gist
    By Semantic Arts, licensed under the Creative Commons Attribution 4.0 International
    licence: https://creativecommons.org/licenses/by/4.0/
    SHA-256 7476f1d2ad7cd7117009dd8b5dc8a1b88a4c38cfbd6346ea8be3bc4dd1fffee0

It is bundled so that the ontology's owl:imports resolves without a network, and so that the
tests can check every term a gist description uses against the release it names.

The unit and aspect of a duration come from the gist reference data, the starter set of
which is bundled beside it:

    ontology/gist/uomReferenceData-starter-set.ttl
    gistReferenceData 1.0.0 (tag v1.0.0, commit eb17a5a86c31de9d2bb988add7c3698c96f26aa1),
    Data/uomReferenceData-starter-set.ttl, unchanged
    https://github.com/semanticarts/gistReferenceData
    By Semantic Arts, licensed under the Creative Commons Attribution 4.0 International
    licence: https://creativecommons.org/licenses/by/4.0/
    Much of it derives from QUDT (https://qudt.org), as its README acknowledges.
    SHA-256 06747239a2ddd334f2a85da0075ae8bae976294e890f92628abcd4da862ebf32

The ontology repeats four statements the reference data makes about the second (its type,
label, conversion factor and unit group), as gist itself repeats the aspects its
restrictions use.
