Skip to content
zzunairaaPublic

About

πŸ† SD-LLOD-26 winner | Multimodal ASL Linguistic Linked Open Data with OntoLex-Lemon, RDF/SPARQL, and LLM-based NL-to-SPARQL querying.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

33 Commits

Folders and files

Repository files navigation

ONTOSIGN β€” ASL Knowledge Explorer

πŸ† Winning Project β€” 6th Summer Datathon on Linguistic Linked Open Data (SD-LLOD-26)

ONTOSIGN / ASL Knowledge Explorer is a multimodal Linguistic Linked Open Data (LLOD) framework for exploring American Sign Language (ASL) through natural-language queries. It represents lexical, semantic, phonological, psycholinguistic, and multimodal sign-language information as an OntoLex-Lemon RDF knowledge graph and provides LLM-powered natural-language-to-SPARQL querying.

Live Demo

πŸš€ Try ONTOSIGN Live β€” Explore the ASL knowledge graph through natural-language queries and inspect the generated SPARQL.

Team: Fashad Ahmed Siddique Β· Zunaira Hasnain Β· Oreoluwa Babatunde Β· Luana Nova Β· Nuveyba Ekinci

Project: Building a Multimodal Linked Data Framework for Sign Language Lexicons

Event: 6th Summer Datathon on Linguistic Linked Open Data (SD-LLOD-26)


Overview

ASL Knowledge Explorer demonstrates how sign-language dictionaries and lexical resources can be transformed into multimodal Linguistic Linked Open Data and explored without requiring users to know SPARQL.

The application follows the pipeline:

Natural Language β†’ NL-to-SPARQL β†’ Knowledge Graph β†’ Linked Results

Users can ask questions such as:

  • Show me Food signs
  • Which one-handed signs are articulated at the head?
  • Which signs share the lemma wrong?
  • Show Animal signs articulated at the head and their handshapes
  • Which signs do not have a path movement?
  • Show signs with frequency at least 5

The current pilot contains 50 curated ASL signs and integrates lexical, semantic, phonological, psycholinguistic, and multimodal information.


Knowledge Graph

The ASL data is represented as an RDF knowledge graph using OntoLex-Lemon, SKOS, and related Semantic Web vocabularies. Lexical entries are connected to canonical forms, concepts, semantic fields, phonological properties, psycholinguistic measures, and multimedia references.

ASL Knowledge Explorer RDF Knowledge Graph

Visualization of a portion of the ASL Knowledge Explorer RDF knowledge graph.

The graph supports relationships across several linguistic dimensions:

  • Lexical: lexical entries, lemmas, translations, lexical class
  • Semantic: concepts and semantic fields
  • Phonological: sign type, handshape, selected fingers, thumb position, movement, location, and contact
  • Psycholinguistic: frequency, iconicity, phonological complexity, and neighborhood density
  • Multimodal: handshape images and external ASL-LEX visualization references

Features

  • Natural-language querying of an ASL knowledge graph
  • Schema-grounded NL β†’ SPARQL generation
  • GPT-OSS-20B via Groq for LLM-based query generation
  • Read-only SPARQL validation before execution
  • RDF modeling based on OntoLex-Lemon
  • Semantic and lexical retrieval
  • Phonological querying across handshape, movement, location, contact, and sign type
  • Psycholinguistic querying using frequency, iconicity, complexity, and neighborhood density
  • Multimodal references to handshape images and ASL-LEX visualization pages
  • Optional execution against a live SPARQL endpoint
  • Local querying over the curated real 50-sign dataset when an endpoint is not configured
  • Generated SPARQL viewer for transparency and debugging
  • Linked result cards for matching ASL signs

Technology Stack

  • Next.js 15
  • React 19
  • TypeScript
  • Groq SDK
  • GPT-OSS-20B
  • RDF / Turtle
  • SPARQL
  • OntoLex-Lemon
  • SKOS
  • Linguistic Linked Open Data (LLOD)
  • GraphDB / SPARQL-compatible RDF stores

Project Structure

Datathon/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   └── ask/
β”‚   β”‚       └── route.ts
β”‚   β”œβ”€β”€ globals.css
β”‚   β”œβ”€β”€ layout.tsx
β”‚   └── page.tsx
β”‚
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ResultCard.tsx
β”‚   β”œβ”€β”€ SearchBox.tsx
β”‚   └── SparqlViewer.tsx
β”‚
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ ASLLEX_dataset_50.csv
β”‚   β”œβ”€β”€ asllex_50_revised_ontolex_model.ttl
β”‚   └── asllex_50_revised_queries.sparql
β”‚
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ kg-schema.ts
β”‚   β”œβ”€β”€ nl-to-sparql.ts
β”‚   β”œβ”€β”€ query-real-data.ts
β”‚   β”œβ”€β”€ real-data.ts
β”‚   β”œβ”€β”€ sparql-endpoint.ts
β”‚   β”œβ”€β”€ types.ts
β”‚   └── validate-sparql.ts
β”‚
β”œβ”€β”€ Resources/
β”‚   β”œβ”€β”€ KG.jpeg
β”‚   └── SIGN LANGUAGE MODELLING & LINKING GROUP.pdf
β”‚
β”œβ”€β”€ .env.example
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
└── tsconfig.json

Data and RDF Model

The repository includes a curated 50-sign ASL pilot dataset, its RDF/Turtle representation, and competency SPARQL queries.

File Description
data/ASLLEX_dataset_50.csv Curated 50-sign pilot dataset
data/asllex_50_revised_ontolex_model.ttl RDF/Turtle knowledge graph modeled with OntoLex-Lemon
data/asllex_50_revised_queries.sparql Example and competency SPARQL queries

The model represents information including:

  • Entry and lemma identifiers
  • Dominant and nondominant translations
  • Lexical class
  • Semantic field
  • Sign type
  • Handshape
  • Selected fingers
  • Thumb position
  • Path movement
  • Repeated movement
  • Major and minor location
  • Contact
  • Frequency
  • Iconicity
  • Phonological complexity
  • Neighborhood density
  • Multimedia references

Semantic and phonological categories are represented as reusable RDF resources rather than only as flat string values.


System Architecture

User Question
     β”‚
     β–Ό
Next.js Interface
     β”‚
     β–Ό
POST /api/ask
     β”‚
     β–Ό
Schema-Grounded NL β†’ SPARQL
     β”‚
     β–Ό
Read-Only SPARQL Validation
     β”‚
     β”œβ”€β”€β”€β”€ SPARQL_ENDPOINT_URL configured ────► RDF Knowledge Graph
     β”‚                                               β”‚
     β”‚                                               β–Ό
     β”‚                                            Results
     β”‚
     └──── No endpoint ───────────────────────► Local 50-Sign Dataset
                                                     β”‚
                                                     β–Ό
                                                  Results

The application supports three configurations:

  1. Local dataset mode β€” uses the supplied real 50-sign dataset with the schema-aware fallback query generator.
  2. LLM + local dataset β€” GPT-OSS generates SPARQL while matching result cards are retrieved from the local 50-sign dataset.
  3. LLM + live RDF knowledge graph β€” generated SPARQL is validated and executed directly against a configured RDF/SPARQL endpoint.

NL-to-SPARQL

The language model is not asked to generate arbitrary SPARQL. Generation is grounded in the actual knowledge-graph schema defined in:

lib/kg-schema.ts

The prompt and few-shot examples are implemented in:

lib/nl-to-sparql.ts

They cover query families including:

  • Semantic retrieval
  • Phonological retrieval
  • Combined semantic + phonological constraints
  • Lemma lookup
  • Translation lookup
  • Missing-property queries
  • Numerical thresholds
  • Psycholinguistic constraints
  • Neighborhood analysis
  • Multimodal retrieval

Before execution, generated SPARQL is checked by:

lib/validate-sparql.ts

Example

Natural-language question:

Which one-handed signs are articulated at the head?

Example generated query:

PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX aslkg: <https://w3id.org/asl-lex-kg/ontology#>

SELECT ?entry ?entryId
WHERE {
  ?entry a aslkg:SignLexicalEntry ;
         dct:identifier ?entryId ;
         ontolex:lexicalForm ?form .

  ?form aslkg:signType ?signTypeResource ;
        aslkg:majorLocation ?locationResource .

  ?signTypeResource skos:prefLabel "One Handed"@en .
  ?locationResource skos:prefLabel "Head"@en .
}
ORDER BY ?entryId

The matching ASL signs are returned to the interface and displayed as result cards.


Getting Started

Prerequisites

  • Node.js 18+ (current LTS recommended)
  • npm

Install dependencies

npm install

Run locally

npm run dev

Then open:

http://localhost:3000

The application can run using the supplied local dataset without requiring an API key.


Enable LLM-Based NL β†’ SPARQL

Create .env.local from the example environment file.

On macOS/Linux:

cp .env.example .env.local

On Windows PowerShell:

Copy-Item .env.example .env.local

Add your Groq API key:

GROQ_API_KEY=your_groq_api_key

Restart the development server.

When configured, the application uses openai/gpt-oss-20b through Groq for natural-language-to-SPARQL generation.

Never commit .env.local or expose API credentials publicly.


Connect the RDF Knowledge Graph

To execute generated SPARQL directly against the RDF knowledge graph, load:

data/asllex_50_revised_ontolex_model.ttl

into a SPARQL-compatible RDF store such as GraphDB or Apache Jena Fuseki.

Then add the query endpoint to .env.local:

SPARQL_ENDPOINT_URL=your_sparql_query_endpoint

A complete configuration can look like:

GROQ_API_KEY=your_groq_api_key
SPARQL_ENDPOINT_URL=your_sparql_query_endpoint

When SPARQL_ENDPOINT_URL is configured, generated SPARQL is executed directly against the live RDF knowledge graph.


API

POST /api/ask

Example request:

{
  "question": "Show me Food signs"
}

The response includes:

  • Original natural-language question
  • Generated SPARQL
  • Number of matching signs
  • Matching result records
  • Current execution mode
  • Execution note

Multimodal LLOD

A central goal of the project is to move beyond a conventional lexical table by representing multiple dimensions of sign-language information as linked data.

Lexical Information
        ↓
Semantic Concepts
        ↓
Phonological Form
        ↓
Psycholinguistic Measures
        ↓
Multimedia References

This enables cross-dimensional queries such as retrieving signs from a semantic category while simultaneously filtering by articulation location, handshape, movement, contact, frequency, or iconicity.


Datathon

πŸ† Winning Project β€” SD-LLOD-26

ASL Knowledge Explorer was developed during the 6th Summer Datathon on Linguistic Linked Open Data (SD-LLOD-26), held from August 30 to September 4, 2026 at Villa Cagnola, Gazzada Schianno, Italy.

The datathon brings together researchers and students working with Linguistic Linked Open Data, Semantic Web technologies, natural language processing, and linguistic data science.

Team

  • Zunaira Hasnain
  • Luana Nova
  • Nuveyba Ekinci
  • Fashad Ahmed Siddique
  • Oreoluwa Babatunde

Mentors

  • Jorge Gracia del RΓ­o
  • Christian Chiarcos
  • Blerina Spahiu

Data Attribution

The pilot dataset is derived from ASL-LEX resources and is used for research and datathon prototyping.

Multimedia references are represented as external references rather than redistributed ASL-LEX videos. Users of this repository should consult the original ASL-LEX resource and its licensing and usage conditions before redistributing source data or multimedia material.


Future Work

  • Scale beyond the 50-sign pilot
  • Link additional sign-language lexical resources
  • Add richer multimedia annotations
  • Link to external multilingual lexical and conceptual resources
  • Deploy a public SPARQL endpoint
  • Evaluate NL-to-SPARQL accuracy systematically
  • Improve complex cross-modal linguistic querying
  • Extend the framework to additional sign languages

Acknowledgements

We thank the organizers and mentors of the 6th Summer Datathon on Linguistic Linked Open Data (SD-LLOD-26) for their guidance and support during the development of this project.


Build for Production

npm run build
npm start

ASL Knowledge Explorer Β· OntoLex-Lemon Β· RDF Β· SPARQL Β· LLOD Β· Multimodal Sign Language Data

About

πŸ† SD-LLOD-26 winner | Multimodal ASL Linguistic Linked Open Data with OntoLex-Lemon, RDF/SPARQL, and LLM-based NL-to-SPARQL querying.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages