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)
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
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-1.2.0.tar.gz
(19.6 kB
view details)
Built Distribution
obse-1.2.0-py3-none-any.whl
(20.1 kB
view details)
File details
Details for the file obse-1.2.0.tar.gz
.
File metadata
- Download URL: obse-1.2.0.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 575163e4be0d478d56b138cc9315ee6479f78425ba036a89c40b6c63d8ea51aa |
|
MD5 | f42384e2557a70340f68d3effd6acff8 |
|
BLAKE2b-256 | 9024c675134c9d726299deb0946c3ea02193c885065507f23c6cadf815cdbb67 |
File details
Details for the file obse-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: obse-1.2.0-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a975d27c42f129c79a5aa073dc5de0a3c3ec9ea5d3f274d37ee6d47d206c441 |
|
MD5 | f2f2527dff71450a36d9462a27e0c553 |
|
BLAKE2b-256 | fe11a1c9c95683799587fed515a376c4d87b1036835d26d2248910fca607bf6a |