XPath evaluation method, XML document processing system and program using the same
First Claim
Patent Images
1. An XPath evaluation method for evaluating a plurality of XPaths with respect to a predetermined data file by a computer, said method comprising the steps of:
- reading out a plurality of XPath expressions to be evaluated from a memory and generating a data structure that has a common part of said plurality of XPath expressions as a common node in a tree structure;
inputting a data file to be an objective of processing from a memory and evaluating said data structure in node-by-node basis using said data structure with respect to said data file; and
obtaining an evaluation result for each XPath expression by combining said evaluation results for each of nodes and storing the obtained evaluation result into a memory.
3 Assignments
0 Petitions
Accused Products
Abstract
To efficiently search an evaluation result of a plurality of XPath expressions with respect to a data file such as an XML document: an evaluation result of an XPath expression is obtained by generating a data structure with a redundant element by evaluating what common part or dependency has been omitted from a plurality of XPath expressions to be evaluated, and then the data structure is used with respect to a data file to be processed.
-
Citations
34 Claims
-
1. An XPath evaluation method for evaluating a plurality of XPaths with respect to a predetermined data file by a computer, said method comprising the steps of:
-
reading out a plurality of XPath expressions to be evaluated from a memory and generating a data structure that has a common part of said plurality of XPath expressions as a common node in a tree structure;
inputting a data file to be an objective of processing from a memory and evaluating said data structure in node-by-node basis using said data structure with respect to said data file; and
obtaining an evaluation result for each XPath expression by combining said evaluation results for each of nodes and storing the obtained evaluation result into a memory. - View Dependent Claims (2, 3, 4)
-
-
5. An XPath evaluation method for evaluating a plurality of XPaths with respect to a predetermined data file by a computer, said method comprising:
-
a first step of reading out a plurality of XPath expressions to be evaluated from a memory and extracting a common part from the plurality of XPath expressions; and
a second step of reading out a data file to be an objective of processing from a memory, evaluating said part common to said XPath expressions and the other parts separately with respect to the data file, obtaining an evaluation result for each XPath expression by combining the evaluation results, and storing the obtained evaluation result into a memory, wherein said second step comprises a step of using an evaluation result obtained at an evaluation of another XPath as an evaluation result for a common part of a predetermined XPath expression if such an evaluation result exists, with respect to said common part when evaluating the predetermined XPath expression.
-
-
6. An XPath evaluation method for evaluating a plurality of XPaths with respect to a predetermined data file by a computer, said method comprising the steps of:
-
reading out an XPath set including a plurality of XPath expressions to be evaluated from a memory and generating a data structure with a redundant element in the XPath expressions included in the XPath set omitted;
inputting a data file to be an objective of processing, evaluating said XPath set by using said data structure with respect to the data file, and storing the obtained evaluation result into a memory. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A document processing system comprising:
-
an XPath storing part which stores a plurality of XPath expressions;
a data structure-generation part for generating a data structure with redundant elements of said plurality of XPath expressions stored in said XPath-storing part being omitted; and
an evaluation execution part for evaluating said plurality of XPath expressions with respect to a data file to be evaluated by using said data structure generated at said data structure-generation part. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A program for controlling a computer to evaluate a plurality of XPaths with respect to a predetermined data file, said program causes said computer to execute the processes for:
-
generating a data structure having a part common to a plurality of XPath expressions to be evaluated as a common node in a tree structure;
said data structure with respect to a data file to be an objective of processing; and
obtaining each evaluation result for individual XPath expressions by combining evaluation results for each of said node. - View Dependent Claims (19, 20, 21, 22)
-
-
23. A program for controlling a computer to evaluate a plurality of XPaths with respect to a predetermined data file, said program causes said computer to function as:
-
a data structure generation means for reading out a plurality of XPath expressions to be evaluated from a memory, generating a data structure with a redundant element in the plurality of XPath expressions omitted, and storing the generated data structure into a memory; and
an evaluation execution means for evaluating said plurality of XPath expressions with respect to a data file to be an objective of processing by using said generated data structure.
-
-
24. A program for controlling a computer to evaluate a plurality of XPaths with respect to a predetermined data file, said program causes said computer to execute the processes for:
-
extracting a common part from a plurality of XPath expressions to be evaluated; and
obtaining an evaluation result for each XPath expression, with respect to a data file to be an objective of processing, by evaluating said part common to said XPath expressions and the other parts separately and combining the evaluation results, wherein said process for obtaining an evaluation of an XPath expression by said program comprises a process for using an evaluation result obtained at an evaluation of another XPath as an evaluation result for a common part of a predetermined XPath expression if such an evaluation result exists, with respect to said common part when evaluating the predetermined XPath expression.
-
-
25. A program for controlling a computer to evaluate a plurality of XPaths with respect to a predetermined data file, said program causes said computer to execute the processes for:
-
generating a data structure with a redundant element of the XPath expressions omitted from an XPath set to be evaluated, which is configured as including a plurality of XPath expressions;
evaluating said data structure in node-by-node basis using said data structure with respect to said data file to be an objective of processing; and
evaluating said XPath set by using said data structure. - View Dependent Claims (26, 27, 28, 29, 30)
-
-
31. A storage medium for storing computer readably a program which controls a computer to evaluate a plurality of XPaths with respect to a predetermined data file, said program causes said computer to execute the processes for:
-
generating a data structure that has a common part of a plurality of XPath expressions to be evaluated as a common node in a tree structure;
evaluating said data structure in node-by-node basis using said data structure with respect to a data file to be an objective of processing; and
obtaining an evaluation result for individual XPath expressions by combining said evaluation results for each of nodes.
-
-
32. A storage medium for storing computer readably a program which controls a computer to evaluate a plurality of XPaths with respect to a predetermined data file, said program causes said computer to function as:
-
a data structure generation means for reading out a plurality of XPath expressions to be evaluated from a memory, generating a data structure with a redundant element in the plurality of XPath expressions omitted, and storing the generated data structure into a memory; and
an evaluation execution means for evaluating said plurality of XPath expressions with respect to a data file to be an objective of processing by using said generated data structure.
-
-
33. A storage medium for storing computer readably a program which controls a computer to evaluate a plurality of XPaths with respect to a predetermined data file, said program causes said computer to execute the processes for:
-
extracting a common part from a plurality of XPath expressions to be evaluated; and
obtaining an evaluation result for individual XPath expressions by evaluating said part common to said XPath expressions and the other parts separately with respect to a data file to be an objective of processing, and combining the evaluation results, wherein said process for obtaining an evaluation of said XPath expression by said program comprises a process for using an evaluation result obtained at an evaluation of another XPath as an evaluation result for a common part of a predetermined XPath expression if such an evaluation result exists, with respect to said common part when evaluating the predetermined XPath expression.
-
-
34. A storage medium for storing computer readably a program which controls a computer to evaluate a plurality of XPaths with respect to a predetermined data file, said program causes said computer to execute the processes for:
-
XPath expressions omitted from an XPath set to be evaluated, which is configured as including a plurality of XPath expressions;
evaluating said data structure in node-by-node basis using said data structure with respect to an data file to be an objective of processing; and
evaluating said XPath set by using said data structure.
-
Specification