Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 748 Bytes

README.rst

File metadata and controls

30 lines (20 loc) · 748 Bytes

Graphs

Graphs provides a mixin for associating instances of Django models with graphs of data, and middleware for associating an RDFLib Store with requests.

Quick start

  1. Run tests like this:

    django-admin.py test --settings=graphs.testsettings
    
  2. Add "graphs" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'graphs',
    )
    
  3. Put your triplestore info in a STORE setting:

    STORE = {'TYPE':'SQLAlchemy',  # name of rdflib Store plugin
             'ID':'mytriplestore', # your store identifier
                                   # plugin-specific configuration string
             'CONFIG':'sqlite:///{}/test.sqlite'.format(os.getcwd())}