W3C W3C Incubator Report

4.5.1 Example Traditional XML

Expanded version of Chapter 4.5.1 in the W3C Incubator Group Report 15 April 2012


A schema describing this XML format is the Common Decision Exchange Protocol. The basic decision components are represented including the decision question, answer, options, and metrics in the form of pros and cons. In this example, an professor must make a decision about the topic for a research proposal. Two options are under consideration, Technique A and Technique B. The former has a couple advantages (pros), it has a short duration and is a high priority, but has a disadvantage (con), there are no current applications. Technique B has a disadvantage that it is not a favorite topic of this researcher. The decision has is currently in the "Information Gathering" state, and the basic info of who and where is provided. Unique identifiers in the form of URIs are provided for each component so that the components can be referenced and managed independently or combined as needed. So for example, the decision state or basic info could be referenced, rather than included, to save bandwidth.

One of the challenges with the traditional XML approach is that it is hard to dynamically combine information from different XML datasets, since XMLSchema usually prescribes the format of each schema. One way to overcome this limitation is to use, or convert to as needed, a more flexible and expressive markup format, such as the Resource Description Framework (RDF). RDF is based on a graph model where each RDF statement is a triple (subject - property - value) resulting in a graph model. Subgraphs can easily be combined into a larger graph and then queries can be formed using the standard SPARQL query language. RDF is another format useful for representing decisions. The same example as below, in RDF format, is shown later in the report.

<?xml version="1.0" encoding="UTF-8"?>
<dec:Decisions xmlns:dec="http://www.freshdecisions.org/decisions"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:georss="http://www.georss.org/georss/11" 
   xmlns:gml="http://www.opengis.net/gml"
   xsi:schemaLocation="http://www.freshdecisions.org/decisions ./CDEP_ver4.xsd
   http://www.georss.org/georss/11 ./georss.xsd
   http://www.opengis.net/gml ./gmlgeorss.xsd">
   <dec:Decision>
       <dec:Guid>http://www.freshdecisions.org/decisions/decision_01.xml</dec:Guid>
       <dec:Question>
           <dec:Title>What should be the topic of ProfessorX's research proposal?</dec:Title>
       </dec:Question>
       <dec:Options>
           <dec:Option>
               <dec:Idea>
                   <dec:Title>A Novel Approach for Solving Prolems Using Technique A</dec:Title>
               </dec:Idea>
               <dec:Pros>
                   <dec:Pro>
                       <dec:Title>One Year in Duration</dec:Title>
                       <dec:Description>One year research efforts are favored.</dec:Description>
                        <dec:Metric>
                            <dec:MetricValueList>
http://www.freshdecisions.org/myorganization/research/metrics/duration</dec:MetricValueList>
                            <dec:Value>OneYearLong</dec:Value>
                        </dec:Metric>
                   </dec:Pro>
                   <dec:Pro>
                       <dec:Title>Good Research Area</dec:Title>
                       <dec:Description>Research with Technique A is a priority 
                         of this organization</dec:Description>
                       <dec:Metric>
                           <dec:MetricValueList>
http://www.freshdecisions.org/myorganization/research/metrics/focusarea</dec:MetricValueList>
                           <dec:Value>Technique_A</dec:Value>
                       </dec:Metric>
                   </dec:Pro>
               </dec:Pros>
               <dec:Cons>
                   <dec:Con>
                       <dec:Title>No current applications</dec:Title>
                       <dec:Description>Research funding favors proposals with 
                          current applications</dec:Description>
                       <dec:Metric>
                           <dec:MetricValueList>
http://www.freshdecisions.org/myorganization/research/metrics/currentapplications
                           </dec:MetricValueList>
                           <dec:Value>NotYetIdentified</dec:Value>
                       </dec:Metric>
                   </dec:Con>
               </dec:Cons>
           </dec:Option>
           <dec:Option>
               <dec:Idea>
                   <dec:Title>Faster Processing Algorithms Using Technique B</dec:Title>
               </dec:Idea>
               <dec:Cons>
                   <dec:Con>
                       <dec:Title>Not major interest of this researcher</dec:Title>
                       <dec:Description>ProfessorX is primarily interested 
                          in other topics</dec:Description>
                   </dec:Con>
               </dec:Cons>
           </dec:Option>
       </dec:Options>
       <dec:States>
          <dec:StatesValueList>http://www.freshdecisions.org/decision/states</dec:StatesValueList>
          <dec:State>
              <dec:Value>NotYetStarted</dec:Value>
              <dec:Date>2010-11-09T13:00:00+02:00</dec:Date>
          </dec:State>
          <dec:State>
              <dec:Value>GatheringInfo</dec:Value>
              <dec:Date>2010-11-09T13:00:00+02:00</dec:Date>
          </dec:State>
      </dec:States>
      <dec:BasicInfo>
          <dec:Who>
              <dec:Guid>http://www.myorganization.org/people/ProfessorX.xml</dec:Guid>
          </dec:Who>
          <dec:Where>
              <gml:Point>
                  <gml:pos>32.7 -117.211</gml:pos>
              </gml:Point>
          </dec:Where>
          <dec:When>2010-11-09T21:32:52+05:00</dec:When>
      </dec:BasicInfo> 
   </dec:Decision>   
</dec:Decisions>