Commit b89780bd authored by R.W.Majeed's avatar R.W.Majeed

Moved examples directories to top level of modules

parent a689bff6
......@@ -20,7 +20,7 @@ public class OntologyTest {
@Before
public void setupOntology()throws Exception{
store = new Store(new File("src/main/examples/test-ontology.ttl"));
store = new Store(new File("examples/test-ontology.ttl"));
}
@Test
......@@ -84,7 +84,7 @@ public class OntologyTest {
}
public static void main(String[] args) throws Exception{
try( Store store = new Store(new File("src/main/examples/test-ontology.n3")) ){
try( Store store = new Store(new File("examples/test-ontology.ttl")) ){
store.printConceptHierarchy();
Concept c = store.getConceptByNotation("Type");
......
ontology.class = de.sekmi.histream.ontology.skos.Store
rdf.file.1 = ../histream-skos/src/main/examples/test-ontology.ttl
rdf.file.1 = ../histream-skos/examples/test-ontology.ttl
......@@ -12,6 +12,6 @@ public class Demo {
public static void main(String args[]) throws Exception{
Import.main(new String[]{"../HIStream-i2b2/src/main/examples/skos-ontology.properties","../HIStream-i2b2/src/main/examples/i2b2-ont-import.properties"});
Import.main(new String[]{"../HIStream-i2b2/examples/skos-ontology.properties","../HIStream-i2b2/examples/i2b2-ont-import.properties"});
}
}
......@@ -15,7 +15,7 @@ public class DemoInsert {
public static void main(String[] args) throws Exception {
String[] files = new String[1];
files[0] = "c:/temp/dzl/eurIPF.txt";
files[0] = "../histream-core/src/main/examples/dwh-flat.txt";
files[0] = "../histream-core/examples/dwh-flat.txt";
RunConfiguration.readFiles(new File("c:/temp/dzl/histream.xml"),files);
}
......
......@@ -28,7 +28,7 @@
<fileSets>
<fileSet>
<outputDirectory>examples</outputDirectory>
<directory>src/main/examples</directory>
<directory>examples</directory>
</fileSet>
</fileSets>
</sources>
......
......@@ -26,7 +26,7 @@
<fileSets>
<fileSet>
<outputDirectory>examples</outputDirectory>
<directory>src/main/examples</directory>
<directory>examples</directory>
</fileSet>
</fileSets>
</sources>
......
......@@ -33,7 +33,7 @@ public class TestLoadConfig {
@Test
public void loadNewConfig(){
Configuration config = Configuration.fromFile(new File("src/main/examples/histream.xml"));
Configuration config = Configuration.fromFile(new File("examples/histream.xml"));
Assert.assertNotNull(config);
Assert.assertEquals(5, config.getPlugins().length);
Assert.assertEquals(1, config.getDestinations().length);
......
......@@ -155,14 +155,14 @@ public class FileObservationProviderTest {
@Test
public void testStAXReader() throws Exception {
ObservationSupplier xos = new XMLObservationSupplier(factory, new FileInputStream("src/main/examples/dwh-eav.xml"));
ObservationSupplier xos = new XMLObservationSupplier(factory, new FileInputStream("examples/dwh-eav.xml"));
StreamSupport.stream(AbstractObservationParser.nonNullSpliterator(xos), false).forEach(handler);
handler.finish();
}
@Test
public void testFlatReader() throws Exception {
ObservationSupplier s = new FlatObservationSupplier(factory, new FileInputStream("src/main/examples/dwh-flat.txt"));
ObservationSupplier s = new FlatObservationSupplier(factory, new FileInputStream("examples/dwh-flat.txt"));
StreamSupport.stream(AbstractObservationParser.nonNullSpliterator(s), false).forEach(handler);
handler.finish();
}
......
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