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

  Show the key code in the center of the screen

Write down a program that will display the hex code for any key, or key combination that is pressed on the keyboard. Display the key code in the center of the screen. For instance, if the key number 0 is pressed, display a 30 on the center of the ..

  Conduct an exploratory analysis of the creditdata.csv data

Conduct an exploratory analysis of the creditdata.csv data set which is provided on the course study desk to identify what you consider to be top five key variables which contribute to determining whether a potential loan applicant is a good credi..

  What is a backup strategy or active directory?

What is a backup strategy or Active Directory? The small business that you created new domain controllers for now wants you to develop a backup and recovery plan for Active Directory.

  What will be the values of h1 and h2

Consider two cache organizations both of them are using 32KB cache,32 bit physical address and 32B blocks. The 1st one is 2-way set associative cache, 2nd one is direct mapped cache.

  Find out all doctors who went to harvard

Did the SQL programmer enforce the constraint that every doctor practices in a unique hospital? If so, how? If not, how do you know, and how, if at all, might this constraint have been implemented.

  Name at least five different scans that might be performed

question 1 name at least five different scans that may be performed from the zenmap gui. document under what

  Application showing files name-size and last modifiaction

Make a file by utilizing any word-processing program or the text editor. Write down an application which shows the file's name, size, and time of the last modification.

  What are the expected completion time

What are the expected completion time and the critical path for the landscaping project and What are the earliest and latest start and finish times for activity C

  Calculate and show the mortgage payment amount

Write down the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. Allow th..

  Find the initial interval for the root search

Write down the corresponding MATLAB code. You should check (just for yourself) how your function works with an arbitrary unsorted array.

  Providing the justification

Joe the janitor is recorded in the company security camera one night taking the pictures with his cell phone of office of CEO after he is done with cleaning. What will you do and provide justification for your actions?

  Describe any environmental conditions or for evidence room

How should the items you collected as evidence be stored in your evidence room. Describe any environmental conditions or concerns for your evidence room (digital evidence can require some unique considerations!), as well any security procedures t..

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