Media items associated with this lexeme, such as recordings of the word, pictures of the item the word refers to, or videos of the action being performed.
diff --git a/package.json b/package.json
index 36e78d6a..968cb86e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@digitallinguistics/spec",
- "version": "0.14.1",
+ "version": "0.14.2",
"description": "The DLx format for representing linguistic data in JSON",
"keywords": [
"DLx",
diff --git a/schemas/Lexeme.json b/schemas/Lexeme.json
index f3d4ce05..52a8aa2f 100644
--- a/schemas/Lexeme.json
+++ b/schemas/Lexeme.json
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/schema#",
- "id": "http://cdn.digitallinguistics.io/schemas/Lexeme-1.0.1.json",
+ "id": "http://cdn.digitallinguistics.io/schemas/Lexeme-1.1.0.json",
"title": "Lexeme",
"type": "object",
@@ -380,6 +380,22 @@
},
+ "media": {
+
+ "title": "Media",
+ "type": "array",
+ "description": "Media items associated with this lexeme, such as recordings of the word, pictures of the item the word refers to, or videos of the action being performed.",
+
+ "uniqueItems": true,
+
+ "items": {
+ "title": "Media Item",
+ "description": "A media item associated with this lexeme.",
+ "$ref": "http://cdn.digitallinguistics.io/schemas/Media.json"
+ }
+
+ },
+
"notes": {
"title": "Notes",
diff --git a/schemas/Media.json b/schemas/Media.json
index c9169ffd..1bc6ead9 100644
--- a/schemas/Media.json
+++ b/schemas/Media.json
@@ -1,6 +1,7 @@
{
+
"$schema": "http://json-schema.org/schema#",
- "id": "http://cdn.digitallinguistics.io/schemas/Media-1.0.1.json",
+ "id": "http://cdn.digitallinguistics.io/schemas/Media-1.1.0.json",
"title": "Media File",
"type": "object",
@@ -8,9 +9,7 @@
"required": [
"filename",
- "format",
- "languages",
- "mediaUrl"
+ "format"
],
"additionalProperties": true,
@@ -106,7 +105,7 @@
"mediaUrl": {
"title": "Media URL",
- "description": "The URL where the media file itself can be found.",
+ "description": "The URL where the media file can be found.",
"$ref": "http://cdn.digitallinguistics.io/schemas/Url.json"
},
@@ -146,12 +145,13 @@
"tags": {
"title": "Tags",
+ "description": "A set of tags for this media item",
"$ref": "http://cdn.digitallinguistics.io/schemas/Tags.json"
},
"url": {
"title": "URL",
- "description": "The URL where this media object can be retrieved. *NOT* the URL of the media file itself (for that, see the `mediaUrl` attribute).",
+ "description": "The URL where this media data can be retrieved. *NOT* the URL of the media file itself (for that, see the `mediaUrl` attribute).",
"$ref": "http://cdn.digitallinguistics.io/schemas/Url.json"
}