Method and system for effective schema generation via programmatic analysis
First Claim
Patent Images
1. A method to generate an effective schema of an electronic document for optimizing the processing thereof, comprising:
- performing a programmatic analysis to determine required portions of the electronic document prior to generating a parser to generate an optimized document model, wherein the performing programmatic analysis comprises;
beginning at a document root path;
proceeding into a template matching a root corresponding to the document root path;
setting a current context as the root;
determining portions of the document required to compute an expression, wherein determining portions of the document required to compute an expression comprises;
identifying an xs1;
value-of expression as requiring a string-value of a first node in a node set selected by a specified path through the document;
identifying an xs1;
for-each expression as requiring portions of the document necessary to evaluate a select expression of the xs1;
for-each expression as well as a body of the xs1;
for-each expression;
identifying an xs1;
choose expression as requiring portions of the document necessary to evaluate any tests, handlers and default clause;
identifying an xs1;
call-template expression as requiring portions of the document necessary to evaluate any parameter and to evaluate a body of the called template determined by the xs1;
call-template expression, wherein template body uses are recomputed for each template call in response to multiple calls to a template in the document with different document portions being bound to parameters, and wherein document use of a definition will be recursive in response to the xs1;
call-template being one of recursive and mutually recursive; and
requiring a path into a document tree specified by a path expression;
generating the optimized document model; and
specializing a document processing program against the optimized document model.
2 Assignments
0 Petitions
Accused Products
Abstract
A method to generate an effective schema of an electronic document for optimizing the processing thereof may include performing a programmatic analysis to determine all required portions of the electronic document. The method may also include generating a parser or deserializer to build an optimized document model; and specializing a document processing program against the optimized document model.
-
Citations
16 Claims
-
1. A method to generate an effective schema of an electronic document for optimizing the processing thereof, comprising:
-
performing a programmatic analysis to determine required portions of the electronic document prior to generating a parser to generate an optimized document model, wherein the performing programmatic analysis comprises; beginning at a document root path; proceeding into a template matching a root corresponding to the document root path; setting a current context as the root; determining portions of the document required to compute an expression, wherein determining portions of the document required to compute an expression comprises; identifying an xs1;
value-of expression as requiring a string-value of a first node in a node set selected by a specified path through the document;identifying an xs1;
for-each expression as requiring portions of the document necessary to evaluate a select expression of the xs1;
for-each expression as well as a body of the xs1;
for-each expression;identifying an xs1;
choose expression as requiring portions of the document necessary to evaluate any tests, handlers and default clause;identifying an xs1;
call-template expression as requiring portions of the document necessary to evaluate any parameter and to evaluate a body of the called template determined by the xs1;
call-template expression, wherein template body uses are recomputed for each template call in response to multiple calls to a template in the document with different document portions being bound to parameters, and wherein document use of a definition will be recursive in response to the xs1;
call-template being one of recursive and mutually recursive; andrequiring a path into a document tree specified by a path expression; generating the optimized document model; and specializing a document processing program against the optimized document model. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system to generate an effective schema of an electronic document for optimizing the processing thereof, comprising:
-
a programmatic analyzer to determine required portions of the electronic document prior to parsing, wherein the programmatic analyzer comprises; means for identifying a document root path to begin analysis; means for proceeding into a template matching a root corresponding to the document root path; means for setting a current context as the root; means for determining portions of the document required to compute an expression; means for identifying any xs1;
value-of expression as requiring a string-value of a first node in a node set selected by a specified path through the document;means for identifying an xs1;
for-each expression as requiring portions of the document necessary to evaluate a select expression of the xs1;
for-each expression as well as an xs1;
for-each body;means for identifying an xs1;
choose expression as requiring portions of the document necessary to evaluate any tests, handlers and default clause;means for identifying an xs1;
call-template as requiring portions of the document necessary to determine any parameter and to evaluate a body of a called template determined by the xs1;
call-template expression, wherein template body uses are recomputed for each template call in response to multiple calls to a template in the document with different document portions being bound to the parameters, and wherein document use of a definition will be recursive in response to the xs1;
call-template being one of recursive and mutually recursive;means for determining a path into a document tree specified by the specified path; a parser to build up an indexed document tree including a plurality of nodes each corresponding to a required portion of the electronic document; and an input specialization transform module to optimize a document processing program against an optimized document model from the parser. - View Dependent Claims (12)
-
-
13. A computer program product to generate an effective schema of an electronic document for optimizing the processing thereof, the computer program product comprising:
-
a computer usable medium having computer usable program code embodied therein, the computer usable medium comprising; computer usable program code configured to perform a programmatic analysis to determine required portions of the electronic document prior to parsing to generate an optimized document model, wherein the computer useable program code configured to perform the programmatic analysis comprises; computer useable program code configured to begin at a document root path; computer useable program code configured to proceed into a template matching a root corresponding to the document root path; computer useable program code configured to set a current context as the root; computer useable program code configured to determine portions of the document required to compute an expression, wherein the computer useable program code configured to determine portions of the document required to compute an expression comprises; computer useable program code configured to identify an xs1;
value-of expression as requiring a string-value of a first node in a node set selected by a specified path through the document;computer useable program code configured to identify an xs1;
for-each expression as requiring portions of the document necessary to evaluate a select expression of the xs1;
for-each expression as well as a body of the xs1;
for-each expression;computer useable program code configured to identify an xs1;
choose expression as requiring portions of the document necessary to evaluate any tests, handlers and default clause;computer useable program code configured to identify an xs1;
call—
template expression as requiring portions of the document necessary to evaluate any parameter and to evaluate a body of the called template determined by the xs1;
call-template expression, wherein template body uses are recomputed for each template call in response to multiple calls to a template in the document with different document portions being bound to parameters, and wherein document use of a definition will be recursive in response to the xs1;
call-template being one of recursive and mutually recursive; andcomputer useable program code configured to require a path into a document tree specified by a path expression; computer usable program code configured to generate the optimized document model; and computer usable program code configured to specialize a document processing program against the optimized document model. - View Dependent Claims (14, 15, 16)
-
Specification