CDEP Examples

From Decision XG
Jump to: navigation, search

The Common Decision Exchange Protocol version 4 is an XML format for representing decisions. The CDEP was developed as an initial XML-based format and is of some interest for purposes of considering the types of components one might want to represent to manage decisions effectively. The format was designed to be modular, generic for any type of decision-making, concise (where components could be simply referenced by URL) or expandable with additional detail, and human readable in terms of element names. The XML format is provided in the link above. Some examples are provided below as a mini-tutorial. (Note: The URLs are not active and are for example only.)

Go to CDEP Examples in RDF to see these examples in RDF/XML format.

Example 1: Three decisions referenced

<?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"
   xsi:schemaLocation="http://www.freshdecisions.org/decisions ./CDEP_ver4.xsd">
   <dec:Decision>
       <dec:Guid>http://www.freshdecisions.org/decisions/1.xml</dec:Guid>
   </dec:Decision>
   <dec:Decision>
       <dec:Guid>http://www.freshdecisions.org/decisions/2.xml</dec:Guid>
   </dec:Decision>
   <dec:Decision>
       <dec:Guid>http://www.freshdecisions.org/decisions/3.xml</dec:Guid>
   </dec:Decision>
</dec:Decisions>

Example 1a: Three decisions referenced (with basic info: who, where, when)

<?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/1.xml</dec:Guid>
       <dec:BasicInfo>
           <dec:Who>
               <dec:Guid>http://www.myorganization.org/People/ProfessorX</dec:Guid>
           </dec:Who>
           <dec:Where>
               <gml:Point>
                   <gml:pos>32.7 -117.211</gml:pos>
               </gml:Point>
           </dec:Where>
           <dec:When>2010-10-15T09:17:00+02:00</dec:When>
       </dec:BasicInfo>
   </dec:Decision>
   <dec:Decision>
       <dec:Guid>http://www.freshdecisions.org/decisions/2.xml</dec:Guid>
       <dec:BasicInfo>
           <dec:Who>
               <dec:Guid>http://www.myorganization.org/People/AssociateY</dec:Guid>
           </dec:Who>
           <dec:Where>
               <gml:Point>
                   <gml:pos>32.7 -117.22</gml:pos>
               </gml:Point>
           </dec:Where>
           <dec:When>2010-10-20T10:15:00+02:00</dec:When>   
       </dec:BasicInfo>
   </dec:Decision>
   <dec:Decision>
       <dec:Guid>http://www.freshdecisions.org/decisions/3.xml</dec:Guid>
       <dec:BasicInfo>
           <dec:Who>
               <dec:Guid>http://www.myorganization.org/People/ProfessorZ</dec:Guid>
           </dec:Who>
           <dec:Where>
               <gml:Point>
                   <gml:pos>32.7 -117.23</gml:pos>
               </gml:Point>
           </dec:Where>
           <dec:When>2010-11-03T20:00:00+02:00</dec:When>
       </dec:BasicInfo>
   </dec:Decision>
</dec:Decisions>


Example 2: Questions and Answers

<?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:Answer>
           <dec:Title>A Novel Technique for Solving Problems Using Technique A</dec:Title>
       </dec:Answer>
       <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>

Example 3: States

<?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: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>

Example 4: Options

<?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:Option>
           <dec:Option>
               <dec:Idea>
                   <dec:Title>Faster Processing Algorithms Using Technique B</dec:Title>
               </dec:Idea>
           </dec:Option>
       </dec:Options>
       <dec:States>
           <dec:Guid>http://www.freshdecisions.org/decisions_01/states.xml</dec:Guid>
       </dec:States>
       <dec:BasicInfo>
           <dec:Guid>http://www.myorganization.org/decision_01/basicinfo.xml</dec:Guid>
       </dec:BasicInfo> 
   </dec:Decision>   
</dec:Decisions>

Example 5: Metrics Standalone

<?xml version="1.0" encoding="UTF-8"?>
<dec:Metrics 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:Metric>
       <dec:MetricValueList>
http://www.freshdecisions.org/metrics/computerPurchase/cost</dec:MetricValueList>
       <dec:Value>Expensive</dec:Value>
       <dec:NormValue>1</dec:NormValue>
       <dec:Weight>1.3</dec:Weight>
   </dec:Metric>
   <dec:Metric>
       <dec:MetricValueList>
http://www.freshdecisions.org/metrics/computerPurchase/performance</dec:MetricValueList>
       <dec:Value>Excellent</dec:Value>
       <dec:NormValue>10</dec:NormValue>
       <dec:Weight>1</dec:Weight>
   </dec:Metric>
   <dec:Metric>
       <dec:MetricValueList>
http://www.freshdecisions.org/metrics/computerPurchase/warranty</dec:MetricValueList>
       <dec:Value>Good</dec:Value>
       <dec:NormValue>7</dec:NormValue>
       <dec:Weight>0.7</dec:Weight>
   </dec:Metric>
</dec:Metrics>


Example 6: Pros and Cons

<?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:Guid>http://www.freshfreshdecisions.org/decisions_01/states.xml</dec:Guid>
       </dec:States>
       <dec:BasicInfo>
           <dec:Guid>http://www.myorganization.org/decision_01/basicinfo.xml</dec:Guid>
       </dec:BasicInfo> 
   </dec:Decision>   
</dec:Decisions>