This release is a pre-release and may not be stable for production use.
A store implementation for rdflib that uses Django as its backend.
The current implementation is context-aware but not formula-aware. Furthermore, performance has not yet been considered.
The implementation assumes that contexts are used for named graphs.
Quick start
Add the rdflib-django sources to your project, and add rdflib_django to your INSTALLED_APPS in settings.py.
You can now use the following examples to obtain a graph.
Getting a graph using rdflib’s store API:
from rdflib import Graph
graph = Graph('Django')
graph.open(create=True)
This example will give you a graph identified by a blank node within the default store.
Getting a conjunctive graph using rdflib’s store API:
from rdflib import ConjunctiveGraph
graph = ConjunctiveGraph('Django')
This example will give you a conjunctive graph in the default store.
Getting a named graph using rdflib-django’s API:
from rdflib_django import utils
graph = utils.get_named_graph('http://example.com')
Getting the conjunctive graph using rdflib-django’s API:
from rdflib_django import utils graph = utils.get_conjunctive_graph()
Management commands
rdflib-django includes two management commands to import and export RDF:
$ python manage.py import_rdf --context=http://example.com my_file.rdf $ python manage.py export_rdf --context=http://example.com
License
rdflib-django is licensed under the MIT license.
Release files for rdflib-django 0.2.dev-201210011245
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rdflib-django-0.2.dev-201210011245.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rdflib_django-0.2.dev_201210011245-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 51.3 kB
Release files / rdflib-django-0.2.dev-201210011245.tar.gz
| Download URL | rdflib-django-0.2.dev-201210011245.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2b753ab66cad04dcaf8454ae8a6c26692bbd8f2e7f874f5732e901cbeeaa618
|
|
BLAKE2b-256 checksum How to use checksums |
db4b97cf24da704c64dffec5a23b5e3fc9dd2bdf8ac6e4d825679265832ec791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rdflib_django-0.2.dev_201210011245-py2.7.egg
| Download URL | rdflib_django-0.2.dev_201210011245-py2.7.egg |
|---|---|
| Size | 38.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
691c2a93cae8aa33d01439ab5ee8a263e897872d71d57a5df046a85a0e55712a
|
|
BLAKE2b-256 checksum How to use checksums |
c8c0c3ff96cbb1f108fb0a6031879978a7aba02a21f0f5fc72ec93ac6fbd5549
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |