CleverRDFLib - a RDFLib extension
- Python 87.1%
- Gherkin 8.5%
- RobotFramework 3.5%
- Dockerfile 0.8%
- Shell 0.1%
|
All checks were successful
CI / lint (pull_request) Successful in 1m35s
CI / typecheck (pull_request) Successful in 1m38s
CI / behave (3.11) (pull_request) Successful in 1m48s
CI / behave (3.12) (pull_request) Successful in 1m47s
CI / behave (3.13) (pull_request) Successful in 1m43s
CI / build (pull_request) Successful in 1m33s
CI / lint (push) Successful in 1m31s
CI / typecheck (push) Successful in 1m29s
CI / behave (3.11) (push) Successful in 1m37s
CI / behave (3.12) (push) Successful in 1m44s
CI / behave (3.13) (push) Successful in 1m36s
CI / build (push) Successful in 1m31s
ISSUES CLOSED: #2 |
||
|---|---|---|
| .devcontainer | ||
| .forgejo/workflows | ||
| benchmarks | ||
| docs | ||
| features | ||
| robot | ||
| scripts | ||
| src | ||
| typings | ||
| .bumpversion.cfg | ||
| .cz-config.js | ||
| .cz.json | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| asv.conf.json | ||
| ATTRIBUTIONS.md | ||
| behave.ini | ||
| CHANGELOG.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| CONTRIBUTORS.md | ||
| Dockerfile | ||
| LICENSE | ||
| mkdocs.yml | ||
| NOTICE | ||
| noxfile.py | ||
| pyproject.toml | ||
| pyrightconfig.json | ||
| README.md | ||
| robot.cfg | ||
CleverRDFLib
A wrapper for RDFLib with extensions.
Features
- Imports RDFS and OWL ontologies, supporting several ontologies serialization formats
- Resolves external imports from OWL and from RDFS only ontologies
- Easy to retrieve information for a given class with easy navigation of its hierarchy
- Provides the visitor design pattern for other non-obvious class hierarchy navigation
- Distinguishes between ObjectProperties and DataTypeProperties
- Retrieve the properties where the class is referenced (domain or range)
- Facilitates conversion from the library object format to other end-user object formats
- Validate OWL ontologies
- Retrieve OWL metadata
- Easy redirection of external ontologies to local files, or custom redirection implementations
NOTES:
- Instances are filtered out of the extraction
Quick Start
# clone the project
git clone https://git.cleverthis.com/cleverlibre/CleverRDFLib.git
cd CleverRDFLib
# create virtual environment and install dependencies
python -m venv .venv
source .venv/bin/activate
pip install -e ."[tests,docs]
# run quality checks
nox -s format lint typecheck unit_tests
Documentation
nox -s docs
nox -s serve_docs
Tests
Run them with nox -s unit_tests.