On these pages, you’ll find a variety of ENEXA modules listed below, showcasing the diverse functionalities the platform has to offer.

Transform module

The ENEXA RDF Transformation module is a straightforward tool designed for transforming RDF data. It takes one or more RDF files as input and generates a single RDF file as output. This module is particularly useful for consolidating RDF data from multiple sources into a unified format.

Goal

The primary objective of this module is to merge RDF datasets into a single RDF file while ensuring compatibility with Apache Jena-supported RDF serializations. Key considerations for input files include:

  • Supported RDF Serialization: Input files must utilize an RDF serialization supported by Apache Jena.
  • Compression: Input files can be compressed with GZIP or BZip2 for efficient data storage and transmission.
  • Metadata Graph: Input files should include mime type information in the metadata graph. If absent, the module will infer the RDF serialization based on the file extension.

The output file:

  • Contains all triples from the input RDF datasets without deduplication.
  • Adheres to the specified RDF serialization, supporting streamable formats such as Turtle, N-Triples, N-Quads, and TriG.

you can send request like bellow to ‘/start-container’ api

@prefix alg: <http://www.w3id.org/dice-research/ontologies/algorithm/2023/06/> .
@prefix enexa:  <http://w3id.org/dice-research/enexa/ontology#> .
@prefix prov:   <http://www.w3.org/ns/prov#> .
@prefix hobbit: <http://w3id.org/hobbit/vocab#> . 
@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
[] rdf:type enexa:ModuleInstance ;
enexa:experiment <[Experiment IRI]> ;
alg:instanceOf <http://w3id.org/dice-research/enexa/module/transform/0.0.1> ;
<http://w3id.org/dice-research/enexa/module/transform/parameter/input> <[First input]>;
<http://w3id.org/dice-research/enexa/module/transform/parameter/input> <[Second input]>;
<http://w3id.org/dice-research/enexa/module/transform/parameter/outputMediaType> <https://www.iana.org/assignments/media-types/application/owl+xml>.

KG fixing module

Goal

The ENEXA KG fixing module detects formal inconsistencies in a KG and can be configured to apply different fixing strategies to render it formally consistent. For formally inconsistent KGs the reasoning process cannot produce any useful results, thus it is necessary to correct them, or to rely on inconsistency-tolerant reasoners, which nevertheless are typically more expensive in terms of time. Importantly, this module allows the user to enable parallel execution so that it can process and fix web-scale KGs in a time-effective manner. It is implemented in the Java programming language and incorporates the OWL API.

More details regarding the usage and available configurations can be found in the README of this repository.

The output file includes the KG in .ttl format, free of formal inconsistency provided that the corresponding configuration parameters are enabled.

You can send a request like the following to ‘/start-container’ api:

@prefix alg: <http://www.w3id.org/dice-research/ontologies/algorithm/2023/06/> .
@prefix enexa:  <http://w3id.org/dice-research/enexa/ontology#> .
@prefix prov:   <http://www.w3.org/ns/prov#> .
@prefix hobbit: <http://w3id.org/hobbit/vocab#> . 
@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
[] rdf:type enexa:ModuleInstance ;
enexa:experiment <[replace this with experimentIRI]> ;
alg:instanceOf <http://w3id.org/dice-research/enexa/module/kg-fixing/1.0.0> ;
<http://w3id.org/dice-research/enexa/module/kg-fixing/parameter/t-boxFile> <[replace with T-Box input file IRI]>;
<http://w3id.org/dice-research/enexa/module/kg-fixing/parameter/a-boxFile> <[replace with A-Box input file IRI]>;
<http://w3id.org/dice-research/enexa/module/kg-fixing/parameter/flags> <[replace with string with flags]>.

Extraction module

Dice embeddings module

To initiate the DICE Embeddings module within the ENEXA service, submit the following request to the service endpoint ‘/start-container’. This module, focused on a hardware-agnostic framework for large-scale knowledge graph embeddings, provides a comprehensive guide on training and deploying knowledge graph embedding models.

Module Details

Parameters

The DICE Embeddings module requires the following parameters:

@prefix alg: <http://www.w3id.org/dice-research/ontologies/algorithm/2023/06/> .
@prefix enexa:  <http://w3id.org/dice-research/enexa/ontology#> .
@prefix prov:   <http://www.w3.org/ns/prov#> .
@prefix hobbit: <http://w3id.org/hobbit/vocab#> . 
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
[] rdf:type enexa:ModuleInstance ;
enexa:experiment <[experiment IRI]> ;
alg:instanceOf <http://w3id.org/dice-research/enexa/module/dice-embeddings/1.0.0> ;
<http://w3id.org/dice-research/enexa/module/dice-embeddings/parameter/batch_size> {[batch size]};
<http://w3id.org/dice-research/enexa/module/dice-embeddings/parameter/embedding_dim> {[]embeddings dimention};
<http://w3id.org/dice-research/enexa/module/dice-embeddings/parameter/model> <http://w3id.org/dice-research/enexa/module/dice-embeddings/algorithm/DistMult>;
<http://w3id.org/dice-research/enexa/module/dice-embeddings/parameter/num_epochs> {[number of epochs]};
<http://w3id.org/dice-research/enexa/module/dice-embeddings/parameter/path_single_kg> <[]knowledge graph IRI>.

DICE Embeddings Framework

The DICE Embeddings framework serves as a hardware-agnostic solution for large-scale knowledge graph embeddings. It facilitates the training and deployment of knowledge graph embedding models, offering flexibility across various computing systems, from single CPUs to GPU clusters.

Usage Guidelines

This module provides users with a step-by-step guide on leveraging the DICE Embeddings framework. From setting the batch size to determining the embedding dimension and selecting the appropriate model, users can seamlessly integrate knowledge graph embeddings into their experiments.

Key Features

  1. Hardware-Agnostic: DICE Embeddings is designed to be versatile, accommodating a range of computing systems for training and deploying knowledge graph embedding models.

  2. Scalability: The framework supports large-scale knowledge graphs, making it suitable for projects with extensive data requirements.

  3. Pretrained Models: The repository accompanying the module includes code, documentation, and pretrained models, expediting the integration process.

Getting Started

To get started with DICE Embeddings, send the provided module instance details to the ‘/start-container’ endpoint, ensuring to replace placeholders with the appropriate experiment, batch size, embeddings dimension, number of epochs, and knowledge graph IRI. The module empowers users to harness the capabilities of a hardware-agnostic framework for large-scale knowledge graph embeddings.

also visit the project repository page

Dice CEL module

To initiate the CEL Training module within the ENEXA service, submit the following request to the service endpoint ‘/start-container’. This module, based on Class Expression Learning (CEL), is a powerful tool for automatically learning class expressions in knowledge graphs.

@prefix alg: <http://www.w3id.org/dice-research/ontologies/algorithm/2023/06/> .
    @prefix enexa:  <http://w3id.org/dice-research/enexa/ontology#> .
    @prefix prov:   <http://www.w3.org/ns/prov#> .
    @prefix hobbit: <http://w3id.org/hobbit/vocab#> . 
    @prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
    [] rdf:type enexa:ModuleInstance ;
    enexa:experiment <[replace this with experimentIRI]> ;
    alg:instanceOf <http://w3id.org/dice-research/enexa/module/cel-train/1.0.0> ;
    <http://w3id.org/dice-research/enexa/module/cel-train/parameter/kg> <[replace with owl file iri]>;
    <http://w3id.org/dice-research/enexa/module/cel-train/parameter/kge> <[replace with embedding iri]>.

Class Expression Learning (CEL)

CEL is a machine learning method specifically tailored for learning class expressions within knowledge graphs. In the realm of knowledge graphs, class expressions serve as descriptions of the properties of entities. For instance, a class expression could define all individuals residing in a specific city or all products manufactured by a particular company.

Usage Guidelines

This module equips users with the capability to automatically learn complex class expressions from their knowledge graphs. By initiating the CEL Training module, users can harness machine learning techniques to derive meaningful insights and patterns from their data.

Getting Started

To get started with CEL Training, send the provided module instance details to the ‘/start-container’ endpoint, ensuring to replace placeholders with the appropriate experiment and file IRIs. The module empowers users to enhance their understanding of knowledge graph entities and relationships through automated class expression learning.

Serve after training

this module can serve a http endpoint and accept requests , for starting the service for this the bellow request should send

@prefix alg: <http://www.w3id.org/dice-research/ontologies/algorithm/2023/06/> .
        @prefix enexa:  <http://w3id.org/dice-research/enexa/ontology#> .
        @prefix prov:   <http://www.w3.org/ns/prov#> .
        @prefix hobbit: <http://w3id.org/hobbit/vocab#> . 
        @prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
        @prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
        [] rdf:type enexa:ModuleInstance ;
        enexa:experiment <[experimentIRI]> ;
        alg:instanceOf <http://w3id.org/dice-research/enexa/module/cel-deploy/1.0.0> ;
        <http://w3id.org/dice-research/enexa/module/cel-deploy/parameter/kg> <[owl_file_iri same ]>;
        <http://w3id.org/dice-research/enexa/module/cel-deploy/parameter/kge> <[embedding_csv_iri]>;
        <http://w3id.org/dice-research/enexa/module/cel-deploy/parameter/heuristics> <[ cel_trained_file_kge_iri , it is the iri generated from last step]>.

after this request can send to the api

http://[container name]:7860/predict

TENTRIS module

what is this module

The ENEXA module, instantiated with the Tentris RDF triple store, provides a comprehensive guide on leveraging Tentris—a robust, tensor-based RDF triple store. Tentris seamlessly integrates into the ENEXA service, offering efficient and high-performance capabilities for handling RDF data.

Tentris is specifically designed to handle RDF data using a tensor-based approach. This module elucidates the key aspects of Tentris, emphasizing its functionalities, optimal performance, and support for SPARQL queries.

Key Features

  1. Speed and Efficiency: Tentris excels in speed, ensuring swift execution of RDF queries and operations. This feature contributes to the overall efficiency of ENEXA experiments.

  2. Tensor-Based Approach: Tentris employs a tensor-based model for storing and processing RDF triples, enhancing scalability and facilitating complex data analysis.

  3. SPARQL Support: Users can take advantage of Tentris’s comprehensive support for SPARQL queries, enabling them to seamlessly interact with RDF data and retrieve relevant information.

how to run

To start the ENEXA module within the service, send the following request to the

/start-container

endpoint. Make sure that the specified file, indicated by the instance IRI in <[this should replace with the instance IRI which contains the file]>, has been previously added to the service using the

/add-resource

endpoint. The initiation of execution involves linking the ENEXA module to a specific experiment identified by <[this should replace with the experimentIRI]>. The relevant RDF triples are detailed below:

@prefix alg: <http://www.w3id.org/dice-research/ontologies/algorithm/2023/06/> .
    @prefix enexa:  <http://w3id.org/dice-research/enexa/ontology#> .
    @prefix prov:   <http://www.w3.org/ns/prov#> .
    @prefix hobbit: <http://w3id.org/hobbit/vocab#> . 
    @prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    [] rdf:type enexa:ModuleInstance ;
    enexa:experiment <[this Should replace with the experimentIRI]> ;
    alg:instanceOf <http://w3id.org/dice-research/enexa/module/tentris/0.2.0-SNAPSHOT-1> ;
    <http://w3id.org/dice-research/enexa/module/tentris/parameter/file> <[this should replace with the instance IRI which contains the file ]>.

TENTRIS Repository