Magictree
De Linuxmemo.
|  (→XPath Crash Course (query language)) | |||
| Ligne 14 : | Ligne 14 : | ||
| *refs | *refs | ||
| http://www.w3.org/TR/xpath | http://www.w3.org/TR/xpath | ||
| + | |||
| + | ==Definition== | ||
| + | '''A query''' is what you enter in Table View to extract data from the tree in a table form. A query consists of one or more triples, each consisting of field name, expression and flags. For example, the following is a query that lists all open ports and hosts: | ||
| + | |||
| + | [ | ||
| + | ["host", "//host", ""]. | ||
| + | ["port", "ipproto/port[state="open']", "leaf"] | ||
| + | ] | ||
| + | |||
| + | '''A method''' is an executable command with the information necessary to execute it. A method contains the command itself, the input mode ("None", "Environment" or "TabSep" - see Commands Execution - Input), and the query that is used to extract the data from the tree and feed it to the command. | ||
| + | |||
| + | '''A repository''' is a location where queries and methods may be stored. | ||
Version du 7 avril 2013 à 16:31
http://www.gremwell.com/what_is_magictree
http://www.gremwell.com/magictreedoc
XPath Crash Course (query language)
- language
http://www.gremwell.com/magictreedoc/2ac07abf.html
- fonctions
http://www.gremwell.com/magictreedoc/be27bc9e.html
- refs
Definition
A query is what you enter in Table View to extract data from the tree in a table form. A query consists of one or more triples, each consisting of field name, expression and flags. For example, the following is a query that lists all open ports and hosts:
[ ["host", "//host", ""]. ["port", "ipproto/port[state="open']", "leaf"] ]
A method is an executable command with the information necessary to execute it. A method contains the command itself, the input mode ("None", "Environment" or "TabSep" - see Commands Execution - Input), and the query that is used to extract the data from the tree and feed it to the command.
A repository is a location where queries and methods may be stored.
