Module to extract and store data into an SKG
Project description
System Knowledge Graphs (SKGs) to Automata
Description
Module developed within the Auto-Twin Horizon EU project to extract data from Neo4j SKGs for automata learning purposes and to store learned automata into the SKG.
Requirements
Follow instructions for the promg-core project to create the SKG.
Configuration
The default configuration file is available in the ./resources/config/ folder.
The module currently assumes the Neo4j instance to be running on localhost:7687:
if this is not the case, update the config.ini file accordingly.
How to use
Available queries are implemented as methods of the Skg_Reader class:
- get_events(): Returns all Event nodes.
- get_events_by_date(start_t, end_t): Return Event nodes filtered by timestamp. If both start_t and end_t are given, it returns events such that the timestamp is within range [start_t, end_t]. If only one parameter is specified, it returns events such that the timestamp is greater than start_t or smaller than end_t. If no parameter is specified, it returns all events.
- get_entities(): Returns all Entity nodes.
- get_sensors(): Returns all Class nodes.
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
skg_connector-0.1.14.tar.gz
(31.6 kB
view hashes)
Built Distribution
Close
Hashes for skg_connector-0.1.14-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | cb09e90ffc833431e46a6cc44e133b3a93f014b821d7be9af98fa22a147e3327 |
|
| MD5 | 1f0b8dd35b051fbca339aea7c9a926dc |
|
| BLAKE2b-256 | c194f12e25f6d6230ba5fb6824db098e1db899b29a913418562cc8632ce94c29 |