Professional Documents
Culture Documents
Instructional Module and Its Components: Course Developer and Their Background
Instructional Module and Its Components: Course Developer and Their Background
Network Programming 1 of 45
CHAPTER 9
TITLE Data Mapping and Exchange - Metadata Data representation and
encoding HTML
I. RATIONALE Metadata is a new word based on an old concept. Any summary of the
contents of a library or archive, like a card catalog, contains metadata.
It is the preferred term of the technical community to refer to ``card-
catalog'' data, and it will, therefore, become increasingly used as more
technical tools are developed for linguistic research. This purpose of
this module is to provide introduction describing what metadata is, how
metadata presented and how metadata applied in HTML.
INSTRUCTION TO THE USERS Lectures are on this module. PowerPoint materials are on a separate
file.
PRE-TEST Let us first assess your prior knowledge regarding this lesson. You
need to recognize the concepts which you already know and
those which you need to reinforce and enrich so that you would
know how to equip and prepare yourself for the tasks ahead.
From your own understanding what is metadata and where did you find
metadata before?
II. LEARNING At the end of the chapter, students are expected to:
OBJECTIVES a. Understand the principles and practicalities of Metadata
III. CONTENT
A. DEVELOPMENTA
L ACTIVITIES What is Metadata?
Network Programming 2 of 45
as discovery and identification. It can include elements
such as title, abstract, author, and keywords.
Network Programming 3 of 45
Metadata can be embedded in a digital object or it can be stored
separately. Metadata is often embedded in HTML documents and in
the headers of image files. Storing metadata with the object it
describes ensures the metadata will not be lost, obviates problems
of linking between data and metadata ,and helps ensure that the
metadata and object will be updated together. However, it is impossible
to embed metadata in some types of objects(for example, artifacts).
Also, storing metadata separately can simplify the management of
the metadata itself and facilitate search and retrieval. Therefore,
metadata is commonly stored in a database system and linked to
the objects described.
XML markup, while still a small part of the total markup on the Web, is
Network Programming 4 of 45
the idiom of choice for the encoding and exchange of structured data.
The XML namespace facility provides structural capabilities that HTML
lacks, making it easier to achieve the principles of modularity and
extensibility. The XML Schema specification defines a schema
language that allows for the specification of application profiles that will
increase the prospects for interoperability.
The <meta> tag is used to provide such additional information. This tag
is an empty element and so does not have a closing tag but it carries
information within its attributes.
You can include one or more meta tags in your document based on
what information you want to keep in your document but in general,
meta tags do not impact physical appearance of the document so from
appearance point of view, it does not matter if you include them or not.
<head>
<title>IPT 1</title>
<meta name = "keywords" content = "IPT
METADATA TOPIC" />
<meta name = "description" content =
"Learning about Meta Tags." />
</head>
<body>
<p>I’m a paragraph</p>
</body>
</html>
I’m a paragraph
Network Programming 5 of 45
You can add metadata to your web pages by placing <meta> tags
inside the header of the document which is represented by <head> and
</head> tags. A meta tag can have following attributes in addition to
core attributes –
Cookies are data, stored in small text files on your computer and it is
exchanged between web browser and web server to keep track of
various information based on your web application need.
You can use <meta> tag to store cookies on client side and later this
information can be used by the Web Server to track a site visitor.
<!DOCTYPE html>
<html>
<head>
</head>
Network Programming 6 of 45
<body>
</body>
</html>
Author name
You can set an author name in a web page using meta tag.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
Network Programming 7 of 45
implies that the metadata is created at the time that the resource is
created, often by the author. Experts differ concerning whether author-
created metadata is best or whether it is better to have trained
practitioners evaluate and describe resources. As a practical matter,
resource description expertise is a scarce and costly commodity, and
thus any investment by authors in the description of their intellectual
products is likely to be of value.
Network Programming 8 of 45
V. EVALUATION Instructions: Select the best answer to the following multiple choice
questions about metadata.
VI. ASSIGNMENT /
AGREEMENT It was mentioned earlier that in some cases, servers themselves may
become clients at various times. Give examples of cases that servers
also function as clients.
REFERENCES https://www.lter.uaf.edu/metadata_files/UnderstandingMetadata.pdf
http://www.dlib.org/dlib/april02/weibel/04weibel.html
http://csapp.cs.cmu.edu/2e/ch11-preview.pdf
https://www.tutorialspoint.com/html/html_meta_tags.htm
http://www.language-archives.org/documents/gentle-intro.html
Network Programming 10 of 45
systems.
COURSE OUTLINE
S. Overview of Programming Languages -
History of programming languages,
Programming paradigms, Effects of
scale
T. Compiled vs. interpretative languages,
Application vs. scripting languages
U. Integrative Coding – Inheritance
V. Integrative Coding – Polymorphism
W. Integrative Coding – Interfaces
X. Integrative Coding - Design Patterns
Y. Network Programming
Z.
AA. Midterm Exam
BB. Data Mapping and Exchange -
Metadata Data representation and
encoding HTML
CC. Data Mapping and Exchange - XML,
DTD, schemas Parsing XML
documents
DD. Data Mapping and Exchange - XSL,
XSLT and XPath
EE.
FF. Inter-systems Communications -
Architectures for integrating systems
GG. Inter-systems
Communications - RMI
HH. Inter-systems Communications - Virtual
Machines
II. Inter-systems Communications - Web
Services and Middleware
JJ. Final Exam
CHAPTER 10
TITLE Data Mapping and Exchange - XML, DTD, schemas Parsing XML
documents
VII. RATIONALE XML data is known as self-describing or self-defining, meaning that
the structure of the data is embedded with the data, thus when the
data arrives there is no need to pre-build the structure to store the
data; it is dynamically understood within the XML. The XML format
can be used by any individual or group of individuals or companies
that want to share information in a consistent way.
INSTRUCTION TO THE Lectures are on this module. PowerPoint materials are on a separate
USERS file.
PRE-TEST Let us first assess your prior knowledge regarding this lesson.
You need to recognize the concepts which you already know
and those which you need to reinforce and enrich so that you
Network Programming 11 of 45
would know how to equip and prepare yourself for the tasks
ahead.
From your own understanding what is XML and can you create a
web page using XML alone?
VIII. LEARNING At the end of the chapter, students are expected to:
OBJECTIVES c. Understand the importance of XML validators
IX. CONTENT
C. DEVELOPMEN
TAL What is XML?
ACTIVITIES
XML stands for EXtensible Markup Language
XML was designed to describe data, with focus on what data is.
HTML was designed to display data, with focus on how data looks
Network Programming 12 of 45
Maybe it is a little hard to understand, but XML does not DO
anything. The following example is a note to IPT students from CCS
as XML:
<note>
</note>
The note above is quite self descriptive. It has sender and receiver
information, it also has a heading and a message body. But still, this
XML document does not DO anything. It is just information wrapped
in tags. Someone must write a piece of software to send, receive or
display it.
The tags in the example above (like <to> and <from>) are not
defined in any XML standard. These tags are "invented" by the
author of the XML document. That is because the XML language
has no predefined tags.
The tags used in HTML are predefined. HTML documents can only
use tags defined in the HTML standard (like <p>, <h1>, etc.).XML
allows the author to define his/her own tags and his/her own
document structure.
Network Programming 13 of 45
3. All tags must be properly nested.
When you insert (nest) one tag within another, pay attention
to the order in which you open each tag, and then close the
tags in the reverse order. If you open element A and then
element B, you must first close B before closing A. Even
HTML tags that usually will work without a strict structure
must follow the stricter XML rules when they’re used within
an XML file.
<chapter number="1">
Because you can name tags anything you want, you could
Network Programming 14 of 45
use tags reserved for HTML markup, such as <h1>, <p>,
<li>, and so on. Although permissible in XML, avoid using
such tag names unless you want the data to be formatted
that way when it’s viewed in a browser window.
<note>
</note>
The first line is the XML declaration. It defines the XML version (1.0).
The next line describes the root element of the document (like
saying: "this document is a note"):
</note>
Network Programming 15 of 45
<body> Don’t forget your activity this week </body>
And finally the last line defines the end of the root element:
</note>
You can assume, from this example, that the XML document
contains a note to IPT Students from CCS.
<child>
<subchild>.....</subchild>
</child>
</root>
The terms parent, child, and sibling are used to describe the
relationships between elements. Parent elements have children.
Children on the same level are called siblings (brothers or sisters).All
elements can have text content and attributes (just like in HTML).
Entity References
To avoid this error, replace the "<" character with an entity reference:
Network Programming 16 of 45
Predefined Entity Symbol Meaning
References
' ‘ apostrophe
Note: Only the characters "<" and "&" are strictly illegal in XML. The
greater than character is legal, but it is a good habit to replace it.
Comments in XML
other elements
text
attributes
Network Programming 17 of 45
indicate an empty element like this:
<element></element>
or you can use an empty tag, like this (this sort of element syntax is
called self-closing):
<element/>
Note: Empty elements do not have any content, but they can have
attributes!
Rules that defines the legal elements and attributes for XML
documents are called Document Type Definitions (DTD)or XML
Schemas.
There are two different document type definitions that can be used
with XML:
What is a DTD?
A DTD defines the structure and the legal elements and attributes of
Network Programming 18 of 45
an XML document.
<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT to (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
</note>
Network Programming 19 of 45
!ELEMENT note defines that the note element must
contain four elements: "to,from,heading,body"
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
</note>
<!ELEMENT to (#PCDATA)>
Network Programming 20 of 45
<!ELEMENT body (#PCDATA)>
When you are experimenting with XML, or when you are working
with small XML files, creating DTDs may be a waste of time. If you
develop applications, wait until the specification is stable before you
add a document definition. Otherwise, your software might stop
working because of validation errors.
XML Validator
To help you check your xml files, you can go to this URL and paste
your code
https://www.xmlvalidation.com/
XML Schema
<xs:element name="note">
<xs:complexType>
<xs:sequence>
Network Programming 21 of 45
</xs:sequence>
</xs:complexType>
</xs:element>
With XML Schema, your XML files can carry a description of its own
format.
One of the greatest strength of XML Schemas is the support for data
types:
Network Programming 22 of 45
It is easier to validate the correctness of data
Another great strength about XML Schemas is that they are written
in XML:
You can use your XML editor to edit your Schema files
You can use your XML parser to parse your Schema files
D. CLOSURE As a closing activity, look for new or old sales invoice or official
ACTIVTIES receipt from any store. Open a text editor in your computer then
create a XML document about the sales invoice or official receipt.
X. SYNTHESIS /
GENERALIZATIO XML data is quickly and easily built, does not in itself require
N programming skills and is readily transferred between applications –
which is possible because of the shared set of structural rules that
are understood in each different context. All of this combined with
the ability to define your own structures in XML makes a data
storage and transfer model that is useful for a wide range of projects.
XI. EVALUATION Instructions: Select the best answer to the following multiple choice
questions about XML,DTD and XML Schema.
Network Programming 23 of 45
document?
a. <comment>This is a comment</comment>
b. <?-This is a comment->
c. <!-This is a comment->
d. None of the above
4. Which statement is true?
a. All XML documents must have a DTD
b. All XML elements must be lower case
c. All XML elements must be properly closed
d. All of the above
5. Which statement is true?
a. XML tags are case sensitive
b. XML documents must have a root tag
c. XML elements must be properly closed
d. All of the above
6. Which is not a correct name for an XML documents?
a. <Note>
b. <h1>
c. <1dollar>
d. All 3 names are incorrect
7. Which is not a correct name for an XML element?
a. <age>
b. <NAME>
c. <first name>
d. All three names are incorrect
8. XML is a _______ Recommendation
a. Microsoft
b. Sun
c. W3C
d. None of the above
9. XML is?
a. Free and Extensible
b. Not Extensible
c. A stylesheet
d. None of these
10. XML Schema is designed to
a. be self-descriptive
b. display only useful data
c. carrying request
d. giving response
XII. ASSIGNMENT /
AGREEMENT It was mentioned earlier that in some cases, servers themselves
may become clients at various times. Give examples of cases that
servers also function as clients.
Network Programming 24 of 45
REFERENCES https://www2.cs.duke.edu/courses/fall14/compsci316/lectures/12-
xml-notes.pdf
https://web.csulb.edu/~pnguyen/cecs475/pdf/Introduction%20to
%20XML.pdf
RETURN HERE
XIV. LEARNING At the end of the chapter, students are expected to:
OBJECTIVES g. Understanding the eXtensible Stylesheet Language (XSL) and
how it provides a means to transform and format the contents of
XML documents.
h. Discuss Xpath functions and discover how XPath and XSLT can
significantly reduce the complexity of Java code when handling
XML documents
XV. CONTENT
E. DEVELOPMEN
TAL XSL
ACTIVITIES
XSL is an alternative to CSS that allows greater control over the
presentation of the XML data.
Network Programming 26 of 45
hyphenation), complex page layout, footnotes, automatic
generation of content (index)
Who is it for?
Example I: Hamlet
<ACT>
<SCENE>
</SPEECH>
</ACT>
Network Programming 27 of 45
...
<record year="1992">
<artist>Sundays, The</artist>
<title>Blind</title>
</record>
<record year="1994">
<artist>(Various)</artist>
<note>Compilation</note>
</record>
<artist>Kamen, Michael</artist>
<title>Brazil</title>
</record>
...
Network Programming 28 of 45
The XSL Process
For example:
Generated from:
Network Programming 29 of 45
XSL can import images and other types of known XML
documents: SVG and MathML.
Transformations: XSLT
General-purpose XSLT
Network Programming 30 of 45
XSLT stylesheets use XML syntax
Templates
<TITLE>Hamlet</TITLE>
into
HTML can also be generated very simply in the template, using for
instance<h1>instead of<fo:block>
Implicit rule: text is copied from input to output: a style sheet with no
rules will only return the character data of the input.
XSLT statements
Network Programming 31 of 45
expression
<xsl:if test="...">...</xsl:if>Conditional
XPath
2]/SPEAKER[@name="Hamlet"]/
LINE[contains(.,"shoe box")]
Pages
Network Programming 32 of 45
The area model
Block/inline areas
Network Programming 33 of 45
stacked orthogonally.
Formatting Objects:
fo:layout-master-set
fo:page-master
fo:page-sequencel
Generate areas
fo:block
fo:inline
fo:character
Other
fo:page-number
fo:external-graphics
Properties
Network Programming 34 of 45
Each area has a set of traits: color, background, font-size,
etc.
Implementations
The Future
F. CLOSURE As a closing activity, apply XSL and XSLT on your previous activity
ACTIVTIES in XML.
XVI. SYNTHESIS /
GENERALIZATIO XSL is a family of recommendations for defining XML document
Network Programming 35 of 45
N
transformation and presentation. An XSLT stylesheet specifies the
presentation of a class of XML documents by describing how an
instance of the class is transformed into an XML document that uses
a formatting vocabulary, such as (X)HTML or XSL-FO.
XVII. EVALUATION Instructions: Select the best answer to the following multiple choice
questions about XSL, XSLT and XPath.
XVIII. ASSIGNMENT /
AGREEMENT It was mentioned earlier that in some cases, servers themselves
may become clients at various times. Give examples of cases that
servers also function as clients.
REFERENCES https://www.w3.org/People/maxf/XSLideMaker/tut.pdf
https://web.csulb.edu/~pnguyen/cecs475/pdf/Introduction%20to
%20XML.pdf
Network Programming 36 of 45
Languages - History of programming
languages, Programming paradigms,
Effects of scale
DDD. Compiled vs. interpretative
languages, Application vs. scripting
languages
EEE. Integrative Coding –
Inheritance
FFF. Integrative Coding –
Polymorphism
GGG. Integrative Coding –
Interfaces
HHH. Integrative Coding - Design
Patterns
III. Network Programming
JJJ.
KKK. Midterm Exam
LLL. Data Mapping and Exchange -
Metadata Data representation and
encoding HTML
MMM. Data Mapping and Exchange -
XML, DTD, schemas Parsing XML
documents
NNN. Data Mapping and Exchange -
XSL, XSLT and XPath
OOO.
PPP. Inter-systems
Communications - Architectures for
integrating systems
QQQ. Inter-systems
Communications - RMI
RRR. Inter-systems
Communications - Virtual Machines
SSS. Inter-systems
Communications - Web Services and
Middleware
TTT. Final Exam
CHAPTER 12
TITLE Inter-systems Communications - Architectures for integrating systems
XIX. RATIONALE The wave of recent corporate mergers and growth of business on
the Internet have boosted enterprise systems integration's profile in
both IT and business. All these factors have contributed to enterprise
integration's importance, but the marketplace conditions of today's
open, collaborative-based economy are still the major reasons why
companies choose an integrated solution. Companies that can
provide information when it is needed, or that can quickly devise and
roll out new products and services, are today's leading
Network Programming 37 of 45
organizations.
INSTRUCTION TO THE Lectures are on this module. PowerPoint materials are on a separate
USERS file.
PRE-TEST Let us first assess your prior knowledge regarding this lesson.
You need to recognize the concepts which you already know
and those which you need to reinforce and enrich so that you
would know how to equip and prepare yourself for the tasks
ahead.
RETURN HERE
XX. LEARNING At the end of the chapter, students are expected to:
OBJECTIVES i. Understand how system integration works to make two
systems communicate.
XXI. CONTENT
G. DEVELOPMEN
TAL Introduction
ACTIVITIES
Many systems are built to easy, improve and transform
organizations. Some organizations have many departments which
run systems which are independent of each other. And systems built
sometimes, may not have an abstract view (architecture) which
leads to failure of system interoperability. There is need to have
architectural view of the system as a priority to help in the design to
avoid the likeliness of system failure. Besides after the system has
been designed and developed in consideration of the size of the
organization, i.e. most especially when the organization is large,
need is required to integrate such systems to ensure flexibility,
Speed, Cost , Standardization, Data integrity, reliability and
robustness. This can help Information Technology (IT), energy, and
financial services industry among others to have an easy-to-use
integrated system.
Network Programming 38 of 45
The theory and practice of business process integration, legacy
integration, new systems integration, business-to-business
integration, integration of commercial-off-the-shelf (COTS) products,
interface control and management, testing, integrated program
management, integrated Business Continuity Planning (BCP).
System
System Thinking
System Integration
System Architecture
What is a project?
Network Programming 39 of 45
From the key terms described above, a system developer and
architects cannot do anything without first establishing various
projects. These projects may be new or existing. So it is inevitable to
first understand what a project is, factors that influence the project,
who the owners are and many more as discussed below.
Stakeholders
Importance of Stakeholders
Network Programming 40 of 45
activities Stakeholders include the project sponsor and project team
support staff customers users suppliers opponents to the project.
Project managers must take time to identify, understand, and
manage relationships with all project stakeholders Using the four
frames of organizations can help meet stakeholder needs and
expectations Senior executives are very important stakeholders.
Executive support
User involvement
Minimized scope
Formal methodology
Reliable estimates
Network Programming 41 of 45
events. Culture is important.
Network Programming 42 of 45
structure, the teams are put together based on the number of
members needed to produce the product or complete the
project. The number of significantly different kinds of tasks
are taken into account when structuring a project in this
manner, assuring that the right members are chosen to
participate in the project.
Network Programming 43 of 45
sacrificing quality.
H. CLOSURE As a closing activity, apply XSL and XSLT on your previous activity
ACTIVTIES in XML.
XXII. SYNTHESIS /
GENERALIZATIO XSL is a family of recommendations for defining XML document
N transformation and presentation. An XSLT stylesheet specifies the
presentation of a class of XML documents by describing how an
instance of the class is transformed into an XML document that uses
a formatting vocabulary, such as (X)HTML or XSL-FO.
XXIII. EVALUATION Instructions: Select the best answer to the following multiple choice
questions about XSL, XSLT and XPath.
XXIV. ASSIGNMENT /
AGREEMENT It was mentioned earlier that in some cases, servers themselves
may become clients at various times. Give examples of cases that
servers also function as clients.
REFERENCES https://www.w3.org/People/maxf/XSLideMaker/tut.pdf
https://web.csulb.edu/~pnguyen/cecs475/pdf/Introduction%20to
Network Programming 44 of 45
%20XML.pdf
Network Programming 45 of 45