Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Application Architecture Data Model Content

IT-REX-Platform edited this page Mar 28, 2021 · 7 revisions

Content Data Model

ContentDataModel

Description

IdentifiableElement

An IdentifiableElement has a name and an id. The id is used to identify an entity globally and uses a "Universally Unique Identifier" as data type (see https://www.uuidgenerator.net/). It is used as a Stereotype on other components.

Content

The Content class contains a url. This url is used to fetch this content item from the service that manages it. The courseId field is used to identify to which Course this Content belongs. For more information regarding the Course, please refer to the Course Structure Data Model. Additionally there is the attribute uploaderId. It is used to identify the uploader. All other classes of Contents inherit from this class.

Resource

Resources are elements that are all contents that are not a LectureQuiz (i.e. Video, Audio, Images and Documents). They contain a MimeType which is needed so that a browser can identify what kind of data they are. This is an enum with all the allowed types and subtypes.

Document

This Content describes a document file.

Media

Abstract class to encapsulate similarities of inheriting classes. It is not actually implemented as an entity and only serves for a better overview.

Video

This Content describes a video file. It contains the length and Resolution of it.

Image

This Content describes an image file. It contains the Resolution of it.

Audio

This Content describes an audio file. It contains the length of it.

LectureQuiz

A LectureQuiz is the Quiz that can be attached to a Chapter. Please refer to the Quiz Data Model and the Course Structure Data Model for more information.

Quiz

Please refer to the Quiz Data Model for more information.

Question

A Question can refer to Media contents to display them. For further information on the question refer to the Quiz Data Model.

MimeType

An enumeration containing the supported MimeTypes of the system. It consists of a type and a subtype. The type is the kind of media and refers to a specific domain entity (AUDIO -> Audio, IMAGE -> Image, VIDEO -> Video, TEXT -> Document). The subtype are the supported file types. For more information on Mime Types refer to https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types

Clone this wiki locally