Skip to main content

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

Metadata

Release files for obse 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for obse 2.0.0
File Size Uploaded
obse-2.0.0.tar.gz 20.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for obse 2.0.0
File Interpreter ABI Platform
obse-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.4 kB

Release files / obse-2.0.0.tar.gz

Download URL obse-2.0.0.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
768788819de5dd19e6115ed95d0012bf4c018403788af59152d6146ddf0b70c0
BLAKE2b-256 checksum
How to use checksums
b9172b1745223c21821ded9ebbddb3216550f0676ff1f8ae3be28eedd555c60d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / obse-2.0.0-py3-none-any.whl

Download URL obse-2.0.0-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bf0998b76fd34bfa84def572f024b29462304966c7d23a008826d1cfeed3a94
BLAKE2b-256 checksum
How to use checksums
9b85e6e8f68f67a6ed4c93a019712a5cfb5cf4bb136f03a52cd45b4aa4a17a3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page