Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

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.

Metadata

Release files for rdflib-django 0.2.dev-201210061248

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-201210061248
File Size Uploaded Provenance Actions
rdflib-django-0.2.dev-201210061248.tar.gz 15.6 kB Without provenance Details for rdflib-django-0.2.dev-201210061248.tar.gz

Built distribution (wheel)

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

Total release size: 60.7 kB

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

Download URL rdflib-django-0.2.dev-201210061248.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
371d49ea8b71cafe6189e1a053973aa5968b37af2f91366b03fa4c35bc5bab65
BLAKE2b-256 checksum
How to use checksums
dd935e952f95369d4719e75a8af702bfd2d949ccdcae0ca98f6ab179d6e00857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL rdflib_django-0.2.dev_201210061248-py2.7.egg
Size 45.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
5f6987f85597fdb8ecd82a5de1602946fe9c772b9fb147de2624078749d1aa41
BLAKE2b-256 checksum
How to use checksums
9c4e7ec6437327414487710bb8142c6fa2207bb18f37c4c09e830bb1dc138f22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rdflib-django 0.2.dev-201210061248

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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