Skip to content

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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages