diff --git a/moochub-schema.json b/moochub-schema.json index 82b728a..d38a2f2 100644 --- a/moochub-schema.json +++ b/moochub-schema.json @@ -5,6 +5,26 @@ "description": "This schema specifies the JSON format each MOOC provider must offer in order to be integrated into moochub.org", "type": "object", "$defs": { + "LocalizedContent": { + "title": "Localized Content", + "description": "A localized content string with a language code and media type", + "type": "object", + "properties": { + "contentMediaType": { + "enum": [ + "text/plain", + "text/html", + "text/markdown" + ] + }, + "content": { + "$ref": "https://w3id.org/kim/amb/draft/schemas/localizedString.json" + } + }, + "required": [ + "contentMediaType" + ] + }, "LearningResourceType": { "type": "object", "description": "The learning resource type as listed at https://w3id.org/kim/hcrt/scheme. This describes the resource according to HCRT (Higher Education Resource Type).", @@ -407,7 +427,7 @@ "Use Privacy Policy" ], "items": { - "type": "string" + "$ref": "#/$defs/MultilingualLabel" } }, "shortCode": { @@ -1044,9 +1064,21 @@ ], "properties": { "name": { - "type": "string", - "description": "The title of the course.", - "example": "Confidential Communication in the Internet" + "oneOf": [ + { + "$ref": "https://w3id.org/kim/amb/draft/schemas/localizedString.json" + }, + { + "type": "string" + } + ], + "description": "Title of the learnign resource. Either just astring or an object allowing localized text.", + "example": [ + { + "de": "Vertrauliche Kommunikation", + "en": "Confidential Communication" + } + ] }, "courseCode": { "type": [ @@ -1063,24 +1095,25 @@ "$ref": "#/$defs/CourseMode" }, "description": { - "type": [ - "string", - "null" + "oneOf": [ + { + "$ref": "#/$defs/LocalizedContent" + }, + { + "type": "string" + } ], - "description": "Description of the course as an HTML document", - "example": "
A message on the Internet is sent through several networks and via different stations on its way to the target system. The individual stations are responsible for ensuring that the message is properly forwarded and finally delivered to the correct recipient. Each of these stations, if the message is sent in plain text, can receive the message and read its content. This means that a potential attacker, if he controls one of these intermediate systems, can also read the content of the message and even modify it before retransmitting it. Such attacks can have extreme effects on communication.
\\n\\nIn this course we will look at how and whether your connection to online banking is secure or whether the content of an e-mail is trustworthy. For this purpose we will deal with the basics of cryptography, security objectives and different types of encryption. In addition, we will provide insights into different models and standards that are used in practice.
\\n" + "description": "Description of the course as an HTML document, optinally an object allowing localized text and setting a ContentMediaType.", + "example": { + "contentMediaType": "text/markdown", + "content": { + "de": "## Kursbeschreibung\n\nIn diesem Kurs lernen Sie, ...", + "en": "## Course description\n\nIn this course you will learn ..." + } + } }, "inLanguage": { - "type": [ - "array", - "null" - ], - "uniqueItems": true, - "description": "List of languages in which the course is offered. Each language should be abbreviated in accordance with BCP 47: https://tools.ietf.org/html/bcp47.", - "items": { - "type": "string", - "example": "en" - } + "$ref": "https://w3id.org/kim/amb/draft/schemas/inLanguage.json" }, "startDate": { "description": "The time the course starts. It is possible to give several date-times for repetitive courses. The date-time to be given according to ISO 8601.",