Skip to main content

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


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

Uploaded Source

Built Distribution

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

skg_connector-0.1.16-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

Details for the file skg_connector-0.1.16.tar.gz.

File metadata

  • Download URL: skg_connector-0.1.16.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for skg_connector-0.1.16.tar.gz
Algorithm Hash digest
SHA256 6b2b3eac76835da7bd481760a92a71f4a3d646c3671413e7b8c923ca0f221f60
MD5 fe92ba3ca5133b93dad788e7ec383465
BLAKE2b-256 974f6084b39245f0955257953be8781d3b48cc177e9cb0745d13a6e08e78433e

See more details on using hashes here.

File details

Details for the file skg_connector-0.1.16-py3-none-any.whl.

File metadata

  • Download URL: skg_connector-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 41.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for skg_connector-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 13886d2494ff0f036121d0c0dfbab264764ee0475082fa45844bace110d99856
MD5 866d6b50c9800e2a41bf35c832c81e5a
BLAKE2b-256 a2419da24a5a3bde42e8489cbc34fe21e3d9685c162c306f6b64597f5c613566

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