Comments (14)
The mock-up contains a functioning separation between data access,
business logic, communication logic, and user interface, which is
already implementing both running client/server and single-machine,
implementing the thoughts of Nils, and which have been tested by him. It
will of course need refinement along the way.
I will build a template for Laney and rewrite the documentation, so you
can write your part to be plugged into the skeleton. If I am lucky it
can be done in about a week's time.
from hre--history-research-environment.
from hre--history-research-environment.
Just a general comment on data formats, which in and around HRE could be XML, JSON, H2, CSV, unstructured, or Java/Eclipse preference files.
We have earlier discussed preferring JSON to XML as the trend has clearly gone this way.
For properties/preferences in the HRE application the internal representation is a properties/preferences file, which is maintained by the Eclipse platform. From the user side it is maintained in Preferences pages. So the operations and API is already provided by the platform:
http://www.myerichsen.net/HRE/Shot1.png
http://www.myerichsen.net/HRE/Shot2.png
http://www.myerichsen.net/HRE/Shot3.png
Definitions to be imported into HRE could be any format appropriate to other systems producing them.
That could be a installation configuration file, perhaps?
This what the HRE skeleton produces right now:
CSMODE=DIRECT
DBNAME=C:\Users\michael\Test1
H2TRACELEVEL=INFO
HELPSYSTEMPORT=8000
LOGLEVEL=INFO
SERVERADDRESS=127.0.0.1:8000
SERVERPORT=8001
TLS=true
UPDATESITE=http://www.myerichsen.net/HRE/update
USERID=sa
eclipse.preferences.version=1
project.0.lastupdated=2000-01-01 01:01:01
project.0.localserver=LOCAL
project.0.name=HRE
project.0.path=c:/client/temp/HRE
project.0.summary=This is the default project
project.1.lastupdated=2018-06-12 12:49:09
project.1.localserver=LOCAL
project.1.name=Test 1 Name
project.1.path=Test1.h2.db
project.1.summary=This project is the first test project, which might be useful - or perhaps not
projectcount=2
The preferences are persisted by Eclipse in
<HRE_home>\workspace.metadata.plugins\org.eclipse.core.runtime.settings\org.historyresearchenvironment.client.prefs
and are not expected to be read or written by the user.
Michael
from hre--history-research-environment.
from hre--history-research-environment.
Hi Robin
I am not aware of such a size limitation in JSON. Is there anything which I have failed to see? The JSON support in the mock up is coded using org.json Java classes, and I don't find any limitations there.
Br. Michael
from hre--history-research-environment.
from hre--history-research-environment.
Hi Robin
For this purpose I would choose .csv (comma separated values). First, it is directly importable in spreadsheets and other databases, and secondly, H2 includes native functionality to import and export csv. I have already implemented that in the table csv import and export functionality in the DBADMIN and now in the skeleton.
final Csv csvFile = new Csv();
csvFile.setFieldSeparatorWrite(",");
csvFile.write(fileName, rs, "UTF-8");
and
final H2TableProvider provider = new H2TableProvider(tableName);
rowCount = provider.importCsv(fileName);
Br Michael
from hre--history-research-environment.
from hre--history-research-environment.
Hi Robin
I only suggested csv for database and table import and export, using H2 features.
For properties I would suggest java properties files.
As you can see above I am using two levels for project definitions. Such a naming scheme would also fit three levels.
Br , Michael
from hre--history-research-environment.
Have started pulling the parts for a sample together.
Added a menu item to start the embedded HRE server.
Added a sample H2 VIEW definition in the NewDatabaseProvider class.
from hre--history-research-environment.
Class SampleView in package org.historyresearchenvironment.dataaccess generated from H2 VIEW using JPA.
from hre--history-research-environment.
Finished and uploaded to Github.
from hre--history-research-environment.
Will be uploaded as build 0.1.0.201807152107
from hre--history-research-environment.
Closed with build 0.1.0.201807160730.
from hre--history-research-environment.
Related Issues (20)
- Java Class Diagrams HOT 2
- Build: Force Maven/Tycho to use the current version of H2 HOT 9
- Core: Preferences are not set to default at start up HOT 1
- Core: Help system fails
- Sample: Editor does not catch key from navigator HOT 1
- DBADMIN: Perspective fails to display
- Data Access: Build a generator tool to generate data access classes for each table HOT 2
- Deployment: Add HRE.bat and HRE.sh HOT 3
- SERVER: How do we transmit the state of a GUI from one client machine to another?
- SERVER: How do we imagine the HRE Server running on a Hosting Service?
- DATABASE: How do we create a coherent Subset of a Database?
- REPORTING: Which output formats to support? HOT 2
- Importing from TMG? HOT 5
- DATABASE: Remove 1.3.168 Requirement in code and cookbook HOT 2
- Database Primary Keys HOT 7
- Client: Build prototype Person and Location views
- Are any screenshot of HRE as it is now available? HOT 1
- javax.xml.bind package no more available HOT 1
- java.xml.ws.annotation package no more available HOT 1
- This is only a suggestion of support for other database backends HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hre--history-research-environment.