PatMartin / Dex

Dex : The Data Explorer -- A data visualization tool written in Java/Groovy/JavaFX capable of powerful ETL and publishing web visualizations.
https://dexvis.net
Apache License 2.0
1.32k stars 310 forks source link

sample projects, absolute vs relative paths #5

Closed ainthek closed 7 years ago

ainthek commented 8 years ago

I'm trying to run some of the projects in ./projects folder

however it seems they contain ABSOLUTE PATHS.

Is it possible to specify project relative paths somehow ?

project/ConnectedWords.dex:            <fileText>C:\dex2ws\Dex\data\PrimeMinisters.csv</fileText>
project/MurderRateByState.dex:            <fileText>C:\dex2ws\Dex\data\CrimeStatebyState.csv</fileText>
project/OrbitalLayout.dex:            <fileText>C:\dex2ws\Dex\data\presidents.csv</fileText>
project/Player_BirthsAndDeaths.dex:            <fileText>C:\dex2ws\Dex\data\BirthsAndDeaths.csv</fileText>
project/Player_World.dex:            <fileText>D:\backup\dexciti-2015.11.10\dex2ws\Dex\data\world\health\e5b0ce31-5150-4f0a-a56d-46bbf38f73a4_Data.csv</fileText
project/VisGCBarChart.dex:            <fileText>C:\dex2ws\Dex\data\gc.csv</fileText>
project/VisNetwork.dex:            <fileText>C:\dex\data\thrones.csv</fileText>
project/VisTimeBarChart.dex:            <fileText>C:\dex2ws\Dex\data\gc.csv</fileText>
project/VisTimeline.dex:            <fileText>C:\dex\data\presidents2.csv</fileText>
project/VisTimeline_Complaints.dex:            <fileText>C:\dex\data\ConsumerComplaints.csv</fileText>
project/addrownum.dex:            <fileText>C:\dex\data\Census2014.csv</fileText>
project/c3_line_multiples.dex:            <fileText>C:\dex2ws\Dex\data\CrimeStatebyState.csv</fileText>
project/cars.dex:            <fileText>C:\dex\data\cars04.csv</fileText>
project/census.dex:            <fileText>C:\dex\data\Census2014.csv</fileText>
project/colleges.dex:            <fileText>C:\dex\data\colleges\Most+Recent+Cohorts+(Treasury+Elements).csv</fileText>
project/createAccred.dex:            <fileText>C:\dex\data\colleges\Accreditation_2015_09.csv</fileText>
project/dbinit.dex:            <fileText>C:\dex2ws\Dex\data\presidents.csv</fileText>
project/dend1.dex:            <fileText>C:\dex2ws\Dex\data\presidents.csv</fileText>
project/dend2.dex:            <fileText>C:\dex2ws\Dex\data\presidents.csv</fileText>
project/desc.dex:            <fileText>data\bank-data.csv</fileText>
project/drwho.dex:            <fileText>C:\dex2ws\Dex\data\drwho.csv</fileText>
project/gc.dex:            <fileText>C:\dex2ws\Dex\data\gc.csv</fileText>
project/meeks.dex:            <fileText>C:\dex2ws\Dex\data\presidents.csv</fileText>
project/network.dex:            <fileText>C:\dex2ws\Dex\data\PrimeMinisters.csv</fileText>
project/p5.dex:            <fileText>C:\dex2ws\Dex\data\gc.csv</fileText>
project/par.dex:            <fileText>C:\dex\data\Census2014.csv</fileText>
project/presidents.dex:            <fileText>C:\dex2ws\Dex\data\presidents.csv</fileText>
project/processing.dex:            <fileText>C:\dex2ws\Dex\data\gc.csv</fileText>
project/radar.dex:            <fileText>C:\dex2ws\Dex\data\sales.csv</fileText>
project/sequencediagram.dex:            <fileText>C:\dex\data\thrones.csv</fileText>
project/sqllite.dex:            <fileText>C:\dex2ws\Dex\data\football.csv</fileText>
project/state.dex:            <fileText>C:\dex2ws\Dex\data\presidents.csv</fileText>
project/thrones.dex:            <fileText>C:\dex\data\thrones.csv</fileText>
project/timestamp.dex:            <fileText>C:\dex\data\timestamps.csv</fileText>
project/uml.dex:            <fileText>C:\dex\data\thrones.csv</fileText>
project/uml.dex:            <fileText>C:\dex2ws\Dex\data\drwho.csv</fileText>
project/viewref.dex:            <fileText>data\gc.csv</fileText>
ainthek commented 8 years ago

not only this, it also refers to files thet are not in data folder, like Census2014.csv, which is now probably cencus.csv

PatMartin commented 8 years ago

I am aware of this irritating fact. Its already on a to-do list. I had hand-edited some relative paths for the release I was putting together, but thats just a workaround until I rewrite the serializer to recognize curdir and substitute. Thanks for the bug reports BTW. It helps keep me motivated. I tend to live with some of the pain, especially when its a minor irritant to me, but hours of mundane coding to remedy correctly.

I'll bump this one up in priority.

Date: Sun, 17 Jul 2016 02:36:48 -0700 From: notifications@github.com To: Dex@noreply.github.com Subject: [PatMartin/Dex] sample projects, absolute vs relative paths (#5)

I'm trying to run some of the projects in ./projects folder

however it seems they contain ABSOLUTE PATHS.

Is it possible to specify project relative paths somehow ?

project/ConnectedWords.dex: C:\dex2ws\Dex\data\PrimeMinisters.csv project/MurderRateByState.dex: C:\dex2ws\Dex\data\CrimeStatebyState.csv project/OrbitalLayout.dex: C:\dex2ws\Dex\data\presidents.csv project/Player_BirthsAndDeaths.dex: C:\dex2ws\Dex\data\BirthsAndDeaths.csv project/Player_World.dex: D:\backup\dexciti-2015.11.10\dex2ws\Dex\data\world\health\e5b0ce31-5150-4f0a-a56d-46bbf38f73a4_Data.csv</fileText project/VisGCBarChart.dex: C:\dex2ws\Dex\data\gc.csv project/VisNetwork.dex: C:\dex\data\thrones.csv project/VisTimeBarChart.dex: C:\dex2ws\Dex\data\gc.csv project/VisTimeline.dex: C:\dex\data\presidents2.csv project/VisTimeline_Complaints.dex: C:\dex\data\ConsumerComplaints.csv project/addrownum.dex: C:\dex\data\Census2014.csv project/c3_line_multiples.dex: C:\dex2ws\Dex\data\CrimeStatebyState.csv project/cars.dex: C:\dex\data\cars04.csv project/census.dex: C:\dex\data\Census2014.csv project/colleges.dex: C:\dex\data\colleges\Most+Recent+Cohorts+(Treasury+Elements).csv project/createAccred.dex: C:\dex\data\colleges\Accreditation_2015_09.csv project/dbinit.dex: C:\dex2ws\Dex\data\presidents.csv project/dend1.dex: C:\dex2ws\Dex\data\presidents.csv project/dend2.dex: C:\dex2ws\Dex\data\presidents.csv project/desc.dex: data\bank-data.csv project/drwho.dex: C:\dex2ws\Dex\data\drwho.csv project/gc.dex: C:\dex2ws\Dex\data\gc.csv project/meeks.dex: C:\dex2ws\Dex\data\presidents.csv project/network.dex: C:\dex2ws\Dex\data\PrimeMinisters.csv project/p5.dex: C:\dex2ws\Dex\data\gc.csv project/par.dex: C:\dex\data\Census2014.csv project/presidents.dex: C:\dex2ws\Dex\data\presidents.csv project/processing.dex: C:\dex2ws\Dex\data\gc.csv project/radar.dex: C:\dex2ws\Dex\data\sales.csv project/sequencediagram.dex: C:\dex\data\thrones.csv project/sqllite.dex: C:\dex2ws\Dex\data\football.csv project/state.dex: C:\dex2ws\Dex\data\presidents.csv project/thrones.dex: C:\dex\data\thrones.csv project/timestamp.dex: C:\dex\data\timestamps.csv project/uml.dex: C:\dex\data\thrones.csv project/uml.dex: C:\dex2ws\Dex\data\drwho.csv project/viewref.dex: data\gc.csv

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

PatMartin commented 8 years ago

I don't really make an effort to keep the projects directory fully sanitized. I'll probably remove the projects from github other than a small number of curated ones I am ok with maintaining. Otherwise it becomes too much for one person to keep up with.

Date: Sun, 17 Jul 2016 02:44:22 -0700 From: notifications@github.com To: Dex@noreply.github.com Subject: Re: [PatMartin/Dex] sample projects, absolute vs relative paths (#5)

not only this, it also refers to files thet are not in data folder, like Census2014.csv, which is now probably cencus.csv

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

PatMartin commented 7 years ago

Relative paths are now in effect as of 0.9.