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.0.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.0-py3-none-any.whl (161.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stav-0.4.0.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.0.tar.gz
Algorithm Hash digest
SHA256 99b3e341ced4ce6770d3173670e0a34b8d9e78b729d2dcc557c278204bb910b3
MD5 5a0f5530a25b692a71cce14206810d28
BLAKE2b-256 998cd32660b3a70d798bfd98fae79b25547b190b3311d8db299e9b9cb98eb334

See more details on using hashes here.

Provenance

The following attestation bundles were made for stav-0.4.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: stav-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 161.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37230231b2dfacd31e19af0682898f8af3cc1c5fc48bd0c0a6af75fa021ed1ef
MD5 10da1691304702d2c8b16d68288317da
BLAKE2b-256 071fe1470175d5b6f0f1e2d4a1505182312dc4723a8e8e4ef1edf53c0df5d417

See more details on using hashes here.

Provenance

The following attestation bundles were made for stav-0.4.0-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