-
Notifications
You must be signed in to change notification settings - Fork 61
/
README.txt
39 lines (24 loc) · 1.27 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SMART TEST DATA GENERATOR
This generator uses the data files in the 'data' directory to generate
SMArt RDF test data. The files in the data directory are tab-delimited
tables that can be edited and extended with new data as needed.
All the python scripts are in the 'bin' directory, and should be run from
that directory. (The python code requires python 2.6 with argparse and
rdflib added via easy_install (on OSX 10.6); or just rdflib added on
Ubuntu 10.10.)
The main script for general use is generate.py, the other files in 'bin'
are basically modules supporting generate.py. The file 'testdata.py'
contains most of the constant declarations and utility functions that
drive the system configuration. The file 'generate.py' contains all
the RDF formatting code.
From the 'bin' directory, run:
python generate.py --help
To get a general help message.
The RC4 test data files in the 'test-data' directory were generated by:
python generate.py --write ../test-data
And the 'summary.txt' file was added to 'test-data' by running:
python generate.py --summary > ../test-data/summary.txt
A good way to look at a single patient, with patient ID, PID, is:
python generate.py --summary PID
Or to view the RDF for a given patient:
python generate.py --rdf PID | less