Skip to main content

Associative memory and categories based on a directed acyclic graph data structure

Project description

OntoDAG

tests PyPI license

Associative memory and categories based on a directed acyclic graph data structure

Documentation

  • User Guide — installation, tutorial, Python API, command line, web app/REST, file formats, troubleshooting. Start here.
  • How It Works Inside — the design in plain language (canonical form, query planning, content-addressed persistence).
  • Roadmap — delivered, queued, parked, and research horizon.
  • docs/SWARM_DESIGN.md, docs/SEMANTIC_CODES.md — engineering design documents.

See also ontodag-fs: any OntoDAG store can be browsed as a filesystem — paths are category queries, files are classified objects stored on Swarm, FUSE-mountable (odag-fs, which shares odag's store settings).

Specification

A Directed Acyclic Graph (DAG) associative storage and category manager in Python. You can store items into a ontodag and recall items from it. To store or "put" an item into a ontodag, you give it a name and a set of other names of already existing items that are its supercategories. To recall or "get", you specify a set of item names to get all items that are subcategories of all these items; alternatives are one word away (odag get Dog Pet or Cat, get_any in Python).

Categories can also carry typed values: declare weight as a dimension and weight(3kg) becomes an ordinary category whose ordering OntoDAG computes — odag get 'weight(..5kg)' finds the 3 kg parcel with no edge ever stored between them, at any threshold, with exact integer arithmetic. Ranges (1kg..5kg), timestamps and date ranges, hierarchical codes like geohash cells, and does-it-fit size tuples all work the same way. See User Guide §4.7 and the design record docs/DIMENSIONS.md.

Roadmap

The roadmap — what is done, what is queued next, what is parked and why — is in docs/ROADMAP.md. Longer-term goals for the database direction (and the features deliberately not built yet) are in docs/DATABASE_DIRECTION.md; the day-to-day task list is in CLAUDE.md.

Potential Applications

  • Using the ontology graph for content categorization instead of folders
  • Replace content tags with a more structured ontology
  • Access control (ACT) groups
  • Memberships in organizations and gate content based on membership
  • Communication channel groups defined by the ontology
  • Fostering deals within a universal marketplace for services and goods

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

ontodag-0.7.0.tar.gz (87.3 kB view details)

Uploaded Source

Built Distribution

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

ontodag-0.7.0-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

Details for the file ontodag-0.7.0.tar.gz.

File metadata

  • Download URL: ontodag-0.7.0.tar.gz
  • Upload date:
  • Size: 87.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ontodag-0.7.0.tar.gz
Algorithm Hash digest
SHA256 2514beaae5e4b57bd7a3a1352ae79efc2f135e9e47579ada68ae44974668c788
MD5 f0258bc0432863b85802fe417276b244
BLAKE2b-256 3725ee8107d4611dc942d58618285f563992e7665bbb5baa7e4d3d69b8d2640b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ontodag-0.7.0.tar.gz:

Publisher: publish.yml on petfold/ontodag

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

File details

Details for the file ontodag-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: ontodag-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 48.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ontodag-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bbecd7e6e28528c3a1fdc488b17783b0638136d4ecb3e63d5fd5314c843761b
MD5 d566312338db08a74555e053d43961e9
BLAKE2b-256 d757b0f453242353eddd1bb713bbcf45ed35083b539a024529112c99e42d4d99

See more details on using hashes here.

Provenance

The following attestation bundles were made for ontodag-0.7.0-py3-none-any.whl:

Publisher: publish.yml on petfold/ontodag

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