Commits

Dan Connolly committed 861f3ec

site_i2b2, gpc ontology, cohort characterization transcribe from whiteboard

Comments (0)

Files changed (1)

+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
+@prefix u: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix log: <http://www.w3.org/2000/10/swap/log#>.
 @prefix dot: <http://www.w3.org/2001/02pd/gv#>.
-@prefix log: <http://www.w3.org/2000/10/swap/log#>.
-@prefix u: <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
+@prefix owl: <http://www.w3.org/2002/07/owl#>.
 
-@keywords is, of, a.
+@keywords is, of, a, has.
 
 <> dot:digraph theGraph.
 
 theGraph dot:label "GPC work flows @@or something";
-  dot:hasNode EMR.
+  dot:hasNode EMR, i2b2_for_qi;
+  dot:rankdir "LR".  # move down
 
-EMR feeds Clarity.
+i2b2_for_qi a Goal; u:label "repurpose i2b2\\nfor Quality Improvement";
+  serves [ u:label "KUMC KUH" ],
+         [ u:label "HSI for PCORI" ],
+         [ u:label "MI external growth@@?"];
+  how PopHealthKUMC, CohortCharacterization.
+PopHealthKUMC u:label "Pop Health\\nKUMC".
+CohortCharacterization u:label "Cohort Characterization".
+
+site_i2b2 [ by VL] PopHealthKUMC .
+VL name "Vince Leonardo - KUMC".
+
+gpc_ontology [ by [ name "Wendy He" ] ] CohortCharacterization.
+
+EMR output Clarity.
 EMR a DB.
 Clarity a DB.
 
-Clarity ETL i2b2.
-i2b2 a StarSchema.
+Clarity ETL site_i2b2.
+site_i2b2 a StarSchema;
+  has term FLO_MEAS_ID_123.
+
+map1 u:label "(1)";
+  input FLO_MEAS_ID_123;
+  output LOINC_456.
+
+gpc_ontology u:label "GPC ontology";
+  part Vitals;
+  cuz PROs, cardio.
+
+Vitals u:label "(2) Obs / Vitals";
+  has term LOINC_456.
+
+map3 u:label "(3)";
+  input gpc_ontology;
+  [ by DC_JK ] cdm_i2b2.
+DC_JK name "Dan C. and Jeff K.".
+
+cdm_i2b2 u:label "PCORI CDM ont\\nin i2b2".
 
 
 #######
 # workflow style
-dot:EdgeProperty is rdf:type of feeds, ETL.
+why a dot:EdgeProperty.
+part a dot:EdgeProperty.
+
+term u:subPropertyOf part.
+term u:range Term.
+Term u:subClassOf LocallyNamed.
+
+ETL u:subPropertyOf output.
+
+input u:subPropertyOf how.
+output u:subPropertyOf why.
+
+serves u:range Goal; u:subPropertyOf why.
+cuz u:range LocallyNamed, Goal; u:subPropertyOf why.
+
+how owl:inverseOf why.
 
 LocallyNamed is superclass of DB, StarSchema .
 
+{ ?g a Goal } => { theGraph dot:hasNode ?g. ?g dot:shape "none" }.
+
+name u:subPropertyOf u:label.
+by u:domain dot:EdgeProperty.
+#@@ rdf2dot.py doesn't grok edge labels
+{ ?p by [ u:label ?txt ] } => { ?p dot:label ?txt }. 
+
+u:label u:subPropertyOf dot:label.
+
 #######
 # dot (graphviz) style
 
 
 { ?ep a dot:EdgeProperty.
   ?g dot:hasNode [ ?ep ?n2 ].  } => { ?g dot:hasNode ?n2 }.
+{ ?ep a dot:EdgeProperty.
+  ?g dot:hasNode [ is ?ep of ?n2 ].  } => { ?g dot:hasNode ?n2 }.
+
+#########
+# How RDFS should have ended
+superclass u:subPropertyOf u:subClassOf . # actually owl:equivalentProperty
 
 ######
 # OWL
-superclass u:subPropertyOf u:subClassOf . # actually owl:equivalentProperty
+{ ?x [ owl:inverseOf ?p ] ?y } => { ?y ?p ?x }.