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

docs: explain the interval-prop more precisely (DEV-566) #162

Merged
merged 1 commit into from Feb 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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