CDEP Examples in RDF

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.)

These examples are in RDF/XML format. You can copy paste any of these examples and test them in the RDF Validator which will show you the resulting triples and a pictorial view of the generated graph.

Example 1: Three decisions referenced

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dec="http://www.freshdecisions.org/decisions/"
 xmlns:dc="http://purl.org/dc/elements/1.1/">
<dec:Decisions rdf:about="dec:myDecisions">
 <dec:hasDecision>
  <dec:Decision rdf:about="http://www.freshdecisions.org/decisions/1.xml"/>
 </dec:hasDecision>
 <dec:hasDecision>
  <dec:Decision rdf:about="http://www.freshdecisions.org/decisions/2.xml"/>
 </dec:hasDecision>
 <dec:hasDecision>
  <dec:Decision rdf:about="http://www.freshdecisions.org/decisions/3.xml"/>
 </dec:hasDecision>
</dec:Decisions>
</rdf:RDF>


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

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dec="http://www.freshdecisions.org/decisions/"
  xmlns:georss="http://www.georss.org/georss/11" 
  xmlns:gml="http://www.opengis.net/gml"
 xmlns:dc="http://purl.org/dc/elements/1.1/">
<dec:Decisions rdf:about="dec:myDecisions">
 <dec:hasDecision>
  <dec:Decision rdf:about="dec:myDecisions/1.xml">
     <dec:hasBasicInfo>
      <dec:BasicInfo rdf:about="dec:myDecisions/1/BasicInfo.xml">
          <dec:Who>
              <dec:Person rdf:about="http://www.myorganization.org/People/ProfessorX"/>
          </dec:Who>
          <dec:Where>
              <gml:Point rdf:about="dec:myDecisions/1/BasicInfo/location.xml">
                  <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:hasBasicInfo>
  </dec:Decision>
 </dec:hasDecision>
 <dec:hasDecision>
  <dec:Decision rdf:about="dec:myDecisions/2.xml">
     <dec:hasBasicInfo>
      <dec:BasicInfo rdf:about="dec:myDecisions/2/BasicInfo.xml">
          <dec:Who>
              <dec:Person rdf:about="http://www.myorganization.org/People/ProfessorY"/>
          </dec:Who>
          <dec:Where>
              <gml:Point rdf:about="dec:myDecisions/2/BasicInfo/location.xml">
                  <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:hasBasicInfo>
  </dec:Decision>
 </dec:hasDecision>
 <dec:hasDecision>
  <dec:Decision rdf:about="dec:myDecisions/3.xml">
     <dec:hasBasicInfo>
      <dec:BasicInfo rdf:about="dec:myDecisions/3/BasicInfo.xml">
          <dec:Who>
              <dec:Person rdf:about="http://www.myorganization.org/People/ProfessorZ"/>
          </dec:Who>
          <dec:Where>
              <gml:Point rdf:about="dec:myDecisions/3/BasicInfo/location.xml">
                  <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:hasBasicInfo>
  </dec:Decision>
 </dec:hasDecision>
</dec:Decisions>
</rdf:RDF>


Example 2: Questions and Answers

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dec="http://www.freshdecisions.org/decisions/"
  xmlns:georss="http://www.georss.org/georss/11" 
  xmlns:gml="http://www.opengis.net/gml"
 xmlns:dc="http://purl.org/dc/elements/1.1/">
<dec:Decisions rdf:about="dec:myDecisions">
 <dec:hasDecision>
  <dec:Decision rdf:about="dec:decision_01.xml">
     <dec:hasQuestion>
      <dec:Question rdf:about="dec:decision_01/question.xml">
          <dec:Title>What should be the topic of ProfessorX's research proposal?</dec:Title>
      </dec:Question>
     </dec:hasQuestion>
     <dec:hasAnswer>
      <dec:Answer rdf:about="dec:decision_01/answer.xml">
          <dec:Title>A Novel Technique for Solving Problems Using Technique A</dec:Title>
      </dec:Answer>
     </dec:hasAnswer>
     <dec:hasBasicInfo>
      <dec:BasicInfo rdf:about="dec:decision_01/basicinfo.xml">
          <dec:Who>
              <dec:Person rdf:about="http://www.myorganization.org/people/ProfessorX.xml"/>
          </dec:Who>
          <dec:Where>
              <gml:Point rdf:about="dec:decision_01/location.xml">
                  <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:hasBasicInfo>
  </dec:Decision>
 </dec:hasDecision>
</dec:Decisions>
</rdf:RDF>


Example 3: States

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dec="http://www.freshdecisions.org/decisions/"
  xmlns:georss="http://www.georss.org/georss/11" 
  xmlns:gml="http://www.opengis.net/gml"
 xmlns:dc="http://purl.org/dc/elements/1.1/">
<dec:Decisions rdf:about="dec:myDecisions">
 <dec:hasDecision>
 <dec:Decision rdf:about="dec:decision_01.xml">
    <dec:hasQuestion>
      <dec:Question rdf:about="dec:decision_01/question.xml">
          <dec:Title>What should be the topic of ProfessorX's research proposal?</dec:Title>
      </dec:Question>
    </dec:hasQuestion>
    <dec:hasStates>
      <dec:States rdf:about="dec:decision_01/states.xml">
          <dec:StatesValueList>http://www.freshdecisions.org/decision/states</dec:StatesValueList>
          <dec:hasState>
             <dec:State rdf:about="dec:decision_01/states/1.xml">
                <dec:Value>NotYetStarted</dec:Value>
                <dec:Date>2010-11-09T13:00:00+02:00</dec:Date>
              </dec:State>
          </dec:hasState>
          <dec:hasState>
              <dec:State rdf:about="dec:decision_01/states/2.xml">
                <dec:Value>GatheringInfo</dec:Value>
                <dec:Date>2010-11-09T13:00:00+02:00</dec:Date>
              </dec:State>
           </dec:hasState>
      </dec:States>
    </dec:hasStates>
    <dec:hasBasicInfo>
      <dec:BasicInfo rdf:about="dec:decision_01/basicInfo.xml">
          <dec:Who>
              <dec:Person rdf:about="http://www.myorganization.org/people/ProfessorX.xml"/>
          </dec:Who>
          <dec:Where>
              <gml:Point rdf:about="http://dec:decision_01/location.xml">
                  <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:hasBasicInfo>
  </dec:Decision> 
 </dec:hasDecision>
</dec:Decisions>
</rdf:RDF>


Example 4: Options

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dec="http://www.freshdecisions.org/decisions/"
  xmlns:georss="http://www.georss.org/georss/11" 
  xmlns:gml="http://www.opengis.net/gml"
 xmlns:dc="http://purl.org/dc/elements/1.1/">
<dec:Decisions rdf:about="dec:myDecisions">
 <dec:hasDecision>
 <dec:Decision rdf:about="dec:decision_01.xml">
    <dec:hasQuestion>
      <dec:Question rdf:about="dec:decision_01/question.xml">
          <dec:Title>What should be the topic of ProfessorX's research proposal?</dec:Title>
      </dec:Question>
    </dec:hasQuestion>
    <dec:hasOptions>
      <dec:Options rdf:about="dec:decision_01/options.xml">
        <dec:hasOption>
          <dec:Option rdf:about="dec:decision_01/options/1">
             <dec:hasIdea>
              <dec:Idea rdf:about="dec:research/ideas/17">
                  <dec:Title>A Novel Approach for Solving Prolems Using Technique A</dec:Title>
              </dec:Idea>
             </dec:hasIdea>
          </dec:Option>
        </dec:hasOption>
        <dec:hasOption>
          <dec:Option rdf:about="dec:decision_01/options/2">
             <dec:hasIdea>
              <dec:Idea rdf:about="dec:research/ideas/29">
                  <dec:Title>Faster Processing Algorithms Using Technique B</dec:Title>
              </dec:Idea>
             </dec:hasIdea>
          </dec:Option>
         </dec:hasOption>
      </dec:Options>
    </dec:hasOptions>
    <dec:hasStates>
      <dec:states rdf:about="http://www.freshdecisions.org/decisions_01/states.xml"/>
    </dec:hasStates>
    <dec:hasBasicInfo>
      <dec:BasicInfo rdf:about="http://www.myorganization.org/decision_01/basicinfo.xml"/>
    </dec:hasBasicInfo> 
  </dec:Decision> 
 </dec:hasDecision>
</dec:Decisions>
</rdf:RDF>


Example 5: Metrics Standalone

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dec="http://www.freshdecisions.org/decisions/"
  xmlns:georss="http://www.georss.org/georss/11" 
  xmlns:gml="http://www.opengis.net/gml"
 xmlns:dc="http://purl.org/dc/elements/1.1/">
<dec:Metrics rdf:about="dec:metrics/computerPurchase.xml">
 <dec:hasMetric>
   <dec:Metric rdf:about="dec:metrics/computerPurchase/cost.xml">
      <dec:MetricValueList>
http://www.freshdecisions.org/metrics/computerPurchase/costValues.xml</dec:MetricValueList>
      <dec:Value>Expensive</dec:Value>
      <dec:NormValue>1</dec:NormValue>
      <dec:Weight>1.3</dec:Weight>
  </dec:Metric>
 </dec:hasMetric>
 <dec:hasMetric>
  <dec:Metric rdf:about="dec:metrics/computerPurchase/performance.xml">
      <dec:MetricValueList>
http://www.freshdecisions.org/metrics/computerPurchase/performanceValues.xml</dec:MetricValueList>
      <dec:Value>Excellent</dec:Value>
      <dec:NormValue>10</dec:NormValue>
      <dec:Weight>1</dec:Weight>
  </dec:Metric>
 </dec:hasMetric>
 <dec:hasMetric>
  <dec:Metric rdf:about="dec:metrics/computerPurchase/warranty.xml">
      <dec:MetricValueList>
http://www.freshdecisions.org/metrics/computerPurchase/warrantyValues.xml</dec:MetricValueList>
      <dec:Value>Good</dec:Value>
      <dec:NormValue>7</dec:NormValue>
      <dec:Weight>0.7</dec:Weight>
  </dec:Metric>
 </dec:hasMetric>
</dec:Metrics>
</rdf:RDF>


Example 6: Pros and Cons

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dec="http://www.freshdecisions.org/decisions/"
  xmlns:georss="http://www.georss.org/georss/11" 
  xmlns:gml="http://www.opengis.net/gml"
 xmlns:dc="http://purl.org/dc/elements/1.1/">
<dec:Decisions rdf:about="dec:myDecisions">
 <dec:hasDecision>
 <dec:Decision rdf:about="dec:decision_01.xml">
    <dec:hasQuestion>
      <dec:Question rdf:about="dec:decision_01/question.xml">
          <dec:Title>What should be the topic of ProfessorX's research proposal?</dec:Title>
      </dec:Question>
    </dec:hasQuestion>
    <dec:hasOptions>
      <dec:Options rdf:about="dec:decision_01/options.xml">
        <dec:hasOption>
          <dec:Option rdf:about="dec:decision_01/options/1">
             <dec:hasIdea>
              <dec:Idea rdf:about="dec:research/ideas/17">
                  <dec:Title>A Novel Approach for Solving Prolems Using Technique A</dec:Title>
              </dec:Idea>
             </dec:hasIdea>
             <dec:hasPro>
                  <dec:Pro rdf:about="dec:decision_01/options/1/pros/1.xml">
                      <dec:Title>One Year in Duration</dec:Title>
                      <dec:Description>One year research efforts are favored.</dec:Description>
                      <dec:hasMetric>
                         <dec:Metric rdf:about="dec:metrics/duration.xml">
                           <dec:MetricValueList>
http://www.freshdecisions.org/myorganization/research/metrics/durationValues</dec:MetricValueList>
                           <dec:Value>OneYearLong</dec:Value>
                         </dec:Metric>
                       </dec:hasMetric>
                  </dec:Pro>
              </dec:hasPro>
              <dec:hasPro>
                  <dec:Pro rdf:about="dec:decision_01/options/1/pros/2.xml">
                      <dec:Title>Good Research Area</dec:Title>
                      <dec:Description>Research with Technique A is a priority 
                        of this organization</dec:Description>
                      <dec:hasMetric>
                        <dec:Metric rdf:about="dec:metrics/focusarea.xml">
                          <dec:MetricValueList>
http://www.freshdecisions.org/myorganization/research/metrics/focusareaValues</dec:MetricValueList>
                          <dec:Value>Technique_A</dec:Value>
                        </dec:Metric>
                       </dec:hasMetric>
                  </dec:Pro>
               </dec:hasPro>
               <dec:hasCon>
                  <dec:Con rdf:about="dec:decision_01/options/1/cons/1.xml">
                      <dec:Title>No current applications</dec:Title>
                      <dec:Description>Research funding favors proposals with 
                         current applications</dec:Description>
                      <dec:hasMetric>
                        <dec:Metric rdf:about="dec:metrics/currentapplications.xml">
                          <dec:MetricValueList>
http://www.freshdecisions.org/myorganization/research/metrics/currentapplicationsValues
                          </dec:MetricValueList>
                          <dec:Value>NotYetIdentified</dec:Value>
                        </dec:Metric>
                      </dec:hasMetric>
                  </dec:Con>
              </dec:hasCon>
          </dec:Option>
         </dec:hasOption>
         <dec:hasOption>
          <dec:Option rdf:about="dec:decision_01/options/2.xml">
            <dec:hasIdea>
              <dec:Idea rdf:about="dec:research/ideas/49.xml">
                  <dec:Title>Faster Processing Algorithms Using Technique B</dec:Title>
              </dec:Idea>
            </dec:hasIdea>
            <dec:hasCon>
                  <dec:Con rdf:about="dec:decision_01/options/2/cons/1.xml">
                      <dec:Title>Not major interest of this researcher</dec:Title>
                      <dec:Description>ProfessorX is primarily interested 
                         in other topics</dec:Description>
                  </dec:Con>
             </dec:hasCon>
          </dec:Option>
         </dec:hasOption>
      </dec:Options>
    </dec:hasOptions>
    <dec:hasStates>
      <dec:states rdf:about="http://www.freshdecisions.org/decisions_01/states.xml"/>
    </dec:hasStates>
    <dec:hasBasicInfo>
      <dec:BasicInfo rdf:about="http://www.myorganization.org/decision_01/basicinfo.xml"/>
    </dec:hasBasicInfo> 
  </dec:Decision> 
 </dec:hasDecision>
</dec:Decisions>
</rdf:RDF>