RDF example

Hi,
Can you help me to find errors in my RDF example?
Thanks.

Michele



RDF:

<?xml version='1.0'?>
<!DOCTYPE rdf:RDF SYSTEM "metadata.dtd">
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:A="http://www.mysite/schema/A#"
  xmlns:R1="http://www.mysite/schema/R1#"
  xmlns:R2="http://www.mysite/schema/R2#">
    <rdf:Description
      about="/pages/3957.html">
        <rdf:type resource="http://www.mysite/schema/A#Page"/>
        <A:TAGA1>
            <rdf:Bag>
                <rdf:li>
                    <A:TAGL
                      A:ATT1="/photos/white/3957.html"
                      A:ATT2="white"/>
                </rdf:li>
                <rdf:li>
                    <A:TAGL
                      A:ATT1="/photos/black/3957.html"
                      A:ATT2="black"/>
                </rdf:li>
            </rdf:Bag>
        </A:TAGA1>
        <R1:TAGR11> aaa </R1:TAGR11>
        <R1:TAGR12> 111 </R1:TAGR12>
        <R2:TAGR21> b5b </R2:TAGR21>
        <R2:TAGR22> 4df </R2:TAGR22>
    </rdf:Description>
</rdf:RDF>


=================================================================

SCHEMA:
http://www.mysite/schema/A

<rdf:RDF
  xml:lang="en"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/TR/1999/PR-rdf-schema-19990303#">

    <rdfs:Class rdf:ID="Page">
        <rdfs:comment> comment to Page class </rdfs:comment>
    </rdfs:Class>

    <rdf:Property ID="TAGA1">
        <rdfs:range rdf:resource="List"/>
        <rdfs:domain rdf:resource="#Page"/>
    </rdf:Property>

    <rdf:Bag rdf:ID="List">
    </rdf:Bag>

    <rdf:Property ID="TAGL">
        <rdfs:domain rdf:resource="#List"/>
    </rdf:Property>

    <rdf:Property ID="ATT1">
        <rdfs:range rdf:resource="#URI"/>
        <rdfs:domain rdf:resource="#TAGL"/>
    </rdf:Property>

    <rdf:Property ID="ATT2">
        <rdfs:range rdf:resource="#Color"/>
        <rdfs:domain rdf:resource="#TAGL"/>
    </rdf:Property>

    <rdfs:Class rdf:ID="Color"/>
    <Color rdf:ID="Black"/>
    <Color rdf:ID="White"/>

    <rdfs:Class rdf:ID="Integer">
        <rdfs:comment> Integer number </rdfs:comment>
    </rdfs:Class>

    <rdfs:Class rdf:ID="String">
        <rdfs:comment> Alfanumeric string </rdfs:comment>
    </rdfs:Class>

    <rdfs:Class rdf:ID="URI">
        <rdfs:comment> URI </rdfs:comment>
    </rdfs:Class>

</rdf:RDF> 

-----------------------------------------------------------------

SCHEMA:
http://www.mysite/schema/R1

<rdf:RDF
  xml:lang="en"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/TR/1999/PR-rdf-schema-19990303#">

    <rdf:Property ID="TAGR11">
        <rdfs:comment> comment to TAGR11 </rdfs:comment>
        <rdfs:range rdf:resource="http://www.mysite/schema/A#String"/>
        <rdfs:domain rdf:resource="http://www.mysite/schema/A#Page"/>
    </rdf:Property>

    <rdf:Property ID="TAGR12">
        <rdfs:comment> comment to TAGR12 </rdfs:comment>
        <rdfs:range rdf:resource="http://www.mysite/schema/A#Integer"/>
        <rdfs:domain rdf:resource="http://www.mysite/schema/A#Page"/>
    </rdf:Property>

</rdf:RDF> 

-----------------------------------------------------------------

SCHEMA:
http://www.mysite/schema/R2

<rdf:RDF
  xml:lang="en"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/TR/1999/PR-rdf-schema-19990303#">

    <rdf:Property ID="TAGR21">
        <rdfs:comment> comment to TAGR21 </rdfs:comment>
        <rdfs:range rdf:resource="http://www.mysite/schema/A#String"/>
        <rdfs:domain rdf:resource="http://www.mysite/schema/A#Page"/>
    </rdf:Property>

    <rdf:Property ID="TAGR22">
        <rdfs:comment> comment to TAGR22 </rdfs:comment>
        <rdfs:range rdf:resource="http://www.mysite/schema/A#String"/>
        <rdfs:domain rdf:resource="http://www.mysite/schema/A#Page"/>
    </rdf:Property>

</rdf:RDF> 

-----------------------------------------------------------------

Received on Wednesday, 19 January 2000 04:05:56 UTC