Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_ct_ontology-1.0.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_ct_ontology-1.0.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

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

Hashes for django_ct_ontology-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9d81f8aee7a0211bd0a7ceb86928868a9a83317a826cf92302eb95bb602f28aa
MD5 2a24b54ae6c21822b666119a72d35fcf
BLAKE2b-256 2bd39baec75a1dab6276b36a513d63015fdadb5222a91c17de625e88021717d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_ct_ontology-1.0.0.tar.gz:

Publisher: release.yaml on Groupeffect/django-ct-ontology

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_ct_ontology-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_ct_ontology-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5349a805f466f8d0a4e883b6d7332182b14b3f84e19f373fe2997affb4d67b6e
MD5 c574826451f60070bd3582038b1c882f
BLAKE2b-256 9e792e33d68d06262b4b8ddece1591cdd499e2b07349f5f56420069458b5e5da

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page