Skip to content

Commit 8dbd8fb

Browse files
committed
CHANGE: relax timestamp requirements
1 parent eeda7d5 commit 8dbd8fb

11 files changed

Lines changed: 87 additions & 119 deletions

File tree

schemas/Bundle.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,11 @@ properties:
1919

2020
dateCreated:
2121
title: Date Created
22-
type: string
23-
description: The date and optionally time that this Bundle was created.
24-
anyOf:
25-
- format: date
26-
- format: date-time
22+
description: A timestamp indicating when this Bundle was created.
2723

2824
dateModified:
2925
title: Date Modified
30-
type: string
31-
description: The date and optionally time that this Bundle was last modified.
32-
anyOf:
33-
- format: date
34-
- format: date-time
26+
description: A timestamp indicating when this Bundle was last modified.
3527

3628
id:
3729
title: ID

schemas/Form.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ properties:
8484
items:
8585
$ref: https://schemas.digitallinguistics.io/DatabaseReference.json
8686

87+
dateCreated:
88+
title: Date Created
89+
description: A timestamp indicating when this Form was created.
90+
91+
dateModified:
92+
title: Date Modified
93+
description: A timestamp indicating when this Form was last modified.
94+
8795
derivedInflectionClass:
8896
title: Inflectional Class of Derived Form
8997
$ref: https://schemas.digitallinguistics.io/Category.json

schemas/Language.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,11 @@ properties:
6565

6666
dateCreated:
6767
title: Date Created
68-
type: string
69-
description: The date and optionally time that this Language object was created.
70-
anyOf:
71-
- format: date
72-
- format: date-time
68+
description: A timestamp indicating when this Language was created.
7369

7470
dateModified:
7571
title: Date Modified
76-
type: string
77-
description: The date and optionally time that this Language object was last modified.
78-
anyOf:
79-
- format: date
80-
- format: date-time
72+
description: A timestamp indicating when this Language was last modified.
8173

8274
dialects:
8375
title: 'Dialects (Database References: Language)'

schemas/Lexeme.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,11 @@ properties:
7676

7777
dateCreated:
7878
title: Date Created
79-
type: string
80-
description: The date and optionally time that this lexical item was created.
81-
anyOf:
82-
- format: date
83-
- format: date-time
79+
description: A timestamp indicating when this Lexeme was created.
8480

8581
dateModified:
8682
title: Date Modified
87-
type: string
88-
description: The date and optionally time that this lexical item was last modified.
89-
anyOf:
90-
- format: date
91-
- format: date-time
83+
description: A timestamp indicating when this Lexeme was last modified.
9284

9385
examples:
9486
title: 'Examples (Database References: Utterance)'

schemas/Location.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,11 @@ properties:
3333

3434
dateCreated:
3535
title: Date Created
36-
type: string
37-
description: 'The date and optionally time that this Location object was created.'
38-
anyOf:
39-
- format: date
40-
- format: date-time
36+
description: A timestamp indicating when this Location was created.
4137

4238
dateModified:
4339
title: Date Modified
44-
type: string
45-
description: 'The date and optionally time that this Location was last modified.'
46-
anyOf:
47-
- format: date
48-
- format: date-time
40+
description: A timestamp indicating when this Location was last modified.
4941

5042
geoJSON:
5143
title: GeoJSON Geometry Object

schemas/Media.yml

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $id: https://schemas.digitallinguistics.io/Media.json
33
title: Media File
44
type: object
55

6-
description: 'An object containing information about a media file. The file itself should be stored at the URL indicated in the `mediaURL` field. Media files generally contain primary data. Examples might include audio/video recordings, scans of archival materials, photos taken during fieldwork, or scans of field notes.'
6+
description: An object containing information about a media file. The file itself should be stored at the URL indicated in the `mediaURL` field. Media files generally contain primary data. Examples might include audio/video recordings, scans of archival materials, photos taken during fieldwork, or scans of field notes.
77

88
required:
99
- filename
@@ -13,17 +13,17 @@ properties:
1313
abbreviation:
1414
title: Abbreviation
1515
$ref: https://schemas.digitallinguistics.io/MultiLangString.json
16-
description: 'An abbreviation for referring to this file.'
16+
description: An abbreviation for referring to this file.
1717

1818
access:
1919
title: Access Conditions
2020
$ref: https://schemas.digitallinguistics.io/Access.json
21-
description: 'Access conditions for this media file.'
21+
description: Access conditions for this media file.
2222

2323
content:
2424
title: Content
2525
$ref: https://schemas.digitallinguistics.io/MultiLangString.json
26-
description: 'A description of the content of this file, optionally in multiple languages.'
26+
description: A description of the content of this file, optionally in multiple languages.
2727

2828
contentType:
2929
title: MIME Content Type
@@ -34,42 +34,30 @@ properties:
3434
title: 'Creator (Database Reference: Person)'
3535
type: object
3636
$ref: https://schemas.digitallinguistics.io/DatabaseReference.json
37-
description: 'A database reference to the person who created/recorded this media file (not necessarily the person speaking in the file).'
37+
description: A database reference to the person who created/recorded this media file (not necessarily the person speaking in the file).
3838

3939
dateCreated:
4040
title: Date Created
41-
type: string
42-
description: 'The date and optionally time that this metadata object was originally created. *Not* the date the media file was created. For that, see the `dateRecorded` property.'
43-
anyOf:
44-
- format: date
45-
- format: date-time
41+
description: A timestamp indicating when this Media metadata object was created. *Not* the time when the media file was created. For that, see the `dateRecorded` property.
4642

4743
dateModified:
4844
title: Date Modified
49-
type: string
50-
description: 'The date and optionally time that this metadata was last modified. *Not* the date that the media file was modified.'
51-
anyOf:
52-
- format: date
53-
- format: date-time
45+
description: A timestamp indicating when this Media metadata object was last modified.
5446

5547
dateRecorded:
5648
title: Date Recorded
57-
type: string
58-
description: 'The date and optionally time that this media file was recorded or photographed. Or, if the file is a scan of field notes, the date that the scan was made. *Not* the date that this metadata object was created. For that, see the `dateCreated` property.'
59-
anyOf:
60-
- format: date
61-
- format: date-time
49+
description: A timestamp indicating when this media file was recorded or photographed. Or, if the file is a scan of field notes, the date that the scan was made. *Not* the date that this metadata object was created. For that, see the `dateCreated` property.
6250

6351
endTime:
6452
title: End Time
6553
type: number
6654
minimum: 0.001
67-
description: 'Within an audiovisual file, the time at which the relevant linguistic data ends. Programs may use this field in different ways. For example, if the camera recorded for five minutes after the speaker finished talking, the `End Time` would be the time 5 minutes before the end of the file. The time stamp should be in seconds and milliseconds, separated by a period, e.g. `12.573`, or `1.234`, or `167.780`, etc.'
55+
description: Within an audiovisual file, the time at which the relevant linguistic data ends. Programs may use this field in different ways. For example, if the camera recorded for five minutes after the speaker finished talking, the `End Time` would be the time 5 minutes before the end of the file. The time stamp should be in seconds and milliseconds, separated by a period, e.g. `12.573`, or `1.234`, or `167.780`, etc.
6856

6957
filename:
7058
title: Filename
7159
type: string
72-
description: 'The filename for this media item without spaces, but including the extension.'
60+
description: The filename for this media item without spaces, but including the extension.
7361

7462
format:
7563
title: Format (File Extension)
@@ -78,70 +66,70 @@ properties:
7866

7967
id:
8068
title: ID
81-
description: A unique database identifier for this Media Item
69+
description: A unique database identifier for this Media Item.
8270

8371
key:
8472
title: Key
85-
description: 'A unique human-readable identifier (typically a string) for this item, intended for use by software implementers as a dependable, stable way to refer to this language.'
73+
description: A unique human-readable identifier (typically a string) for this item, intended for use by software implementers as a dependable, stable way to refer to this language.
8674

8775
languages:
8876
title: 'Languages (Database References: Language)'
8977
type: array
9078
uniqueItems: true
91-
description: 'An array of the languages that are used in this media file.'
79+
description: An array of the languages that are used in this media file.
9280
items:
9381
$ref: https://schemas.digitallinguistics.io/DatabaseReference.json
9482

9583
length:
9684
title: Length (in Time / Pages)
9785
type: number
9886
minimum: 0.001
99-
description: 'The length of the file, in seconds and milliseconds if an audio/video file (in `SS.MMM` format), or pages if a document.'
87+
description: The length of the file, in seconds and milliseconds if an audio/video file (in `SS.MMM` format), or pages if a document.
10088

10189
link:
10290
title: Link
10391
type: string
10492
format: uri
105-
description: 'A URL where a presentational format for this resource may be viewed.'
93+
description: A URL where a presentational format for this resource may be viewed.
10694

10795
location:
10896
title: Location (Database Reference)
10997
type: object
11098
$ref: https://schemas.digitallinguistics.io/DatabaseReference.json
111-
description: 'A database reference to the location where the content in this media file was recorded or produced.'
99+
description: A database reference to the location where the content in this media file was recorded or produced.
112100

113101
mediaURL:
114102
title: Media URL
115103
type: string
116104
format: uri
117-
description: 'The URL where the media file can be found.'
105+
description: The URL where the media file can be found.
118106

119107
notes:
120108
title: Notes
121109
type: array
122110
uniqueItems: true
123-
description: 'A collection of notes about this media item.'
111+
description: A collection of notes about this media item.
124112
items:
125113
$ref: https://schemas.digitallinguistics.io/Note.json
126114

127115
original:
128116
title: Original Media Item
129117
type: string
130118
format: uri
131-
description: 'The URL of the Media object (*not* the URL to the media file itself) that this file is derived from. Useful if you have created an edited version of a file or converted it to another format.'
119+
description: The URL of the Media object (*not* the URL to the media file itself) that this file is derived from. Useful if you have created an edited version of a file or converted it to another format.
132120

133121
people:
134122
title: 'Persons in File (Database References: Person)'
135123
type: array
136124
uniqueItems: true
137-
description: 'A list of all the people who appear in this file. Often a list of speakers.'
125+
description: A list of all the people who appear in this file. Often a list of speakers.
138126
items:
139127
$ref: https://schemas.digitallinguistics.io/DatabaseReference.json
140128

141129
size:
142130
title: File Size
143131
type: integer
144-
description: 'The size of the file, in bytes.'
132+
description: The size of the file, in bytes.
145133

146134
startTime:
147135
title: Start Time
@@ -152,20 +140,20 @@ properties:
152140
tags:
153141
title: Tags
154142
$ref: https://schemas.digitallinguistics.io/Tags.json
155-
description: 'A set of tags for this media item.'
143+
description: A set of tags for this media item.
156144

157145
type:
158146
title: Type
159147
type: string
160148
const: Media
161149
readOnly: true
162-
description: 'The type of object. Must be set to `Media`.'
150+
description: The type of object. Must be set to `Media`.
163151

164152
url:
165153
title: URL
166154
type: string
167155
format: uri
168-
description: 'The URL where this media data can be retrieved. *NOT* the URL of the media file itself (for that, see the `mediaURL` attribute).'
156+
description: The URL where this media data can be retrieved. *NOT* the URL of the media file itself (for that, see the `mediaURL` attribute).
169157

170158
examples:
171159

schemas/Note.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,11 @@ properties:
1717

1818
dateCreated:
1919
title: Date Created
20-
type: string
21-
description: The date and optionally time that this note was created.
22-
anyOf:
23-
- format: date
24-
- format: date-time
20+
description: A timestamp indicating when this Note was created.
2521

2622
dateModified:
2723
title: Date Modified
28-
type: string
29-
description: The date and optionally time that this note was last modified.
30-
anyOf:
31-
- format: date
32-
- format: date-time
24+
description: A timestamp indicating when this Note was last modified.
3325

3426
language:
3527
title: Note Language

schemas/Orthography.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ properties:
1616
$ref: https://schemas.digitallinguistics.io/MultiLangString.json
1717
description: An abbreviation for this Orthography.
1818

19+
dateCreated:
20+
title: Date Created
21+
description: A timestamp indicating when this Orthography was created.
22+
23+
dateModified:
24+
title: Date Modified
25+
description: A timestamp indicating when this Orthography was last modified.
26+
1927
direction:
2028
title: Text Direction
2129
type: string

schemas/Person.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ properties:
3131
$ref: https://schemas.digitallinguistics.io/DatabaseReference.json
3232
description: "A database reference to this person's place of birth, as a Location object."
3333

34+
dateCreated:
35+
title: Date Created
36+
description: A timestamp indicating when this Person object was created.
37+
38+
dateModified:
39+
title: Date Modified
40+
description: A timestamp indicating when this Person object was last modified.
41+
3442
email:
3543
title: Email
3644
type: string

schemas/Sense.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ properties:
3333
$ref: https://schemas.digitallinguistics.io/Category.json
3434
description: The lexical category, part of speech, or morphosyntactic class for this Lexeme, optionally in multiple languages. If the current lexeme is an affix or other grammatical morpheme where a `category` property doesn't always make sense, this property may be omitted.
3535

36+
dateCreated:
37+
title: Date Created
38+
description: A timestamp indicating when this Sense was created.
39+
40+
dateModified:
41+
title: Date Modified
42+
description: A timestamp indicating when this Sense was last modified.
43+
3644
definition:
3745
title: Definition
3846
$ref: https://schemas.digitallinguistics.io/MultiLangString.json

0 commit comments

Comments
 (0)