rdflib-django3
fork from rdflib-django with multi store architecture, python3 and recent rdflib compatibility.
A store implementation for rdflib that uses Django as its backend.
The current implementation is context-aware but not formula-aware.
The implementation assumes that contexts are used for named graphs.
Quick start
Install rdflib-django3 with your package manager:
pip install rdflib-django3
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', identifier="fooo")
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-django3's API:
from rdflib_django import utils
graph = utils.get_conjunctive_graph()
Management commands
rdflib-django3 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-django3 is licensed under the MIT license.
Links
Metadata
Release files for rdflib-django3 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rdflib_django3-0.4.1.tar.gz | 11.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rdflib_django3-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.1 kB
Release files / rdflib_django3-0.4.1.tar.gz
| Download URL | rdflib_django3-0.4.1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d33882adc811c6cf1d8de362dee9310c1617663d4e900e6ff82c561d79065a0
|
|
BLAKE2b-256 checksum How to use checksums |
c2a2ea7f80553461bfde159be11970772838c50d6a098641672f4113f303a132
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.11.5 Linux/6.5.9-arch2-1
|
Release files / rdflib_django3-0.4.1-py3-none-any.whl
| Download URL | rdflib_django3-0.4.1-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
669a284137db08f1c8c24dba0aae05f7962a2d66932909e6f4c06026cebb29f2
|
|
BLAKE2b-256 checksum How to use checksums |
826173a98f2fff961ae19028e96ec4065fa7e9e4333a628dd0ff914f624c333e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.11.5 Linux/6.5.9-arch2-1
|
Security for rdflib-django3 0.4.1
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.