Metadata-Version: 2.1
Name: acdh-django-sparql
Version: 0.0.1
Summary: Basic query interface and proxy for any common triple store.
Home-page: https://github.com/acdh-oeaw/acdh-django-sparql
Author: Peter Andorfer
Author-email: peter.andorfer@oeaw.ac.at
License: MIT License
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Dist: Django (>=2.0)
Requires-Dist: rdflib (>=4.0)
Requires-Dist: SPARQLWrapper (==1.8.2)

=============================
acdh-django-sparql
=============================

.. image:: https://badge.fury.io/py/acdh-django-sparql.svg
    :target: https://badge.fury.io/py/acdh-django-sparql

Django-App providing a query interface and proxy for any common Triplestore.


Quickstart
----------

Install acdh-django-sparql:

    pip install acdh-django-sparql

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'sparql',
        ...
    )

Add django_sparql's URL patterns:

.. code-block:: python

    urlpatterns = [
        ...
        url(r'^sparql/', include('sparql.urls', namespace='sparql')),
        ...
    ]


Provide the endpoint and optional some log-in credentials for your Triplestore in some settings file:

.. code-block:: python

    BG_URL = "https://path-to-your-triple-store/sparql"
    BG_USER = "username"
    BG_PW = "password"


browse to https://my-project/sparql/query/ to reach the query interface

Via the django-admin interface you can create sample queries.

Licensing
---------

All code unless otherwise noted is licensed under the terms of the MIT License (MIT). Please refer to the file LICENSE in the root directory of this repository.


