W3C home > Mailing lists > Public > www-rdf-interest@w3.org > January 2001

Re: Putting context in RDF serialization

From: Graham Klyne <GK@Dial.pipex.com>
Date: Mon, 01 Jan 2001 16:53:47 +0000
Message-Id: <4.3.2.7.2.20010101164552.00e51a50@pop.dial.pipex.com>
To: Seth Russell <seth@robustai.net>
Cc: RDF-IG <www-rdf-interest@w3.org>
At 08:45 PM 12/20/00 -0800, Seth Russell wrote:
>Fine, show me an actual example of in XML of putting three statements in two
>different contexts.   Of course, I concede, it can be done ... but I won't
>concede it is practical until I can see an actual practical example.   Let's
>compare the M&S container way to my proposal, line for line.

OK, try this:

   [s1]--p1;id=t1-->[o1]
   [s2]--p2;id=t2-->[o2]
   [s3]--p3;id=t3-->[o3]

   [c1]--quotes-->[t1]
   [c1]--quotes-->[t2]

   [c2]--quotes-->[t2]
   [c2]--quotes-->[t3]

Where the notation:

   [s1]--p1;id=t1-->[o1]

means:

   <rdf:Description rdf:about='s1'>
     :
     <p1 rdf:id='t1' rdf:resource='o1' />
     :
   </rdf:Description>


Then, the above graph serializes to:

   <rdf:Description rdf:about='s1'>
     <p1 rdf:id='t1' rdf:resource='o1' />
     <p2 rdf:id='t2' rdf:resource='o2' />
     <p3 rdf:id='t3' rdf:resource='o3' />
   </rdf:Description>

   <Context rdf:about='c1'>
     <quotes rdf:resource='t1' />
     <quotes rdf:resource='t2' />
   </Context>

   <Context rdf:about='c2'>
     <quotes rdf:resource='t2' />
     <quotes rdf:resource='t3' />
   </Context>

Plus the usual RDF boilerplate.

#g

------------
Graham Klyne
(GK@ACM.ORG)
Received on Monday, 1 January 2001 14:00:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:47 GMT