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.1.0.tar.gz
(19.3 kB
view details)
Built Distribution
obse-1.1.0-py3-none-any.whl
(19.8 kB
view details)
File details
Details for the file obse-1.1.0.tar.gz
.
File metadata
- Download URL: obse-1.1.0.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56b8d49a522c3772ec40626d899c317f86fd45d83fcad4b40bc135a3a0608529 |
|
MD5 | 60de7e6ee415f009df4b3eade9df7722 |
|
BLAKE2b-256 | ad0abd5f8f22da96d711366ebeea44e7500c9facf661de594608a10956ed9d05 |
File details
Details for the file obse-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: obse-1.1.0-py3-none-any.whl
- Upload date:
- Size: 19.8 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 | 810f759f43b1c7a597b4a9262bc8e45c613313d4696c5997ec168b2e5460b2a3 |
|
MD5 | cf505e568e6249f617a065184aadd636 |
|
BLAKE2b-256 | 2ef08c540b0be7dd0a6ce61b816adcaa480d5a9bf91a978b9a9d8756f0b00f08 |