Create a class diagram defining the structure

Assignment Help Basic Computer Science
Reference no: EM133087961

Service-oriented Architectures

Coursework: Data Mapping to XML and JSON

This task continues the development of GroupworkTasks2 and 3 on Data Modelling by con-sidering additional requirements for data exchange and their implementation in XML and JSON. We now represent Assessment and Module as separate classes rather than including their data into the Submission. We also record which students are enrolled on which modules.

We consider two operations requiring different data to be exported and transmitted.
The staff interface contains an operation getAllSubmissionsthat returns submission records across all modules, i.e., which students submitted to which assessmentson which mod-ules.(The motivation is to detect cases of missed submissions, which indicate lack of engage-ment, but this is not part of this assignment.)

The student interface offers an operationgetMySubmissionsproviding a student with a list of their submissions to all assessments across all modules.

Your task is to map the relevant parts of the data model below to a DTD and a JSON schema to specify the data required for returning:
• as XML, all submissions by all students as returned bygetAllSubmissions
• as JSON, all submissions by a given student in reply to getMySubmissions

The getAllSubmissions operation downloads a potentially large number of records, including information on the students who made these submissions, the assessments,and modules they were submitted to, which we do not want to duplicate in our XML representation.

By contrast, getMySubmissionsreturns a smaller amount of data for a single student, so we are not worried about the size of the JSON representation or potential redundancy butneed our data to easy to display in a web page or email. (The actual rendering of the data in html or other human-readable formats is not part of the assignment.)

The problems in TasksA and B are independent of each other. While they use the same origi-nal data models and share some requirements, they are concerned with different operations, scenarios, and target languages. Therefore, some of your design choices to A and Bshould be different, too.

Task A: XMLMapping - similartoGroupwork

Task 2
Design a DTD that could supports the data returned by an invocation of getAllSubmissions("AY2021-22_Sem2") for the 2nd Semester of the academic year 2021-22, following the steps below. Take care to create a solution that minimises redundancy to ensure a compact representation of the data.

1. Create a reduced class diagram containing only the elements relevant to this task. Justify your choices.

2. Create an XML-specific class diagram and justify the chosen document structure using the requirements from the scenario. Justify your choices.

3. Derive the DTD and justify the style of mapping you have chosen for the attributes.

4. Is the mapping from the class diagram in 2. to the DTD data-preserving? Please justify your answer. In particular
a. If the mapping does not extend the data capacity, provide a valid object dia-gram as counterexample and explain why there is no corresponding valid XML instance.
b. If the mapping does not reflect data capacity, provide a valid XML instance as counterexample and explain why there is no corresponding valid object dia-gram.

5. Use the XML validator in the project template to check your XML instance against your DTD schema and include a screenshot of the Eclipse console with the numeric code gen-erated as proof of successful validation. (Consult the companion document for detailed in-structions.)

Task B: JSON Mapping - based on Groupwork Task 3

Create a sample JSON object to be returned as a result of invoking getMySubmissions(<your-student-id>) in the following steps.

6. Create a reduced class diagram containing only the elements relevant to this task. Justify your choices.

7. Create a class diagram defining the structure you want to use to represent the data in JSON. This is analogous to an XML-specific class diagram, except that the target language is JSON. What is the structure of the mapping you decided to use?

8. Derive a JSON Schema, aiming to capture the same data and constraints as your JSON-specific class diagram in 7.

9. Create the sample JSON object following your JSON schema.Use your own student ID and data, selecting 2 modules you are registered for with 3 selected assessments in total, and 2 real or imaginary submissions.

10. Use the JSON validator in the project template to check your JSON object against your schema and include a screenshot of the Eclipse console with the numeric code generated as proof of successful validation. (Consult the companion document for detailed instruc-tions.)

Attachment:- Data Mapping to XML and JSON.rar

Reference no: EM133087961

Questions Cloud

How much is the goodwill or gain on acquisition : The fair value of the 15% non-controlling interest is P125,000. How much is the goodwill or (gain on acquisition)
What amount will be recognized as net accounts : Swifty has received no payments from either school as of month end. What amount will be recognized as net accounts receivable on balance sheet as of November
Indicate the income tax consequences : Insurance proceeds of $300,000 were received in December 2021. Indicate the 2021 income tax consequences of the involuntary disposition
Determine the company net income and earnings per share : Management expected that, had it not issued the debt, it would again have had net income of $85,000. Determine the Company's net income and earnings per share
Create a class diagram defining the structure : Data Mapping to XML and JSON and Create a reduced class diagram containing only the elements relevant to this task. Justify your choices
Prepare a schedule of expected collections from customers : It pays purchases on account 60% in the month of purchase, and 40% in the month following purchase. Prepare a schedule of expected collections from customers
Determine his margin of safety : Barhoom's Cellular (BC) is a distributor and sells phones for $200 a phone. Determine his margin of safety & explain to him what that means
Calculate the expected return from a stock : Calculate the expected return from a stock with a beta coefficient of 1.36 if there is a 7.4% expected rate of return from the market
Calculate the face value of a bond one year later : Calculate the face value of a bond one year later given the following circumstances. A borrowed amount of $40 million where 40,000 bonds are issued

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd