The graph-query root element

The root element for a query file is graph-query. The graph-query tag must appear immediately after the document type declaration. The query XML file ends with the closing </graph-query> tag.

The graph-query specifies the name of the query in the required name attribute. Queries must include a query-body element, and may optionally include a description and layout information for the Query Editor.

<graph-query>

Attributes 

name required The name of the query

Children 

description zero or one String describing the query
query-body exactly one Specifies the graph pattern to be matched
editor-data zero or one Specifies layout information for the query editor

Content Model 

(description?, query-body)

Example 

<graph-query name="1d-clusters">
  <description>Finds 1d-clusters</description>
  <query-body> see query-body </query-body>
  <editor-data> see editor-data </editor-data>
</graph-query>