Skip to main content

Python library providing RDF ontology definitions for SysML.

Project description

py-mmut-rdf

A Python library providing RDF ontology definitions for MMUT (MicroModel and Transformations). This library contains a generated TTL (Turtle) file with MMUT ontology definitions and provides a convenient Python interface to access the ontology classes and properties.

Ontology Visualization

Visualized the ontology with WebVOWL

SysML Ontology

Installation

See: https://pypi.org/project/py_mmut_rdf/

pip install py-mmut-rdf

Usage

from py_mmut_rdf import MMUT
from rdflib import URIRef, Graph, RDF

g = Graph()
g.bind("mmut", MMUT._NS)
g.add((URIRef("http://example.org#model_x"), RDF.type, MMUT.RDFMicroModel))

Development

Regenerating the Ontology

If you need to recreate the TTL file:

python create_mmut_ontology.py

Testing

Run the test script to verify everything works:

python -m pytest tests/

Building the Package

poetry build

Publish the Package

poetry publish --username __token__ --password <TOKEN>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

py_mmut_rdf-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

py_mmut_rdf-0.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file py_mmut_rdf-0.0.2.tar.gz.

File metadata

  • Download URL: py_mmut_rdf-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.25 Linux/6.11.0-1018-azure

File hashes

Hashes for py_mmut_rdf-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a3063dc9efecc1af29daaf0c5b81a3f3d2d30c9c60e50e866fafb123c6119fe0
MD5 e32074986cc7809a98136588998dd068
BLAKE2b-256 d7fd29f12faa8195ff9814443a48f58e75c3c5bf6f0638085a688febcc668bb7

See more details on using hashes here.

File details

Details for the file py_mmut_rdf-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_mmut_rdf-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.25 Linux/6.11.0-1018-azure

File hashes

Hashes for py_mmut_rdf-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0478144ee085a69e46863cbe3a2e14f5680fb820ce542c251afaefb468ed1c42
MD5 5def2ff6876a7d6b4b65a42ae2928d62
BLAKE2b-256 b0706b924a703df0209c60613a2294e5a588cee49bde5c7e4b9677621eee2dc7

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