We present an updated version of fosf, a reasoner for fuzzy order-sorted feature (OSF) logic, with support for flexible SPARQL query answering over RDF knowledge graphs. Fuzzy OSF logic is a knowledge representation and reasoning language where feature symbols denote functions and sort symbols denote fuzzy sets. Sorts are organized in a fuzzy subsumption relation that extends to OSF terms, record-like structures representing classes of entities. The unification algorithm for these structures provides a calculus of fuzzy type subsumption. The latest release of fosf introduces support for similarity-based reasoning by extending the OSF language with a similarity relation among sorts, alongside a translation engine for compiling OSF terms into standard SPARQL. Queries expressed as OSF terms undergo fuzzy ontology-aware rewriting prior to translation. This process incorporates an OSF theory of sort definitions, feature domain and range declarations, and fuzzy subsumption and similarity relations through fuzzy OSF constraint normalization. This rewriting enables flexible query answering by returning approximate solutions, allowing queries that would otherwise be inconsistent with the underlying ontology to yield relevant results.
Figures & tables
Figure 1: Example of how a sort subsumption ⪯ (black edges) and a sort similarity ∼ (dotted green edges) are parsed in fosf , and their graphical representation (where {\color[rgb]{0.06,0.22,0.61}\bot} is omitted). After parsing, the two relations are combined into a single fuzzy subsumption \mathop{\mathbin{\mathrel{\mathchoice{{\preceq}\mkern-5.0mu\raisebox{0.9106pt}{\displaystyle\cdot}}{{\preceq}\mkern-5.0mu\raisebox{0.9106pt}{\textstyle\cdot}}{{\preceq}\mkern-5.0mu\raisebox{0.71881pt}{\scriptstyle\cdot}}{{\preceq}\mkern-5.0mu\raisebox{0.43593pt}{\scriptscriptstyle\cdot}}}}} (black edges and dashed red edges).
Figure 4: SPARQL queries corresponding to the OSF term t , before and after normalization.
Figure 5: The web interface of fosf , displaying the OSF ontology composed of sort subsumption and similarity declarations, sort definitions, and feature domain/range constraints (left), the target RDF KG facts (middle), and the OSF query term (right). Action buttons enable users to inspect the taxonomy, display the translated query, and execute the generated SPARQL, with options to toggle OSF query normalization and the similarity relation.
This paper presents a versatile framework for evaluating fuzzy quantification queries over both standard and fuzzy ontologies as well as knowledge graphs. The primary objective is the retrieval of individuals that satisfy queries articulated via Type I or Type II fuzzy quantified expressions. A key advantage of the proposed approach is its inherent adaptability: it remains entirely agnostic to the quantifier type, the underlying evaluation method, and the specific data source of the ontology (i.e., OWL ontologies or RDFS knowledge graphs). Furthermore, we present Q2S2, a publicly accessible implementation of this system developed to support future research.
Enrique Palacín, Fernando Bobillo, Ignacio Huitzil +2
University of Zaragoza, Zaragoza, Spain · Aragon Institute of Engineering Research (I3A), Zaragoza, Spain · University of Bari Aldo Moro, Bari, Italy +1
Standard dense retrievers have no native mechanism for multi-atom logical constraints. We introduce Neuro-Symbolic Fuzzy Logic (NSFL), a training-free framework that brings fuzzy-logical structure to neural embedding spaces through a first-order finite-difference treatment of similarity. NSFL anchors logical operations on zero-order atomic scores while steering with Neuro-Symbolic Deltas (NS-Delta) -- the marginal semantic contributions induced by contextual fusion -- preserving atomic meaning while capturing contextual dependence, and avoiding the representation collapse and manifold escape endemic to geometric baselines. For latency-constrained deployment, Spherical Query Optimization (SQO) uses Riemannian optimization to project logical formulas into manifold-stable query vectors. Across six encoder configurations and two modalities, NSFL yields mAP@100 improvements up to +81% on QUEST and +70% on a COCO-derived text-to-image benchmark, and provides an additive +19% average gain on an encoder already fine-tuned for logical retrieval. On NevIR, where absolute accuracies are directly interpretable, NSFL doubles pairwise accuracy -- NevIR's both-correct criterion -- from 0.256 to 0.508. The decomposition is exact and general; the operators built on it are engineering realizations rather than a closed algebra, and we state that boundary precisely. Code is available at https://github.com/vladiaidev-lab/NSFL
LLMs have revolutionized knowledge representation and retrieval, but lack the explicit modeling that knowledge ontologies possess. This paper surveys the ways that ontologies and knowledge graphs have been integrated with dense embedding algorithms. All hitherto attempts involve a trade-off between probabilistic and crisp inference. This paper proposes a novel frontier for devising knowledge representation systems that can simultaneously accommodate probabilistic and crisp inference in the same representation. To this effect, the paper proposes neuro-quantum-fuzzy systems as knowledge representation systems that accommodate both classical and contextual inference implemented through quantum-neural networks (QNN).