Metadata-Version: 2.1
Name: rdflib-django3
Version: 0.4.0
Summary: Store implementation for RDFlib using Django models as its backend (fork)
Home-page: http://github.com/devkral/rdflib-django3
License: MIT
Author: Alexander K
Author-email: devkral@web.de
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: django (>=3.0)
Requires-Dist: rdflib (>=3.2.1)
Project-URL: Repository, http://github.com/devkral/rdflib-django3
Description-Content-Type: text/markdown

# 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:

```sh
pip install rdflib-django3
```

Add `rdflib_django` to your `INSTALLED_APPS`:

```python

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:

```python

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:

```python

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:

```python

from rdflib_django import utils
graph = utils.get_named_graph('http://example.com')
```

Getting the conjunctive graph using rdflib-django3's API:

```python

from rdflib_django import utils
graph = utils.get_conjunctive_graph()
```

## Management commands

`rdflib-django3` includes two management commands to import and export
RDF:

```sh

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

[rdflib](http://pypi.python.org/pypi/rdflib/)

