SPARQL in N3: SPARQL construct as a Rule Language for the Semantic Web

Research output: Contribution to book/Conference proceedings/Anthology/ReportConference contributionContributedpeer-review

Contributors

Abstract

Reasoning in the Semantic Web (SW) commonly uses Description Logics (DL) via OWL2 DL ontologies, or SWRL for variables and Horn clauses. The Rule Interchange Format (RIF) offers more expressive rules but is defined outside RDF and rarely adopted. For querying, SPARQL is a well-established standard operating directly on RDF triples. We leverage SPARQL construct queries as logic rules, enabling (1) an expressive, familiar SW rule language, and (2) general recursion, where queries can act on the results of others. We translate these queries to the Notation3 Logic (N3) rule language, allowing use of existing reasoning machinery with forward and backward chaining. Targeting a one-to-one query–rule mapping improves exchangeability and interpretability. Benchmarks indicate competitive performance, aiming to advance the potential of rule-based reasoning in the SW.

Details

Original languageEnglish
Title of host publicationRules and Reasoning
EditorsAidan Hogan, Ken Satoh, Hasan Dag, Anni-Yasmin Turhan, Dumitru Roman, Dumitru Roman, Ahmet Soylu
PublisherSpringer Science and Business Media B.V.
Pages209-226
Number of pages18
ISBN (electronic)978-3-032-08887-1
ISBN (print)978-3-032-08886-4
Publication statusPublished - 2026
Peer-reviewedYes

Publication series

SeriesLecture Notes in Computer Science
Volume16144 LNCS
ISSN0302-9743

Conference

Title9th International Joint Conference on Rules and Reasoning
Abbreviated titleRuleML+RR 2025
Conference number9
Descriptionpart of the event “Declarative AI: Rules, Reasoning, Decisions, and Explanations” and is co-located with DecisionCAMP 2025 and the Reasoning Web Summer School 2025
Duration22 - 24 September 2025
Website
LocationKadir Has University
CityIstanbul
CountryTurkey

Keywords

Keywords

  • Notation3, Rule-based reasoning, SPARQL