Commit 3169bdb1 authored by R.W.Majeed's avatar R.W.Majeed

Refactoring

parent 63e5175b
package de.sekmi.histream.i2b2;
package de.sekmi.histream.i2b2.ont;
import java.io.File;
import java.io.FileInputStream;
......@@ -20,8 +20,8 @@ import de.sekmi.histream.ontology.Concept;
import de.sekmi.histream.ontology.Ontology;
import de.sekmi.histream.ontology.OntologyException;
public class OntologyImport implements AutoCloseable{
private static final Logger log = Logger.getLogger(OntologyImport.class.getName());
public class Import implements AutoCloseable{
private static final Logger log = Logger.getLogger(Import.class.getName());
private Ontology ontology;
private Connection dbMeta;
private Connection dbData;
......@@ -39,7 +39,7 @@ public class OntologyImport implements AutoCloseable{
private String sourceId;
private Timestamp sourceTimestamp;
public OntologyImport(){
public Import(){
}
......@@ -284,7 +284,7 @@ public class OntologyImport implements AutoCloseable{
}
Properties props;
OntologyImport o = new OntologyImport();
Import o = new Import();
// open database
props = new Properties();
......
/**
* Interfaces to i2b2 ontology
*
* @author Raphael
*
*/
package de.sekmi.histream.i2b2.ont;
\ No newline at end of file
......@@ -19,13 +19,12 @@ Import Data into the i2b2 Data Warehouse
Easy way:
1. copy/unzip the binary distribution ..-i2b2.zip (or ..-full.zip) from distribution/target.
2. adjust the database settings in histream.xml
3. To import data into i2b2 run `startup examples/dwh-eav.xml` or `startup examples/dwh-eav.xml`
3. To import data into i2b2 run `startup examples/dwh-eav.xml` or `startup examples/dwh-flat.txt`
Import SKOS ontology into i2b2
------------------------------
Incomplete.
1. copy/unzip the binary distribution ..-full.zip from distribution/target.
The plugins histream-skos and histream-i2b2 are needed.
2. adjust examples/ontology-import.properties
3. adjust paths to RDF files in example/skos-ontology.properties
4. Run `java -cp "lib\*" de.sekmi.histream.i2b2.OntologyImport de.sekmi.histream.ontology.skos.Store example/skos-ontology.properties examples/ontology-import.properties`
4. Run `java -cp "lib\*" de.sekmi.histream.i2b2.ont.Import examples/skos-ontology.properties examples/i2b2-ont-import.properties`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment