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
- For readme file I used format from https://www.makeareadme.com/
License
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)
| File | Size | Uploaded | |
|---|---|---|---|
| obse-2.0.0.tar.gz | 20.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|