RDF Example

From Decision XG
Jump to: navigation, search

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. Below you find the RDF representation of the same examples as was shown in XML previously.

<?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="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>