W3C home > Mailing lists > Public > www-rdf-comments@w3.org > July to September 1999

Re: about container

From: Pierre-Antoine CHAMPIN <champin@cpe.fr>
Date: Thu, 30 Sep 1999 16:01:16 +0100
Message-ID: <37F37B3C.79BA542A@cpe.fr>
To: Fang Wei <fwei@informatik.uni-freiburg.de>, ML RDF-comment <www-rdf-comments@w3.org>
The problem is : you have a 3-ary relation between countr, ethnic group name and ethnic group percentage.
The only way to represent this in RDF is an intermediate resource like

<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:s="http://description.org/schema/">
  <rdf:Description ID="cid-Albania">
      <s:ethnicgroup>
        <rdf:Bag>

          <rdf:li>
            <rdf:Description>
              <s:name>Greeks</s:name>
              <s:percent>3</s:percent>
            </rdf:Description>
          </rdf:li>

          <rdf:li s:name="Albanian" s:percent="95"/>

        </rdf:Bag>
      </s:ethnicgroup>
  </rdf:Description>
</rdf:RDF>

note that the second <li> is much more compact, and is interpreted exactly the same way.

 hope this'll help

  Pierre-Antoine
Received on Thursday, 30 September 1999 10:05:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 September 2012 14:16:27 GMT