Command Line Utilities

There is only one command-line utility at the present stage, cra2009 that loads the 2009 version of the CRA data into an RDF store.

cra2009

This utility is implemented by the ukgov.hmt.cra.CRA2009 class.

For performance reasons, this doesn’t use the handler machinery from ORDF as such. Rather it looks at the handler object for writers that provide an RDFLib compatible storage interface and uses these directly. The supported ones are ordf.handler.rdf.RDFLib and ordf.handler.rdf.FourStore though the latter is recommended for a full load of the CRA data since it is rather large. There will be no changesets associated with this loading operation

As a result of this, if you have configured ORDF with multiple storage back-ends, the data will only exist in one. To push the data to the other indices, you will have to run the ordf command with the ‘–reindex’ option specifying the triplestore with –readers and any other index with –writers.

insert more documentation and usage examples here

Table Of Contents

Previous topic

HM Treasury Country and Regional Analysis

Next topic

Python API Documentation

This Page