Enhancing PQDAG with Semantic Path Intelligence for Knowledge Graph Query Answering: Hidden Entity Reasoning and LLM-Assisted Interaction

dc.contributor.authorZaourar, Hibeterrahman Khaoula
dc.date.accessioned2026-11-24T10:02:27Z
dc.date.available2026-11-24T10:02:27Z
dc.date.issued2026-10-04
dc.description.abstractPQDAG is a distributed RDF engine built to handle knowledge graphs at billions-of-triples scale, but scale alone does not make a graph usable: every interaction with it requires handwritten SPARQL, and the domain experts a knowledge graph is meant to serve rarely have PQDAG’s internal schema memorized. This thesis connects a large language model agent to PQDAG to close that gap, and makes three contributions toward doing so. The first is a benchmark that directly measures a specific, previously undermeasured failure mode in LLM-based SPARQL generation: the hidden-entity problem, where a correct query must pass through an intermediate RDF node that the natural-language question never names. Five open-weight local models are evaluated across five prompting conditions on an annotated WatDiv dataset, labelled by hop count and by whether a hidden entity is present. The resulting hidden-entity penalty is confirmed to be real but conditional: negligible at short (2-hop) chains, clearly present and consistent from 3 hops onward. Path grounded is the best-performing single condition on the metrics that matter most for the hidden-entity problem (structure/chain match), but it’s not a complete solution on its own. The second is a path pattern extraction pipeline built specifically for PQDAG’s constraints: no fixed seed entities, no external ontology, and a graph too large for exhaustive enumeration. The pipeline selects a diverse, quality-scored set of seed fragments, grows paths outward with a pruned bidirectional breadth-first search, and indexes the result for fast online retrieval. A baseline comparison shows that quality-and diversity seed selection, holding the extraction engine and every pruning parameter fixed, reaches about 4.6× the predicate coverage of random seeding at an identical seed budget on multi-hop patterns (0.2212 against 0.0481), while fragment coverage is equally low for both (0.0054 against 0.0052). The third is an agent architecture that exposes PQDAG and its path index to an LLM through a CLI first tool layer, a choice driven by PQDAG’s actively evolving Java codebase. Skills are added as they are transport-agnostic, and the resulting system is tested end to end through the LibreChat conversational interface, demonstrating that a natural-language question can be routed through the agent’s tools into a grounded, executable SPARQL query against PQDAG. Together, these three contributions move PQDAG from a system that is fast but effectively closed to non-specialists toward one a domain expert without SPARQL training could plausibly query directly. Open questions remain — most notably around the generality of the extraction pipeline’s evaluation and the root cause of one recurring depth-related finding — but this integrated architecture establishes a foundational blueprint for democratizing access to massive-scale distributed knowledge graphs
dc.identifier.urihttps://dspace.univ-tlemcen.dz/handle/112/27436
dc.language.isoen
dc.publisherUniversity of tlemcen
dc.subjectEnhancing PQDAG with Semantic Path Intelligence for Knowledge Graph Query Answering: Hidden Entity Reasoning and LLM-Assisted Interaction
dc.titleEnhancing PQDAG with Semantic Path Intelligence for Knowledge Graph Query Answering: Hidden Entity Reasoning and LLM-Assisted Interaction
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Thesis_ZAOURAR_Hibeterrahman_Khaoula-2.pdf
Size:
10 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description:

Collections