This represents an interval from the UK Government intervals ontology.

interval(uri)

is_interval(x)

Arguments

uri

A character vector of URIs

x

An interval

Value

An S3 vector of class ldf_interval.

Details

is_interval returns TRUE if x is an interval and FALSE otherwise.

Examples

year <- interval("http://reference.data.gov.uk/id/year/2020") is_interval(year)
#> [1] TRUE
month <- interval("http://reference.data.gov.uk/id/month/2020-07") day <- interval("http://reference.data.gov.uk/id/day/2020-04-22") p7d <- interval("http://reference.data.gov.uk/id/gregorian-interval/2020-04-27T00:00:00/P7D")