PennTURBO / semantic-engine

TURBO semantic engine (Drivetrain). Transforms source-dependent RDF data into a source-independent, semantically rich RDF model.
6 stars 0 forks source link

Handoff time: Acorn file edits #67

Closed turbomam closed 4 years ago

turbomam commented 5 years ago

@greenguy33 ... please reply if I did anything wrong or incomplete, OR close if this makes sense and looks OK.

in turbo_valid_graph_specification.ttl

drivetrain:PatientRegden 
  a drivetrain:MultiObjectDescriber ;
.

drivetrain:HardcodedPatientRegden 
  a drivetrain:InstanceToTermRecipe ;
  drivetrain:multiplicity drivetrain:1-1 ;
  drivetrain:object drivetrain:PatientRegden ;
  drivetrain:predicate obo:BFO_0000051 ;
  drivetrain:subject obo:IAO_0000578  ;
.

and

drivetrain:WrittenNotDispensedLiteral a drivetrain:TurboGraphLiteralValue .
drivetrain:birth_datetime_DateLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:condition_occurrence_id_IntegerLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:condition_start_datetime_DateLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:condition_type_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:drug_code_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:encounter_cridsym_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:encounter_end_datetime_DateLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:encounter_keysym_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:encounter_start_datetime_DateLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:encounter_type_code_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:gender_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:hce_id_IntegerLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:measurement_datetime_DateLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:measurement_id_IntegerLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:measurement_source_concept_id_IntegerLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:measurement_type_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:measurement_units_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:measurement_vocabulary_id_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:person_cridsym_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:person_keysym_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:preceding_encounter_keysym_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:prescription_id_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:prescription_start_datetime_DateLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:proc_id_IntegerLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:procedure_cridsym_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:procedure_datetime_DateLiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:procedure_type_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:race_LiteralValue a drivetrain:TurboGraphLiteralValue .
drivetrain:value_as_number_IntegerLiteralValue a drivetrain:TurboGraphLiteralValue .

in post_icbo_synthea_omop_cnp_transformation_instructions.ttl

drivetrain:PatientRegden 
  drivetrain:range ontologies:TURBO_0010255 ;
.

and

drivetrain:WrittenNotDispensedLiteral a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:birth_datetime_DateLiteralValue a drivetrain:TurboGraphDateLiteralValue .
drivetrain:condition_occurrence_id_IntegerLiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:condition_start_datetime_DateLiteralValue a drivetrain:TurboGraphDateLiteralValue .
drivetrain:condition_type_LiteralValue a drivetrain:TurboGraphStringLiteralValue .
drivetrain:drug_code_LiteralValue a drivetrain:TurboGraphStringLiteralValue .
drivetrain:encounter_cridsym_LiteralValue a drivetrain:TurboGraphStringLiteralValue .
drivetrain:encounter_end_datetime_DateLiteralValue a drivetrain:TurboGraphDateLiteralValue .
drivetrain:encounter_keysym_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:encounter_start_datetime_DateLiteralValue a drivetrain:TurboGraphDateLiteralValue .
drivetrain:encounter_type_code_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:gender_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:hce_id_IntegerLiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:measurement_datetime_DateLiteralValue a drivetrain:TurboGraphDateLiteralValue .
drivetrain:measurement_id_IntegerLiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:measurement_source_concept_id_IntegerLiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:measurement_type_LiteralValue a drivetrain:TurboGraphStringLiteralValue .
drivetrain:measurement_units_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:measurement_vocabulary_id_LiteralValue a drivetrain:TurboGraphStringLiteralValue .
drivetrain:person_cridsym_LiteralValue a drivetrain:TurboGraphStringLiteralValue .
drivetrain:person_keysym_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:preceding_encounter_keysym_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:prescription_id_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:prescription_start_datetime_DateLiteralValue a drivetrain:TurboGraphDateLiteralValue .
drivetrain:proc_id_IntegerLiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:procedure_cridsym_LiteralValue a drivetrain:TurboGraphStringLiteralValue .
drivetrain:procedure_datetime_DateLiteralValue a drivetrain:TurboGraphDateLiteralValue .
drivetrain:procedure_type_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:race_LiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
drivetrain:value_as_number_IntegerLiteralValue a drivetrain:TurboGraphIntegerLiteralValue .
greenguy33 commented 5 years ago

@turbomam It looks like all column names have been hardcoded as OMOP columns in the graph specification. I've fixed a few of them but there are too many to deal with right now (looks like 40+). These should definitely be moved to the instruction set. You can provide an object describer implementation in the instruction set with a range of 1 URI.