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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for py_sysml_rdf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d33bc086aa08f6212b7a30d5318129ebbb0e2dc0def2b71c9cbf0a2968f5a9b5
MD5 e34ec4b0fd664dd71c74409041d18875
BLAKE2b-256 c969c4daaa96ccdad521709e0a26960598c68ef44100f6a8cade2be341235d34

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py_sysml_rdf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 14a1493ea381abe6e04e6cedac086ba89f1db7a8fc7ea72f14df69616554485a
MD5 5369f92d2a34a3c51dc379a8f9fb483c
BLAKE2b-256 c6d06a6b3464df2c740e9dbc297ba3a448a3fd1884e4e883658577724d3e1dd7

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