This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Package changed name to verificado, please check the new lib on https://pypi.org/project/verificado/
Relationship validator 
Validate ontology relationships using Ubergraph as source of truth. Relationships in this context may be subClassOf axioms between names classes (e.g. 'lymphocyte' subClassOf 'cell') or existential restrictions, (e.g. 'enterocyte' part_of some ‘intestinal epithelium’).
Ubergraph is an RDF triplestore with 39 OBO ontologies merged, precomputed OWL classification and materialised class relationship from existential property restrictions. Validation therefore works for any directly asserted or inferred/indirect subClassOf relationship or existential restriction.
Install
Dependencies
This package depends on Graphviz and OBOGraphviz to represent the validation as a graph.
Graphviz
On macOS:
brew install graphviz
On Linux:
apt install graphviz
For another platform, please follow this instruction to install Graphviz.
OBOGraphviz
Before installing OBOGraphviz, make sure you have installed Node.js version >= 14.16. Please follow this instructions to install Node and npm.
Then install the obographviz package globally:
npm install -g obographviz
relation-validator package
pip install relation-validator
Configure YAML file
In the config file, it is defined the list of relationships the validation should run on. The order is essential.
The yaml file needs to have the keys relationships and filename. Check an example below:
relationships:
sub_class_of: rdfs:subClassOf
part_of: BFO:0000050
connected_to: RO:0001025
has_soma_location: RO:0002100
...
filename: path/to/filename.csv
The filename can be in TSV or CSV and should have the following columns:
| s | slabel | user_slabel | o | olabel | user_olabel |
|---|---|---|---|---|---|
| the subject term ID | the label of the term in the column s | optional label for the term given by user | the object term ID | the label of the term in the column s | optional label for the term given by user |
When using CSV, double-quote if the label contains a common.
Run relation-validator CLI
relation-validator validate --input path/to/config.yaml --output path/to/output.csv
The output.csv file will be in the same format as the filename.csv. It will return the cases where a triple (subject, relationship, object) with the relationships listed in the yaml file was not found in Ubergraph.
List of ontologies available
To know which ontologies and their version are available in Ubergraph, use the following CLI:
relation-validator ontologies_version --output filename.json
Metadata
Release files for relation-validator 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| relation_validator-0.5.1.tar.gz | 10.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| relation_validator-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.3 kB
Release files / relation_validator-0.5.1.tar.gz
| Download URL | relation_validator-0.5.1.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97c66d73fe1718959bd3b5bd319bc7f272ccd88e55690eda8f76ad92d2325ab7
|
|
BLAKE2b-256 checksum How to use checksums |
8012009482b6889bf31a3b3b8b7b58e921176b4b9a905057c740f18482b8b2fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.16 Darwin/23.4.0
|
Release files / relation_validator-0.5.1-py3-none-any.whl
| Download URL | relation_validator-0.5.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f60937a0dcdc624b707fd9110ff23c17a6b020329332aebf15f9fa69e5a873df
|
|
BLAKE2b-256 checksum How to use checksums |
d4baa7a0347cb253f9726ae9c510fb30557230685d2528302510ffc4f27cd765
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.16 Darwin/23.4.0
|