CO7214 Service-Oriented Architectures Assignment

Assignment Help Other Subject
Reference no: EM133090308

CO7214 Service-oriented Architectures - University of Leicester

Coursework: Data Mapping to XML and JSON

This task continues the development of Groupwork Tasks 2 and 3 on Data Modelling by considering 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 getAllSubmissions that returns submission records across all modules, i.e., which students submitted to which assessments on which modules. (The motivation is to detect cases of missed submissions, which indicate lack of engagement, but this is not part of this assignment.)

The student interface offers an operation getMySubmissions providing 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 by getAllSubmissions
• 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, getMySubmissions returns a smaller amount of data for a single student, so we are not worried about the size of the JSON representation or potential redundancy but need 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 Tasks A and B are independent of each other. While they use the same original 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 B should be different, too.

Assessment Task A: XML Mapping - similar to Groupwork 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 diagram 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 diagram.

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 generated as proof of successful validation. (Consult the companion document for detailed instructions.)

Assessment 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 instructions.)

Attachment:- Service-oriented Architectures.rar

Reference no: EM133090308

Questions Cloud

Defining the research objectives : Create a problem statement from your occupation. After defining the research objectives (SMART) and research questions provide two data collection instruments t
Impede km implementation into an organization : Knowledge Management (KM) is the process of capturing, distributing, and effectively using knowledge. Managing organizational knowledge has many benefits, some
Providing constructive feedback to martin : You have arranged to meet with Martin to talk about the project and his input. How would you go about providing constructive feedback to Martin?
What adjusted basis does A take in A share of Asset 1 : A was a 60% shareholder and B was a 40% shareholder. What adjusted basis does A take in A's share of Asset #1
CO7214 Service-Oriented Architectures Assignment : CO7214 Service-Oriented Architectures Assignment Help and Solution, University of Leicester - Assessment Writing Service
Challenges and meet organizational objectives : Use relevant tools and formulate a new strategy to face the challenges and meet organizational objectives
Participants in the organizational system : "How are participants in the organizational system related," Write a brief note.
Contrast the roles of power and influence : Compare and contrast the roles of power and influence in ethical decisions
Discuss the types of social entrepreneurs : List and discuss the 3 types of social entrepreneurs. Include an example of each type of social entrepreneur to support your answer

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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