rdflib-django
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
Install rdflib-django with your package manager:
pip install rdflib-django
Add rdflib_django to your INSTALLED_APPS:
INSTALLED_APPS = (
# other apps
'rdflib_django'.
)
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.3
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.3.tar.gz | 14.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rdflib_django-0.3-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 56.9 kB
Release files / rdflib-django-0.3.tar.gz
| Download URL | rdflib-django-0.3.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de018e11e4dc70aeaf292f956896f25f1f05f99643e0fcc1fc3c1cd9ddfc9e31
|
|
BLAKE2b-256 checksum How to use checksums |
9f11961f8fc32c7fe945b08031c310c265cb37a05c7e3efa6dedd4a9927ba3c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rdflib_django-0.3-py2.7.egg
| Download URL | rdflib_django-0.3-py2.7.egg |
|---|---|
| Size | 42.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d4691b34f768f8bbddf625f69a51ca23d0032908ae70292729307a93c90738ee
|
|
BLAKE2b-256 checksum How to use checksums |
0982e0643977c1cdcc8612f60738c6809c0ee6eaaa19b67295729fbe35ca2a5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |