Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
/ django-graphs Public archive

A Django mixin and middleware for linking graphs to objects

License

Notifications You must be signed in to change notification settings

editorsnotes/django-graphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())}
    

About

A Django mixin and middleware for linking graphs to objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages