Skip to main content

KA Python library providing RDF ontology definitions for SysML.

Project description

py-sysml-rdf

A Python library providing RDF ontology definitions for SysML (Systems Modeling Language). This library contains a generated TTL (Turtle) file with SysML 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-sysml-rdf

Usage

from py_sysml_rdf import SYSML
from rdflib import URIRef, Graph, RDF

g = Graph()
g.bind("sysml", SYSML._NS)
g.add((URIRef("http://example.org#actor_x"), RDF.type, SYSML.Actor))

Development

Regenerating the Ontology

If you need to recreate the TTL file:

python create_sysml_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_sysml_rdf-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

py_sysml_rdf-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_sysml_rdf-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.23 Linux/6.11.0-1018-azure

File hashes

Hashes for py_sysml_rdf-0.0.2.tar.gz
Algorithm Hash digest
SHA256 92669074c3bf6ee569a8417950128e7f3c552ab05c204a4e9541b5e20416f459
MD5 1b0b393f4327aa8f7457c99c8fcf23b7
BLAKE2b-256 c83da333a0cace64d1d2323d93570e624f15fa51391c4540023cfa2152c3b79b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py_sysml_rdf-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d109745ce3275b587e2f7b5a894694d5da76e6b231c800e654f3c2f39660d24
MD5 2ebc93066ba2faaabe1298f7ca1764b5
BLAKE2b-256 d8c80cc6297556d901695e3bc276b96ba2ddd3c63886612f77bbaa78eef95744

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