Querying XML documents in logic programming

被引:13
作者
Almendros-Jimenez, J. M. [1 ]
Becerra-Teron, A. [1 ]
Enciso-Banos, F. J. [1 ]
机构
[1] Univ Almeria, Dpto Lenguajes & Computac, Almeria, Spain
关键词
logic programming; XML; XPath;
D O I
10.1017/S1471068407003183
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:323 / 361
页数:39
相关论文
共 45 条
[1]  
Abiteboul S., 1999, DATA WEB RELATIONS S
[2]  
Almendros-Jiménez JM, 2006, J UNIVERS COMPUT SCI, V12, P1651
[3]  
ALMENDROSJIMENE.JM, 2007, P WORKSH LOG PROGR U
[4]  
Apt K.R., 1990, Handbook of Theoretical Computer Science, VB, P493
[5]  
Atanassow F, 2004, LECT NOTES COMPUT SC, V3057, P71
[6]  
Bailey J, 2005, LECT NOTES COMPUT SC, V3564, P35
[7]  
Baumgartner R., 2001, LNCS, V2250, P548, DOI DOI 10.1007/3-540-45653-8_
[8]  
BENZAKEN V, 2005, P ACM SIGPLAN INT C, P51
[9]  
BERNERSLEE T, 2001, SCI AM MAY
[10]  
BOLEY H, 2000, P WORKSH LOG PROGR W, P19