Skip to content

Commit

Permalink
docs: explain the interval-prop more precisely (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Feb 23, 2022
1 parent 021f05c commit 00c18dc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/dsp-tools-xmlupload.md
Expand Up @@ -547,16 +547,18 @@ Example:

### <interval-prop>

The `<interval-prop>` element is used for intervals between two decimal numbers. It must contain at least one
`<interval>` element.
The `<interval-prop>` element is used for intervals with a start and an end point on a timeline, e.g. relative to the beginning of an audio or video file.
An `<interval-prop>` must contain at least one `<interval>` element.

Attributes:

- `name`: name of the property as defined in the ontology (required)

#### &lt;interval&gt;

The `<interval>` element contains two decimals separated by a colon (`:`).
A time interval is represented by plain decimal numbers (=seconds), without a special notation for minutes and hours.
The `<interval>` element contains two decimals separated by a colon (`:`). The places before the decimal point are
seconds, and the places after the decimal points are fractions of a second.

Attributes:

Expand All @@ -567,7 +569,8 @@ Example:

```xml
<interval-prop name=":hasInterval">
<interval>1.5:3.12</interval>
<interval>60.5:120.5</interval> <!-- 0:01:00.5 - 0:02:00.5 -->
<interval>61:3600</interval> <!-- 0:01:01 - 1:00:00 -->
</interval-prop>
```

Expand Down

0 comments on commit 00c18dc

Please sign in to comment.