Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intervals #21

Open
SiBell opened this issue Feb 12, 2020 · 1 comment
Open

Intervals #21

SiBell opened this issue Feb 12, 2020 · 1 comment
Labels
needs-documenting Need to document the outcome

Comments

@SiBell
Copy link
Contributor

SiBell commented Feb 12, 2020

So many of us will be dealing with observations that apply to a time interval rather than a single instance in time. It's worth confirming how we handle these.

An example would be precipitation accumulation from a rain gauge. It's not enough to say 3 mm of rain was recorded at 10:40 pm, we need to know whether that 3 mm was collected over the last minute, or hour, or day, etc...

The Time Ontology makes the distinction between a Time Instant and a Time Interval.

This article also has some nice meteorological examples showing which observedProperty's would be instant and which would be interval.

This SSN Example also makes use of a Time Interval. Using this as a basis, an observation of precipitation accumulation could therefore be structured as:

{ 
  "madeBySensor": "rain-gauge-no-3",
  "observedProperty": "precipitation-accumulation",
  "resultTime": "2020-02-12T11:30:00.000Z",
  "phenomenonTime": {
    "hasBeginning": "2020-02-12T11:00:00.000Z"
    "hasEnd": "2020-02-12T11:30:00.000Z"
  },
  "hasResult": {
    "value": 3
  }
}

N.b. I haven't made this example JSON-LD compliant, but I should have.

@lukeshope
Copy link
Member

Just to say, I agree with this proposal. It appears in one of the SSN examples too.

@lukeshope lukeshope added the needs-documenting Need to document the outcome label Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-documenting Need to document the outcome
Projects
None yet
Development

No branches or pull requests

2 participants