You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Ontology scripts

 

ontology_create_user.sql - Creates the shrine_ont user, for loading the SHRINE ontology

ontology_create_tables.sql - Creates shrine_ont, creates SHRINE, TABLE_ACCESS, and SCHEMES tables, and sets up schemas within tables.

DB_Lookups script to add ontology to i2b2hive

 

  1. ontology_create_user.sql
  2. ontology_create_tables.sql
  3. db_lookups.sql

 

ontology table access

 

 

INSERT into {{ shrine_i2b2_ont.schema }}.TABLE_ACCESS
( C_TABLE_CD, C_TABLE_NAME, C_PROTECTED_ACCESS, C_HLEVEL, C_NAME, C_FULLNAME, C_SYNONYM_CD, C_VISUALATTRIBUTES, C_TOOLTIP, C_FACTTABLECOLUMN, C_DIMTABLENAME, C_COLUMNNAME, C_COLUMNDATATYPE, C_DIMCODE, C_OPERATOR) values ( 'SHRINE', 'SHRINE', 'N', 0, 'SHRINE Ontology', '\SHRINE\', 'N', 'CA', 'SHRINE Ontology', 'concept_cd', 'concept_dimension', 'concept_path', 'T', '\SHRINE\', 'LIKE');
  • No labels