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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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