Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Utilities to generate sample data as SMArt RDF
branch: master

This branch is 151 commits behind smart-classic:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
data
developer-supplied-data
generated-data
maps
ri-data
.gitignore
README.txt

README.txt

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

Something went wrong with that request. Please try again.