W3C home > Mailing lists > Public > public-prov-wg@w3.org > September 2012

Re: PROV-ISSUE-551: Flatten XML Schema removing records and/or dependencies? [XML Serialization]

From: Curt Tilmes <Curt.Tilmes@nasa.gov>
Date: Wed, 12 Sep 2012 09:18:34 -0400
Message-ID: <50508BAA.7060202@nasa.gov>
To: <public-prov-wg@w3.org>
On 09/12/2012 09:14 AM, Provenance Working Group Issue Tracker wrote:
> PROV-ISSUE-551: Flatten XML Schema removing records and/or dependencies? [XML Serialization]

Consider translating the PROV-N in Example 23,
   http://www.w3.org/TR/prov-dm/#anexample-start2
to XML:

PROV-N:
   activity(ex:foot_race)
   entity(ex:bang)
   wasStartedBy(ex:foot_race, ex:bang, -, 2012-03-09T08:05:08-05:00)
   agent(ex:Bob)
   wasAttributedTo(ex:bang, ex:Bob)

Old PROV-XML:  (Not real XML syntax, just showing the structure)

   document  (this is actually optional -- you can just start with records)
     records
       activity id=ex:foot_race
       entity id=ex:band
       agent id=ex:Bob
       dependencies
         wasStartedBy
           time 2012-03-09T08:05:08-05:00
           activity ref=ex:foot_race
           trigger ref=ex:bang
         wasAttributedTo
           entity ref=ex:bang
           agent ref=ex:Bob

New, flattened PROV-XML:

   document
     activity id=ex:foot_race
     entity id=ex:bang
     wasStartedBy
       time 2012-03-09T08:05:08-05:00
       activity ref=ex:foot_race
       trigger ref=ex:bang
     agent id=ex:Bob
     wasAttributedTo
       entity ref=ex:bang
       agent ref=ex:Bob
Received on Wednesday, 12 September 2012 13:19:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 12 September 2012 13:19:04 GMT