Re: Putting context in RDF serialization

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 UTC