Skip to main content

Library for Ontology Based System Engineering.

Project description

obse

Ontology Based System Engineering

Installation

pip install obse

Installation for development purposes

pip install -e .   

Usage

create Graph

from rdflib import Graph, URIRef
from obse.graphwrapper import GraphWrapper


graph = Graph()

graph_wrapper = GraphWrapper(graph, "https://www.frittenburger.de/test")
instance_type = URIRef("https://www.frittenburger.de/test#TestClass")
graph_wrapper.add_named_instance(instance_type, "test-instance")

graph.serialize(destination="model.ttl, format='turtle')

read Graph

from rdflib import Graph, URIRef
from obse.sparql_queries import SparQLWrapper


graph = Graph()
graph.parse("model.ttl")
graph_wrapper = SparQLWrapper(graph)
instances = graph_wrapper.get_instances()

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.

Authors and acknowledgment

License

GNU GPLv3

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

obse-2.0.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

obse-2.0.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file obse-2.0.0.tar.gz.

File metadata

  • Download URL: obse-2.0.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for obse-2.0.0.tar.gz
Algorithm Hash digest
SHA256 768788819de5dd19e6115ed95d0012bf4c018403788af59152d6146ddf0b70c0
MD5 4ab64364726a447a221292fbc95f0c18
BLAKE2b-256 b9172b1745223c21821ded9ebbddb3216550f0676ff1f8ae3be28eedd555c60d

See more details on using hashes here.

File details

Details for the file obse-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: obse-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for obse-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bf0998b76fd34bfa84def572f024b29462304966c7d23a008826d1cfeed3a94
MD5 430b50d11b903a92e1641e1b7e89e0ae
BLAKE2b-256 9b85e6e8f68f67a6ed4c93a019712a5cfb5cf4bb136f03a52cd45b4aa4a17a3f

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