Create an xml­ specific class diagram

Assignment Help Computer Engineering
Reference no: EM13978768

From UML to XML and JSON

Scenario

The following class diagram represents part of the data model of a service for supporting placements of students with companies, including students' and companies' addresses and the contact details of their supervisors.

1012_Design and validate a JSON data.png

In order to support students in finding a placement we would like provide students with information on suitable companies. For this purpose, we ask the service for a list of all students, in which each student is related to all companies based in their city of residence. This information will be sent by the service in a single text file.

Since the overall numbers of both students and companies may be large, we would like to minimise redundancy and keep file size as small as possible. You are requested to design XML and JSON data formats to support such a download.

Assignment

XML Data Format: Derive and test a DTD following these steps.

1. Reduce the class diagram to those classes and attributes, associations and cardinalities required by the scenario. Justify for every element of the class diagram your decision to keep or drop it, always referring to the requirements of the scenario.

2. Create an XML­ specific class diagram and justify the chosen document structure using the requirements from the scenario.

3. Derive the DTD and justify the style of mapping for the attributes you have chosen. Is the mapping from the class diagram in 2 to the DTD data preserving? Please justify your answer, and if the mapping is not data preserving, provide a valid object diagram or XML instance as a counterexample.

146_Design and validate a JSON data1.png

As an alternative to the use of XML, design and validate a JSON data.

4. From the object diagram above create a JSON representation with the relevant data content as required by the scenario. What is the structure of this mapping? Does it avoid redundancy or lead to small files?

5. Validate your JSON at https://som­research.uoc.edu/tools/jsonDiscoverer/#/simple using the online tool to create a class diagram. Copy the generated class diagram into your submission document and compare it to the given class diagram above, justifying any differences based on the requirements from the scenario.

6. Following the examples and instructions at https://json­schema.org/examples.html

Create a JSON schema such that the JSON you produced in 4 becomes a valid instance.

Submit the JSON schema as part of your CW document and validate the conformance of your JSON to this scheme at  https://jsonschemalint.com/draft4/.1

Copy a screenshot of the validation report as confirmation.

Reference no: EM13978768

Questions Cloud

What was the cash payment : Stepping Out has inventory purchases of $2,200 during the month of June. If June 1 accounts payable were $1,700 and June 30 accounts payable were $1,900, what was the cash payment?
What is the percentage of sales forecasting method : What is the percentage of sales forecasting method? What are some of the limitations financial analysts should be aware of in applying this method?
Let v be a vector space with dimension n : Let V be a vector space with dimension n > 0. If i is an integer such that 0 % i % n, prove that V contains at least one subspace U such that dim (U) = i.
What was the total cost to firm of issuing the securities : Suppose that a biotech firm in Pittsburgh raised $113 million in an IPO. The firm received $23 per share, and the stock sold to the public for $25 per share. The firm’s legal fees, SEC registration fees, and other out-of-pocket costs were $657,500. T..
Create an xml­ specific class diagram : Reduce the class diagram to those classes and attributes, associations and cardinalities required by the scenario. Justify for every element of the class diagram your decision to keep or drop it, always referring to the requirements of the scenari..
Determine magnitude and direction of the current in resistor : A uniform magnetic field of magnitude 0.0100 T is applied perpendicular to the plane of the rails. Determine the magnitude and direction of the current in the 5.00 Ω resistor.
Firm net income exceeded return on shareholds equity : How Disney dealt with the Principal - Agent Problem: In 1984, the Walt Disney Company brought in Michael Eisner, a Paramount executive as CEO. The firm's board of directors agreed to pay Eisner a salary of $750,000, plus a $750,000 bonus for signing ..
Describe a pattern that you would like to change : STEP ONE: DETERMINING WHY CHANGE IS DESIRED- Describe a "pattern" that you would like to change.  Describe the relationship in which it exists. Discuss the: Problems it creates for you
What is the estimated loan rate for the five-year bank loan : Cartco needs to borrow $4 million for an upgrade to its headquarters and manufacturing facility. Management has decided to borrow using a five-year term loan from its existing commercial bank. The prime rate is 3 percent, and Cartco’s current rating ..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Find out a sequence of activities

Outline the considerations for systems investigation.

  A brief introduction and summary of the articleanalysis of

the textbook mentioned the stanford prison experiment conducted by psychologist philip zimbardo at stanford university

  What can be done to reduce the risk that these threats pose

What can be done to reduce the risk that these threats pose. Discuss your thoughts on if and how the Clark-Wilson security model could be used to help protect data, or would a different security model be more appropriate? If so, which one

  Use an appropriate parameter passing mechanism

Use an appropriate parameter passing mechanism. Your function will not do any cin or cout. Do not write a main function. Make sure to properly format all your code.

  Business intelligence knowledge management and expert

business intelligence knowledge management and expert systems are powerful tools that allow corporations to analyze

  Explain common uses for word processing applications

Explain common uses for word processing applications. Describe methods for inserting graphics, headers and footers, page numbers, and a table of contents.

  Generate a unique identification number for each object

Generate a unique identification number for each object instantiated from this class. Use a static data member to keep track of the identification number last assigned to an object so that duplications will not occur.

  Why is quality assurance becoming more significant what

why is quality assurance becoming more important? what types of jobs are available related to quality assurance and

  Inadynamicbusinessmodelwealsorepresentthelife-cyclerelations

inadynamicbusinessmodelwealsorepresentthelife-cyclerelationshipsamongtheseentitiesshowingwhichentityisresponsibleforwhic

  Recent changes in information technology affected society

How have the recent changes in information technology affected society? Are these changes for the better, the worse, or both and what are one or two of the biggest social changes?

  Implement the playexpert mode of the game

Whether or not you have managed to implement the playExpert mode of the game. If you do not manage to implement it you should carry on with the rest of the questions in novice mode.

  Difference between an information management system

Describe the difference between an information management system of flowlchart management system.

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