# OwlPath: Ontology-Based Code Retrieval Cuts Agent Tokens 29%

DevFeed: [OwlPath: Ontology-Based Code Retrieval Cuts Agent Tokens 29%](<https://devfeed.tech/articles/owlpath-ontology-based-code-retrieval-cuts-agent-tokens-29-56264.md>)

Original publisher: [Read original article](<https://www.developersdigest.tech/blog/owlpath-ontology-code-retrieval-coding-agents>)

Author: Developers Digest

Published: 2026-07-31T00:00:00Z

Content type: article

Language: en

Sources: [Developers Digest](<https://devfeed.tech/sources/developers-digest.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [code](<https://devfeed.tech/tags/code.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [context-engineering](<https://devfeed.tech/tags/context-engineering.md>), [news](<https://devfeed.tech/tags/news.md>), [ontology](<https://devfeed.tech/tags/ontology.md>), [paper](<https://devfeed.tech/tags/paper.md>), [research](<https://devfeed.tech/tags/research.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [swe-bench](<https://devfeed.tech/tags/swe-bench.md>), [tokens](<https://devfeed.tech/tags/tokens.md>)

## AI overview

A paper presents OwlPath, which represents code as an OWL2 ontology and uses SPARQL property paths to answer multi-hop structural queries for coding agents. The supplied evidence reports 2.06x higher retrieval recall and 28.8% fewer tokens on SWE-bench Pro compared with treating code as plain text.

## Source excerpt

A new paper wraps code into an OWL2 ontology with SPARQL property paths to answer multi-hop structural queries for coding agents - 2.06x retrieval recall and 28.8% fewer tokens on SWE-bench Pro, versus treating code as plain text.