SPARQL in N3: SPARQL CONSTRUCT as a rule language for the Semantic Web (Extended Version)

📅 2025-08-18
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the longstanding trade-off between expressivity and usability in semantic web rule languages by proposing a novel paradigm that treats SPARQL CONSTRUCT queries directly as logical rules. Methodologically, it establishes a bijective, reversible mapping between CONSTRUCT syntax and Notation3 (N3) logic, enabling general recursion and both forward and backward chaining while remaining compatible with existing SPARQL engines and N3 reasoners. Its key contribution is the first rigorous, syntax-preserving correspondence between CONSTRUCT and formal logical semantics—thereby endowing SPARQL’s user-friendly syntax with full logical expressiveness and formal interpretability. Experimental evaluation on standard rule benchmarks—including RDFS entailment and SWRL extension test suites—demonstrates competitive reasoning performance. The approach significantly enhances interoperability, exchangeability, and engineering practicality of semantic web rules.

Technology Category

Application Category

📝 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.
Problem

Research questions and friction points this paper is trying to address.

Using SPARQL CONSTRUCT as expressive Semantic Web rules
Enabling general recursion in rule-based reasoning
Translating SPARQL queries to N3 for improved reasoning
Innovation

Methods, ideas, or system contributions that make the work stand out.

SPARQL CONSTRUCT as expressive rule language
Translation to Notation3 Logic for reasoning
One-to-one query-rule mapping for interpretability
🔎 Similar Papers