Querying xml documents in logic programming
22
TL;DR: In this article, the authors describe the representation of XML documents by means of a logic program, and present how to index XML documents in logic programs: rules are supposed to be stored in main memory, however facts are stored in secondary memory by using two kind of indexes: one for each XML tag, and other for each group of terminal items.
read more
Abstract: Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML. Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere. XPath language is the result of an effort to provide address parts of an XML document. In support of this primary purpose, it becomes in a query language against an XML document. In this paper we present a proposal for the implementation of the XPath language in logic programming. With this aim we will describe the representation of XML documents by means of a logic program. Rules and facts can be used for representing the document schema and the XML document itself. In particular, we will present how to index XML documents in logic programs: rules are supposed to be stored in main memory, however facts are stored in secondary memory by using two kind of indexes: one for each XML tag, and other for each group of terminal items. In addition, we will study how to query by means of the XPath language against a logic program representing an XML document. It evolves the specialization of the logic program with regard to the XPath expression. Finally, we will also explain how to combine the indexing and the top-down evaluation of the logic program.
read more
Chat with Paper
AI Agents for this Paper
Find similar papers on Google Scholar, PubMed and Arxiv
Write a critical review of this paper
Analyze citations of this paper to find unaddressed research gaps
Citations
A flexible XPath-based query language implemented with fuzzy logic programming
Jesús M. Almendros-Jiménez,Alejandro Luna,Ginés Moreno +2 more
- 19 Jul 2011
TL;DR: This approach proposes fuzzy variants of and, or and avg operators for XPath conditions, as well as two structural constraints, called down and deep, for which a certain degree of relevance is associated.
Annotating Fuzzy chance degrees when debugging XPath queries
Jesús M. Almendros-Jiménez,Alejandro Luna Tedesqui,Ginés Moreno +2 more
- 12 Jun 2013
TL;DR: This work is focused on providing to the programmers a repertoire of paths which can be used to retrieve answers and gives a "chance degree" that represents an estimation on its deviation w.r.t. the initial expression.
19
An RDF Query Language based on Logic Programming
TL;DR: This paper investigates an extension of XQuery for querying (and inferring) from RDF documents with construction of answers and boolean predicates for RDF entailment relationship inference.
19
Fuzzy XPath through Fuzzy Logic Programming
TL;DR: A fuzzy variant of the XPath query language for the flexible information retrieval on XML documents is presented to provide a repertoire of operators that offer the possibility of managing satisfaction degrees by adding structural constraints and fuzzy operators inside conditions in order to produce a ranked sorted list of answers when composing queries.
18
Fuzzy Logic Programming for Implementing a Flexible XPath-based Query Language
TL;DR: FLOPER as discussed by the authors is a Fuzzy LOgic Programming Environment for Research designed in our research group for assisting the development of real-world applications where fuzzy logic might play an important role.
17
References
•Book
Handbook of theoretical computer science
J. Van Leeuwen
- 19 Dec 1990
TL;DR: The Handbook of Theoretical Computer Science provides professionals and students with a comprehensive overview of the main results and developments in this rapidly evolving field.
4.3K
Storing and querying ordered XML using a relational database system
Igor Tatarinov,Stratis D. Viglas,Kevin Scott Beyer,Jayavel Shanmugasundaram,Eugene J. Shekita,Chun Zhang +5 more
- 03 Jun 2002
TL;DR: This paper shows that XML's ordered data model can indeed be efficiently supported by a relational database system, and proposes three order encoding methods that can be used to represent XML order in the relational data model, and also proposes algorithms for translating ordered XPath expressions into SQL using these encoding methods.
2.4K
•Journal Article
The Semantic Web: A new form of Web content that is meaningful to computers will unleash a revolution of new possibilities
TL;DR: The entertainment system was belting out the Beatles' "The authors Can Work It Out" when Pete answered the phone, and his phone turned the sound down by sending a message to all the other local devices that had a volume control.
1.6K
•Book
Data on the Web: From Relations to Semistructured Data and XML
Serge Abiteboul,Peter Buneman,Dan Suciu +2 more
- 21 Oct 1999
TL;DR: A Syntax for Data: Typing semistructured data and the Lore system and database products supporting XML are explained.
1.2K
The Semantic Web: the roles of XML and RDF
Stefan Decker,Sergey Melnik,F.A.H. van Harmelen,Dieter Fensel,Michel C. A. Klein,Jeen Broekstra,Michael Erdmann,Ian Horrocks +7 more
TL;DR: It is argued that a further representation and inference layer is needed on top of the Web's current layers, and to establish such a layer, a general method for encoding ontology representation languages into RDF/RDF schema is proposed.