Skip to main content

This package validates a list of relationships between two terms against the specified ontologies.

Reason this release was yanked:

Package changed name to verificado, please check the new lib on https://pypi.org/project/verificado/

Project description

Relationship validator

Validation process using Ubergraph as source of truth.

Ubergraph is an RDF triplestore with 39 OBO ontologies merged, precomputed OWL classification and materialized class relationship from existential properties restriction.

Install

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 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

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

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

relation_validator-0.2.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

relation_validator-0.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file relation_validator-0.2.0.tar.gz.

File metadata

  • Download URL: relation_validator-0.2.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.4.0

File hashes

Hashes for relation_validator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 082b1a5c4215c503bce08feb9dcd0062118f040cc205bebb8dafec2204e9ab58
MD5 fac303411cc23d8dcd6bf5c69edb85fb
BLAKE2b-256 d522a8c3d57632eded84ed3b25d081254e7e9902c9d160a0e2b5dfeb2b75301b

See more details on using hashes here.

File details

Details for the file relation_validator-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: relation_validator-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.4.0

File hashes

Hashes for relation_validator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38076bf7778e2b0e8aa90988f87c1ac8f53fc7005838764e9f1a12665c82b54e
MD5 42809b6647eef06c0a05664bddcb603e
BLAKE2b-256 05b8637bf42deb2dccf9a03139a99ebac40ae87f3157a6d8e4254c543d936ca5

See more details on using hashes here.

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