Skip to content

VitorLelis/OntoExpand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

56 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OntoExpand

OntoExpand is a lightweight, scalable toolkit for reasoning and knowledge enrichment in OWL ontologies using SPARQL. Designed for Semantic Web applications, OntoExpand avoids the high computational costs of traditional OWL reasoners by leveraging SPARQL CONSTRUCT and INSERT queries to perform efficient, incremental inference.

This app is built with Next.js and includes a GraphDB container (via Docker Compose) to get started quickly with a local ontology repository.

πŸš€ Features

  • πŸ” SPARQL-Driven Inference: Translates OWL axioms into SPARQL CONSTRUCT queries to generate inferred triples.
  • ♻️ Ontology Expansion: Automatically reinserts inferred triples using SPARQL INSERT for incremental enrichment.
  • ⚑ High Performance: Avoids the overhead of traditional ontology reasoners, making it suitable for large-scale datasets.
  • πŸ”— GraphDB Integration: Works seamlessly with Ontotext GraphDB via SPARQL endpoint.
  • 🐳 One-Command Dev Setup: Launch GraphDB and the Next.js app together using Docker Compose.

βš™οΈ Setup Instructions

1. Clone the Repository

git clone https://github.com/VitorLelis/OntoExpand
cd OntoExpand

2. Run OntoExpand + GraphDB with Docker

The project includes a Docker Compose file that launches both the Next.js app and GraphDB together:

docker compose up --build
# or
docker compose up --build -d # run detached

Changes to your local code are reflected automatically in the running container (hot reload).

3. Create a Repository in GraphDB

Before using OntoExpand, you must create a repository in GraphDB. Follow the instructions here:

πŸ‘‰ GraphDB Documentation – Creating a Repository

πŸ§ͺ Development Workflow

If you’re running inside Docker (recommended):

docker compose up --build
# or
docker compose up --build -d # run detached

If you prefer running locally (don't forget the GraphDB instance):

npm install
npm run dev

The app will be available at http://localhost:3000.

πŸ“š Background

Traditional OWL reasoners are powerful but computationally expensive, often limiting their use in large-scale or dynamic environments. OntoExpand provides a more efficient alternative by translating OWL axioms into SPARQL CONSTRUCT queries and reinserting inferred triples using INSERT operations. This approach enables scalable, incremental reasoning directly over SPARQL endpoints like GraphDB.

πŸ› οΈ Requirements

  • Node.js 18+
  • Docker & Docker Compose
  • A running GraphDB repository

About

Webapp to showcase the OntoExpand project πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages