~ s/trans:prescribedOn/indivo:prescribedOn/ per orig RDF data
authorEric Prud'hommeaux <eric@w3.org>
Tue, 05 Oct 2010 05:32:56 -0400
changeset 24 67d55bae74c4
parent 23 e1ac5e425b23
child 25 ac50f1549d0f
~ s/trans:prescribedOn/indivo:prescribedOn/ per orig RDF data
syntheticPatients/Indivo2Trig.xsl
syntheticPatients/tests/q1.rq
--- a/syntheticPatients/Indivo2Trig.xsl	Tue Oct 05 05:31:13 2010 -0400
+++ b/syntheticPatients/Indivo2Trig.xsl	Tue Oct 05 05:32:56 2010 -0400
@@ -14,6 +14,7 @@
   @prefix : &lt;tag:[email protected]:2009/tmo/translator#&gt; .
   @prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
   @prefix trans: &lt;tag:[email protected]:2009/tmo/translator#&gt; .  
+  @prefix indivo: &lt;http://indivo.org/vocab/xml/documents#&gt; .
   @prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .  
 {
 <xsl:apply-templates select="in:CurrentStatus"/>
@@ -86,7 +87,7 @@
 <xsl:template match="in:Prescription">
   [ a trans:Prescription ;
     trans:prescribedTo _:patient ;
-    trans:prescribedOn <xsl:apply-templates mode="date" select="in:medication/in:dateStarted"/> ; <!-- trans:dateStarted -->
+    indivo:prescribedOn <xsl:apply-templates mode="date" select="in:medication/in:dateStarted"/> ; <!-- trans:dateStarted -->
 <xsl:if test="in:medication/in:dateStopped"> 
     trans:datePrescriptionEnded <xsl:apply-templates mode="date" select="in:medication/in:dateStopped"/> ;
 </xsl:if>
--- a/syntheticPatients/tests/q1.rq	Tue Oct 05 05:31:13 2010 -0400
+++ b/syntheticPatients/tests/q1.rq	Tue Oct 05 05:32:56 2010 -0400
@@ -11,7 +11,7 @@
             trans:workingDiagnosis ?diagnosis ;
             trans:dateOfEncounter ?encounter_date .
  ?drug trans:prescribedTo ?patient ; # dateStarted
-       trans:prescribedOn ?prescription_start;
+       indivo:prescribedOn ?prescription_start;
        trans:datePrescriptionEnded ?prescription_end;
        trans:genericName ?drug_name
  FILTER regex(?drug_name,"DONEPEZIL","i").