askwol
Check OWL ontologies during modelling and before publication. Get a report on namespaces, terms, metadata, documentation, and selected logical issues, plus an interactive class diagram in the web app.
Supported formats: Turtle (.ttl), RDF/XML (.rdf, .owl), JSON-LD (.jsonld), N-Triples (.nt), and N3 (.n3). See the full list of checks; each report section links to the matching guide entry.
Findings count individual issues, not checks:
| Severity | Meaning |
|---|---|
| Error | A parsing failure or a detected logical or structural problem. |
| Warning | A likely mistake or interoperability problem. |
| Recommendation | A publishing convention, such as metadata, licensing, or documentation. |
Reasoning uses the submitted document without imports. Passing these checks does not establish overall consistency or complete OWL conformance.
Install
Python 3.10+ is required. For the CLI only, install with pipx:
pipx install askwol
For local development, the web app, and the Python API (macOS/Linux):
git clone https://github.com/TDCC-NES/askwol.git
cd askwol
python3 -m venv .venv
.venv/bin/python -m pip install -e ".[dev]"
Run locally
Run from the repository folder containing pyproject.toml, using the virtual environment above:
ASKWOL_ROOT_PATH= PYTHONPATH=src .venv/bin/python -m uvicorn \
askwol.web:app --reload --reload-dir src --port 8000
Open the checker, guide, or API docs. Python changes reload automatically; refresh the browser to see them. Stop with Ctrl+C.
CLI
askwol check ontology.ttl
askwol check ontology.ttl --format json
askwol check ontology.ttl --format markdown -o report.md
askwol check ontology.ttl --skip-resolution
askwol check ontology.data --input-format turtle --base-uri https://example.org/ontology
For a source install, use .venv/bin/askwol instead of askwol.
- The CLI accepts local files. Download the raw RDF first when starting with a URL; a GitHub
/blob/URL is an HTML file viewer. --input-format turtleselects the RDF input syntax.--formatselects the report output format.--base-uri https://example.org/ontologysupplies a base IRI for relative identifiers; it does not download a URL. An explicit@baseorxml:basein the document is respected.--timeout 60sets the HTTP timeout in seconds, including remote JSON-LD contexts (default:30).--skip-resolutiondisables network access, including remote JSON-LD contexts; local checks and reasoning still run when parsing succeeds.- Exit code
0means no errors;1means errors were found. Warnings and recommendations do not change the exit code.
API
Upload a file to the running app for a JSON report:
curl -F "file=@ontology.ttl" http://127.0.0.1:8000/api/validate
Both HTTP API endpoints accept RDF contents, rather than source URLs. For GitHub, select Raw and download the file contents first. Optional multipart fields select the syntax and base IRI:
curl -F "file=@ontology.data" -F "format=turtle" \
-F "base_uri=https://example.org/ontology" http://127.0.0.1:8000/api/validate
Alternatively, POST JSON to /api/validate/content with format, content (RDF text, or a JSON-LD object/array), and optional base_uri. Add ?compact=true to either endpoint for findings and execution coverage without term inventories.
JSON includes severity_summary with finding counts and has_errors. Input failures return HTTP 422, with an input_error containing a stable code, an explanatory message, and optional suggested_url and guide_url. Parse diagnostics also include the selected format, a short detail, and guidance, with one-based line and column values when known. A source URL identifies a remote JSON-LD context when its origin is known. Full reports retain parse_errors for compatibility. Ontology checks are skipped when input fails. Invalid request envelopes instead return a detail list. Per-check status values (ok, warn, fail, skip) describe outcomes, not severity. /health reports service availability.
All interfaces reject HTML file viewers, even if their filenames end in .owl. Format selection uses an explicit input format, then a recognized content type, then the filename extension. Unknown local filenames default to Turtle; URLs need a recognized content type or RDF extension. input_warnings provides separate, unscored source guidance when identifiers resolve to file:// locations. Supply the intended base IRI or declare it in the document to make relative identifiers independent of temporary upload paths. The web upload form has the same optional settings.
Reports disclose the actual RDF retrieval URL when namespace or import resolution discovers RDF through an HTML link or a known alternative. Imports that require this discovery receive a warning because other ontology tools may not follow it.
To run the same checks from Python:
import asyncio
from askwol.pipeline import run_full_validation
report, _ = asyncio.run(run_full_validation("ontology.ttl", include_mermaid=False))
print(report.model_dump_json(indent=2))
Docker
From the repository root, build and start the app, or rebuild after changes:
docker compose up -d --build --force-recreate
The app is available at http://127.0.0.1:8000/. Logs: docker compose logs -f askwol. Stop: docker compose down.
For automatic reloading during development:
cp docker-compose.override.yml.example docker-compose.override.yml
docker compose up --build
Keep that development override off production servers. The supplied production configuration uses one web worker, binds to 127.0.0.1:8000, and persists usage data in ./data/.
On a server, clone the repository, run the start command above, and put an HTTPS reverse proxy in front of it. For example, with Caddy:
askwol.example.com {
encode zstd gzip
request_body { max_size 25MB }
reverse_proxy 127.0.0.1:8000
}
For updates, run git pull, then repeat the build/start command.
Serving under a sub-path
For a deployment at /askwol/, put this in the repository's .env file:
ASKWOL_ROOT_PATH=/askwol
The reverse proxy must strip the prefix before forwarding. With Caddy:
server.example.com {
handle_path /askwol/* {
reverse_proxy 127.0.0.1:8000
}
}
Configuration
Native Python runs read environment variables, not .env files. Docker Compose forwards ASKWOL_ROOT_PATH and ASKWOL_STATS_TOKEN from .env; add other overrides under the service's environment in a Compose override file. Restart native runs or recreate Compose containers after changing settings.
| Variable | Default | Purpose |
|---|---|---|
ASKWOL_RATE_LIMIT |
20 |
Validation requests per client IP per minute, per worker; 0 disables. |
ASKWOL_VALIDATION_TIMEOUT |
300 |
Maximum seconds per web job. |
ASKWOL_MAX_CONCURRENT_VALIDATIONS |
2 |
Concurrent web jobs per worker. |
ASKWOL_MAX_TRIPLES |
500000 |
Maximum triples per ontology. |
ASKWOL_MAX_NAMESPACES |
500 |
Maximum declared prefixes per ontology. |
ASKWOL_MAX_IMPORTS |
200 |
Maximum declared imports per ontology. |
ASKWOL_USAGE_DB |
data/usage.db |
Usage database path; Docker uses /data/usage.db. |
ASKWOL_USAGE_DISABLED |
unset | Set to 1 to disable usage tracking. |
ASKWOL_STATS_TOKEN |
unset | Enables access to usage statistics. |
Web uploads and URL responses are capped at 20 MiB; Python source-URL retrieval is capped at 10 MiB. Local CLI/Python files have no byte cap and share the ontology size caps above. Requests to private/internal network addresses are blocked. Web jobs run in isolated subprocesses: timeouts return 504, and excess concurrent requests return 503. Set the proxy timeout above the job timeout and enforce a proxy upload limit. The CLI runs without the web job timeout or concurrency limit.
A client disconnect cancels its job when the reverse proxy forwards the disconnect. Cancelled requests do not count as usage.
Usage tracking
A local SQLite database records timestamps, source URLs or filenames, HTTP statuses, durations, and IP hashes salted with a per-database secret. No cookies or third-party tracking services are used.
Set ASKWOL_STATS_TOKEN to a long random value (generate one with openssl rand -hex 32) and apply it as described above. /stats is the HTML dashboard; /api/stats returns JSON. Authenticate with ?token=YOUR_TOKEN, including on localhost. Totals and daily counts cover all recorded activity; average duration uses the last 30 days.
Tests
After the source installation above, run from the repository root:
.venv/bin/python -m pytest tests/ -q
For manual checks, upload sample.ttl or broken.ttl through the local app. Contribution guidelines: CONTRIBUTING.md.
Why askwol?
The name plays on OWL and “Wol,” Owl's misspelled name in Winnie-the-Pooh: ask Owl for a second opinion on your ontology. Wollie, to friends.
Licence
MIT.
Metadata
Release files for askwol 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| askwol-0.3.0.tar.gz | 1.3 MB | With provenance | Details for askwol-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| askwol-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for askwol-0.3.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / askwol-0.3.0.tar.gz
| Download URL | askwol-0.3.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f308be6a00f0b4975d141fd1b242f405524f4f3f75f80787b90859c20e82895e
|
|
BLAKE2b-256 checksum How to use checksums |
3d26df83a050dc9c3d63810a4defdf24bb197d784a64de626547d5a48c86116f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / askwol-0.3.0-py3-none-any.whl
| Download URL | askwol-0.3.0-py3-none-any.whl |
|---|---|
| Size | 238.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6df76442059af40e0d02daf628b2c9b4ee8e89993fabe7a251db85f22cb26e72
|
|
BLAKE2b-256 checksum How to use checksums |
239e7ff2dba695eacd23bc86c2755b103fc60087331014e45c4f84af8cac111f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for askwol 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for askwol-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.