Skip to main content

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

License

GNU GPLv3

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.0.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obse-1.0.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file obse-1.0.0.tar.gz.

File metadata

  • Download URL: obse-1.0.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for obse-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3a91d1fad0acefb38ca0bbf01b45690f43749bfed678b3ad19ebbf5a5447759e
MD5 3d966dadf16dd6718f7fac6cec139285
BLAKE2b-256 1c91890d692ac508299b72b768022bb99d7a8caa2b3bb153a7277369c08ff3de

See more details on using hashes here.

File details

Details for the file obse-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: obse-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for obse-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fde8d5a97921040c22d60d0efb079d2e032d472f53eec5a78e317298750348d3
MD5 1a81b2b2169a5fe38382248f12bf5a7b
BLAKE2b-256 23ef0d8841d4e03179cbe64a838327ccc191a66d4969e2437369d47916cd6afd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page