Skip to main content
Pre-release

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.

https://secure.travis-ci.org/publysher/rdflib-django.png

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.2.dev-201210060903

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rdflib-django 0.2.dev-201210060903
File Size Uploaded
rdflib-django-0.2.dev-201210060903.tar.gz 14.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rdflib-django 0.2.dev-201210060903
File Interpreter ABI Platform
rdflib_django-0.2.dev_201210060903-py2.7.egg Legacy Egg format - - Details

Total release size: 57.5 kB

Release files / rdflib-django-0.2.dev-201210060903.tar.gz

Download URL rdflib-django-0.2.dev-201210060903.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
db09396f76ded5629c135d3a5d4172ced2a7c59770ceb5e10559b656ea0a22a9
BLAKE2b-256 checksum
How to use checksums
7d8176f9a15bf4994b8570c0c7aedfff0a9c6e1c37407524e40be5a31e9556a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rdflib_django-0.2.dev_201210060903-py2.7.egg

Download URL rdflib_django-0.2.dev_201210060903-py2.7.egg
Size 42.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
336c815c8b50daa10d403cb5990973f369c185c9c590820df25cc5455035d4dd
BLAKE2b-256 checksum
How to use checksums
475580cd1c89f34ebd200c3c8a40297fc1cf37f305af80bd34c4621a4626219a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page