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

  Advocate a mandatory expiration date

Would you advocate a mandatory expiration date on data to ensure at some point it no longer exists?

  Cloud computing are worth threats and vulnerabilities

Do you feel the benefits of cloud computing are worth the threats and vulnerabilities?

  Develop a community of learners

Describe three things you can do to develop a "community of learners" in your classroom. Give a specific example for each.

  How to create a website like flipkart

How to create a website like Flipkart.com? Is wordpress secure enough?

  Difference between session key and master key

What is the difference between a session key and a master key? What is a key distribution center? What is a public-key certificate?

  Hpe business value dashboard

HPE Business Value Dashboard. What are the most important parts of this dashboard? Have real-time dashboards replaced the traditional business report?

  Social engineering analysis group research experience

Social Engineering Analysis group research experience; what did go well? what were challenges? How you divided the work between 10 members.

  Examine the proposed business ethical problem

Examine the proposed business ethical problem

  What is the process for implementing this alternative

Compare and contrast it to ISO-31000; how it is the same and how is it different?

  Corporate agency policy on employee use of instant messaging

What specific questions should a corporate or government agency policy on "Employee use of Instant Messaging (IM) using corporate computers" address?

  Is hci a term to describe any interaction with digital

Is HCI a term to describe any interaction with digital technology? Suggest a more appropriate phase to describe this. Also, explain your answer. Whom or what are you interacting with, when you use a smart phone, a tablet, and a laptop? Google Glass o..

  Discuss the concept of order of magnitude

With respect to algorithm analysis, discuss the concept of order of magnitude.

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