Web Services

SOAP IN Web services

SOAP Tutorial

adplus-dvertising
Collection in RDF
Previous Home Next

A collection is a finite group of items that contain specific member(i.e, the resources). Actually "list of values" are called members. Within RDF/XML, a collection is defined through the use of rdf:parseType="Collection"  and also listing the collected resources within the other collection block. The use of Collection within RDF/XML is fairly straightforward and uncomplicated. In a Collection you first have to remove a statement before adding new items.

Example

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.indo.org/rdf-syntax-ns#"
xmlns:ob="http://bookshop.fake/ob#">
<rdf: Description
rdf:about="http://bookshop.fake/ob/c">
  <ob:artist rdf:parseType="Collection">
<rdf:Description rdf:about="http://bookshop.fake/ob/crow and nightingale/Ravi"/>
<rdf:Description rdf:about="http://bookshop.fake/ob/crow and nightingale/Apoorva"/>
<rdf:Description rdf:about="http://bookshop.fake/ob/crow and nightingale/Bhanu"/>
<rdf:Description rdf:about="http://bookshop.fake/ob/crow and nightingale/Gemini"/>
  </ob:artist>
</rdf:Description>
</rdf:RDF>
Previous Home Next