Web Services

SOAP IN Web services

SOAP Tutorial

Containers In RDF
Previous Home Next

The word container is used to describe any component that can contain other components inside itself.x In the context of Java development, container is a part of the server that manages the lifecycle of Web applications. The Web container cannot be accessed directly by a client but rather, the server manages the Web container. Container elements that are used to describe <Bag>, <Seq> and <Alt> elements.

<rdf:Bag> element: It is used to describe a list of values that are not define in a particular order. The elements are not necessary to be define in a specific order and may contain duplicate values.

Example

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.indo.org/rdf-syntax-ns#"
xmlns:ob="http://www.bookshop.fake/ob#">
<rdf:Description
rdf:about="http://www.bookshop.fake/obd/Nightingale">
  <ob:artist>
    <rdf:Bag>
      <rdf:li>Rohan</rdf:li>
      <rdf:li>Parul</rdf:li>
      <rdf:li>Shipra</rdf:li>
      <rdf:li>Ram</rdf:li>
    </rdf:Bag>
  </ob:artist>
</rdf:Description>
</rdf:RDF>

 

<rdf:Seq> element: It is used to describe list of values in a sequence order (for example, in a alphabetical order) and may contain duplicate values.

Example

<rdf:RDF
xmlns:rdf="http://www.indo.org/rdf-syntax-ns#"
xmlns:ob="http://www.bookshop.fake/ob#">
<rdf:Description
rdf:about="http://www.bookshop.fake/ob/nightingale">
  <ob:artist>
    <rdf:Seq>
      <rdf:li>Rohan</rdf:li>
      <rdf:li>Parul</rdf:li>
      <rdf:li>Shipra</rdf:li>
      <rdf:li>Ram</rdf:li>
    </rdf:Seq>
  </ob:artist>
</rdf:Description>
</rdf:RDF>

<rdf:Alt> element: This element is used to describe a list of alternative values (one can select only one values at a time).

Example

<?xml version="1.0"?>

<rdf:RDF
xmlns:rdf="http://www.indo.org/rdf-syntax-ns#"
xmlns:ob="http://www.compshop.fake/ob#">

<rdf:Description
rdf:about="http://www.compshop.fake/ob/Core">
  <ob:format>
    <rdf:Alt>
      <rdf:li>CD</rdf:li>
      <rdf:li>Harddisk</rdf:li>
      <rdf:li>Tape</rdf:li>
    </rdf:Alt>
  </ob:format>
</rdf:Description>
</rdf:RDF>
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: