Diff for /books/www/chapters/ch10.html between versions 1.12 and 1.13

version 1.12, 2003/03/23 05:56:31 version 1.13, 2003/03/23 06:39:09
Line 287  xmlns:comp="my.computer.hardware#" Line 287  xmlns:comp="my.computer.hardware#"
       RDF recommendation document.</p>        RDF recommendation document.</p>
     </blockquote>      </blockquote>
     <h4><a name="77068"></a> Examining a simple RDF file</h4>      <h4><a name="77068"></a> Examining a simple RDF file</h4>
    <p>We begin     
    <!--INDEX RDF (Resource Description Framework):syntax:files --><p>We begin 
    <!--INDEX syntax, RDF:files --> <!--INDEX files:RDF:syntax -->  <!--INDEX RDF (Resource Description Framework):syntax:files -->
    with an example of an RDF file whose basic layout and simple  <!--INDEX syntax, RDF:files -->
    syntax can be a model for the more advanced data introduced  <!--INDEX files:RDF:syntax -->
    later. The RDF file shown in <a href="#77026">Example 10-1</a>  with an example of an RDF file whose basic layout and simple syntax can be a 
    is a list of three types of "flies," with the context of those  model for the more advanced data introduced later. The RDF file shown in <a href="#77026">Example 
    "flies" inside a "jar." <a href="#77026">Example 10-1</a> also  10-1</a> is a list of three types of "flies", with the context of those "flies" 
    contains a namespace that defines these types of flies and  inside a "jar." <a href="#77026">Example 10-1</a> also contains a namespace 
    shows the <tt>rdf</tt> and <tt>fly</tt> XML intertwined.</p>  that defines these types of flies and shows the <tt>rdf</tt> and <tt>fly</tt> 
   XML intertwined.</p>
     <p><i>Example 10-1: <a name="77026"></a></i> <i>Simple RDF file      <p><i>Example 10-1: <a name="77026"></a></i> <i>Simple RDF file
     with "fly" namespace</i></p>      with "fly" namespace</i></p>
 <pre>  <pre>
Line 306  xmlns:comp="my.computer.hardware#" Line 307  xmlns:comp="my.computer.hardware#"
 "http://www.w3.org/1999/02/22-rdf-syntax-ns">http://www.w3.org/1999/02/22-rdf-syntax-ns</a>#"  "http://www.w3.org/1999/02/22-rdf-syntax-ns">http://www.w3.org/1999/02/22-rdf-syntax-ns</a>#"
       xmlns:fly="<a href=        xmlns:fly="<a href=
 "http://xfly.mozdev.org/fly-rdf">http://xfly.mozdev.org/fly-rdf</a>#"&gt;  "http://xfly.mozdev.org/fly-rdf">http://xfly.mozdev.org/fly-rdf</a>#"&gt;
     &lt;rdf:Description about="<a href=     &lt;rdf:Description about="urn:root"&gt;
"http://my.jar-of-flies.com">http://my.jar-of-flies.com</a>"&gt; 
        &lt;fly:types&gt;         &lt;fly:types&gt;
          &lt;rdf:Bag&gt;           &lt;rdf:Bag&gt;
            &lt;rdf:li&gt;             &lt;rdf:li&gt;
Line 334  xmlns:comp="my.computer.hardware#" Line 334  xmlns:comp="my.computer.hardware#"
     attributes guarantee the unique nature of each element and      attributes guarantee the unique nature of each element and
     relationship.</p>      relationship.</p>
 <pre>  <pre>
&lt;rdf:Description about="<a href=&lt;rdf:Description about="urn:root"&gt;
"http://my.jar-of-flies.com">http://my.jar-of-flies.com</a>"&gt; 
 &lt;fly:types&gt;  &lt;fly:types&gt;
 &lt;rdf:Bag&gt;  &lt;rdf:Bag&gt;
 </pre>  </pre>
    <p><tt><a href=    
    "http://my.jar-of-flies.com">http://my.jar-of-flies.com</a></tt>,<p><tt>urn:root</tt>, is the subject shown in the previous code snippet. It is 
    is the subject shown in the previous code snippet. <i>My jar of  also a resource definition and defines only what flies are inside of the statement. 
    flies</i> is a resource definition and defines only what  The predicate, which addresses a property in the resource, is defined by the 
    <i>flies</i> are inside of the statement. The predicate, which  tag <tt>&lt;types&gt;</tt> (of the <tt><a href=
    addresses a property in the resource, is defined by the tag    "http://xfly.mozdev.org/fly-rdf">http://xfly.mozdev.org/fly-rdf</a>#</tt> 
    <tt>&lt;types&gt;</tt> (of the <tt><a href=  namespace).</p>
    "http://xfly.mozdev.org/fly-rdf">http://xfly.mozdev.org/fly-rdf</a>#</tt>    
    namespace).</p><p>The final part of the statement, the object, is the actual data of the predicate 
    <p>The final part of the statement, the object, is the actual  and a container of type bag. The container is an RDF resource that "holds", 
    data of the predicate and a container of type bag. The  or points to, a collection of other resources. In the next section, container 
    container is an RDF resource that "holds," or points to, a  types are discussed in depth. <a href="#77010">Figure 10-5</a> illustrates how 
    collection of other resources. In the next section, container  the triple originates from the root subject and includes the container object.</p>
    types are discussed in depth. <a href="#77010">Figure 10-5</a> 
    illustrates how the triple originates from the root subject and 
    includes the container object.</p> 
     <div class="c22">      <div class="c22">
       <img src="foo.gif">        <img src="foo.gif">
     </div>      </div>

Removed from v.1.12  
changed lines
  Added in v.1.13


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>