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

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.1.tar.gz (4.2 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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_mmut_rdf-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.1 Windows/10

File hashes

Hashes for py_mmut_rdf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b2cf29694e8951fe353220b4dc83317e7c26c20799d3632e37784aced4b09168
MD5 7d9cfd4d65e6a6fe7381412714483f5c
BLAKE2b-256 041a9311110abd699f5deb7cd88c95374f8f9c5f2806b5a8d3e2e08f4499ded1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_mmut_rdf-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.1 Windows/10

File hashes

Hashes for py_mmut_rdf-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5076fae0ed09bc86e67294e24c5fa93cda81fbf7c991c208662ca1a673da7311
MD5 bff4c654326e1db566651cf1d12c7d2d
BLAKE2b-256 0216dab70291a797639fb05e77183e6c97ba58285b53076c68e5435aad9f5f20

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