django-ct-ontology is a Django application for generating sematic tripples and graphs for content types and more.
Project description
A Django application for handling database content types with rdf ontology and more.
Requirements
Python ≥ 3.12
Django ≥ 6.0
Runtime dependencies (installed automatically):
django-filter ≥ 25
djangorestframework ≥ 3.16
rdflib ≥ 7.6
Installation
Install from PyPI:
pip install django-ct-ontology
Or via uv:
uv add django-ct-ontology
Configuration
Add ontology to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
...
'ontology',
]
To include the API endpoints, add the following to your project’s urls.py:
from django.urls import path, include
urlpatterns = [
...
path('api/', include('ontology.urls')),
]
Settings
The following settings can be configured in your settings.py:
ONTOLOGY_DISABLE_MODELS: Set to True to disable loading the ontology database models and API routing. (Default: False)
ONTOLOGY_DISABLE_ADMIN: Set to True to disable registering the models in the Django admin interface. (Default: False)
API Endpoints
When mounted at api/ as shown above, the following endpoints are available:
/api/ontology/predicate/
/api/ontology/subject/
/api/ontology/object/
/api/ontology/triple/
/api/ontology/domain/
/api/ontology/graph/
These endpoints provide standard CRUD operations based on your authentication status.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_ct_ontology-1.0.0.tar.gz.
File metadata
- Download URL: django_ct_ontology-1.0.0.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d81f8aee7a0211bd0a7ceb86928868a9a83317a826cf92302eb95bb602f28aa
|
|
| MD5 |
2a24b54ae6c21822b666119a72d35fcf
|
|
| BLAKE2b-256 |
2bd39baec75a1dab6276b36a513d63015fdadb5222a91c17de625e88021717d1
|
Provenance
The following attestation bundles were made for django_ct_ontology-1.0.0.tar.gz:
Publisher:
release.yaml on Groupeffect/django-ct-ontology
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_ct_ontology-1.0.0.tar.gz -
Subject digest:
9d81f8aee7a0211bd0a7ceb86928868a9a83317a826cf92302eb95bb602f28aa - Sigstore transparency entry: 1189228701
- Sigstore integration time:
-
Permalink:
Groupeffect/django-ct-ontology@2f3220247a95e8dc0d841d5b3fafc3ebaeecd5e4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Groupeffect
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@2f3220247a95e8dc0d841d5b3fafc3ebaeecd5e4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_ct_ontology-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_ct_ontology-1.0.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5349a805f466f8d0a4e883b6d7332182b14b3f84e19f373fe2997affb4d67b6e
|
|
| MD5 |
c574826451f60070bd3582038b1c882f
|
|
| BLAKE2b-256 |
9e792e33d68d06262b4b8ddece1591cdd499e2b07349f5f56420069458b5e5da
|
Provenance
The following attestation bundles were made for django_ct_ontology-1.0.0-py3-none-any.whl:
Publisher:
release.yaml on Groupeffect/django-ct-ontology
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_ct_ontology-1.0.0-py3-none-any.whl -
Subject digest:
5349a805f466f8d0a4e883b6d7332182b14b3f84e19f373fe2997affb4d67b6e - Sigstore transparency entry: 1189228719
- Sigstore integration time:
-
Permalink:
Groupeffect/django-ct-ontology@2f3220247a95e8dc0d841d5b3fafc3ebaeecd5e4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Groupeffect
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@2f3220247a95e8dc0d841d5b3fafc3ebaeecd5e4 -
Trigger Event:
push
-
Statement type: