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
Release history Release notifications | RSS feed
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.0.0.tar.gz
(19.3 kB
view hashes)
Built Distribution
obse-1.0.0-py3-none-any.whl
(19.8 kB
view hashes)