Skip to main content

System Trustworthiness and Accountability Vocabulary

Project description

STAV: System Trustworthiness and Accountability Vocabulary

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. PyPI - Version GitHub License DOI

This work is still under development.

Ease the uses of standardised vocabularies in Python workflow.

stav:

  • Norwegian: to spell (words)
  • Swedish: letter (alphabet)
  • Slovak: state (condition)
  • Czech: stance

STAV taxonomy

Apart from providing access to standardised vocabularies, STAV also provide a minimal taxonomy at https://w3id.org/stav

STAV Python module

STAV terms can also be accessible through a Python module called stav, available freely on the Python Package Index.

STAV class names are accessible through constants in the stav module. These class names are in capital letters with underscores separating words, LIKE_THIS, as stated in PEP 8. Values of these constants are simply a STAV class name, a string in CamelCase.

For example, stav.INSTRUCTIONS_FOR_USE is a string with value of "InstructionsForUse". (In the future, it should be able to configure the casing to "instructions_of_use", etc.)

With this, it will make the standardization of documentation within an organization, or across organizations, easier and can facilitate the use of the terms in MLOps settings, where data scientists and data engineers can use STAV terms as keys in their model logging and registration.

Watch the video

Installation

pip install stav

Use with MLflow

import mlflow
from stav.vocab import dpv, spdx

with mlflow.start_run():
    mlflow.set_tag("data_subject_type", dpv.NaturalPerson)
    mlflow.set_tag("dataset_type",      spdx.dataset.DatasetType.text)
    mlflow.set_tag("confidentiality",   spdx.dataset.ConfidentialityLevelType.amber)

All terms are plain strings (IRIs), so they work anywhere a string is accepted. Use stav.label() to get a human-readable name from any term.

Use with Pitloom

from pitloom import loom
from stav.vocab import dpv, spdx

@loom.shoot("training_sbom.json")
def train(dataset_path):
    loom.set_model("my-model", model_type=dpv.ai.AITechnique.SupervisedLearning)
    loom.add_dataset(dataset_path, dataset_type=spdx.dataset.DatasetType.text)
    ...

Sister projects

STAV (a Vocabulary) and STAP (an ODRL Profile) are sisters for system trustworthiness and accountability.

License

STAV: System Trustworthiness and Accountability Vocabulary by Arthit Suriyawongkul is licensed under CC BY 4.0

The stav Python module is distributed under the terms of the Apache License 2.0.

This work has emanated from research conducted with the financial support of Taighde Éireann – Research Ireland under Grant number 18/CRT/6224 (Research Ireland Centre for Research Training in Digitally-Enhanced Reality (d-real)) and with the organizational support from members of these research groups:

Related works

Members of RegTech group at ADAPT Centre contribute to AI and data ontology projects below, and they are may be of your interest:

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

stav-0.4.1.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

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

stav-0.4.1-py3-none-any.whl (161.4 kB view details)

Uploaded Python 3

File details

Details for the file stav-0.4.1.tar.gz.

File metadata

  • Download URL: stav-0.4.1.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stav-0.4.1.tar.gz
Algorithm Hash digest
SHA256 48dff5c10a0107e2c49050654bd4b2cfc04c008d1f5b8c6b2fc0a5ea8f0897e5
MD5 22707acf824c8a14a522edde44fca8f7
BLAKE2b-256 6ba7cf8a2819cd98ebd09c146be1a24c81f0b516e64c8ef0dcc73c6d8e39823c

See more details on using hashes here.

Provenance

The following attestation bundles were made for stav-0.4.1.tar.gz:

Publisher: pypi-publish.yml on bact/stav

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

File details

Details for the file stav-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: stav-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 161.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for stav-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 888da6b603f2a15c07a8d55764d423fb42a95f85368f63bff9fc043f721e92da
MD5 c58229032f23e6fb42c494fb61c44bbe
BLAKE2b-256 5a1478c448e7b0bb8fa4cd8f8f1a1dfb4e636bd74c777e4385cb6b74a1c11095

See more details on using hashes here.

Provenance

The following attestation bundles were made for stav-0.4.1-py3-none-any.whl:

Publisher: pypi-publish.yml on bact/stav

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