dation.grammar.1.0.0-M12+01.source-code.commands.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 2015-2018 "Neo Technology," Network Engine for Objects in Lund AB [http://neotechnology.com] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Attribution Notice under the terms of the Apache License 2.0 This work was created by the collective efforts of the openCypher community. Without limiting the terms of Section 6, any Derivative Work that is not approved by the public consensus process of the openCypher Implementers Group should not be described as “Cypher” (and Cypher® is a registered trademark of Neo4j Inc.) or as "openCypher". Extensions by implementers or prototypes or proposals for change that have been documented or implemented should only be described as "implementation extensions to Cypher" or as "proposed changes to Cypher that are not yet approved by the openCypher community". --> <!DOCTYPE grammar [ <!ENTITY WS "<opt><non-terminal ref='SP'/></opt>"> <!ENTITY SP "<non-terminal ref='SP'/>"> <!ENTITY var "<non-terminal ref='Variable'/>"> <!ENTITY node "(&WS;)"> <!ENTITY dash "<non-terminal ref='Dash' rr:title='-'/>"> <!ENTITY larrow "<non-terminal ref='LeftArrowHead' rr:title='<'/>‐"> <!ENTITY rarrow "‐<non-terminal ref='RightArrowHead' rr:title='>'/>"> <!ENTITY label "<non-terminal ref='NodeLabel'/>"> <!ENTITY type "<non-terminal ref='RelType'/>"> ]> <grammar language="Command" xmlns="http://opencypher.org/grammar" xmlns:rr="http://opencypher.org/railroad" xmlns:oc="http://opencypher.org/opencypher"> <production name="Command" rr:inline="true" oc:legacy="true"> <alt> <non-terminal ref="CreateIndex"/> <non-terminal ref="DropIndex"/> <non-terminal ref="CreateUniqueConstraint"/> <non-terminal ref="DropUniqueConstraint"/> <non-terminal ref="CreateNodePropertyExistenceConstraint"/> <non-terminal ref="DropNodePropertyExistenceConstraint"/> <non-terminal ref="CreateRelationshipPropertyExistenceConstraint"/> <non-terminal ref="DropRelationshipPropertyExistenceConstraint"/> </alt> </production> <!-- / COMMANDS \ --> <production name="CreateUniqueConstraint" rr:inline="true" oc:legacy="true"> CREATE &SP; <non-terminal ref="UniqueConstraint"/> </production> <production name="CreateNodePropertyExistenceConstraint" rr:inline="true" oc:legacy="true"> CREATE &SP; <non-terminal ref="NodePropertyExistenceConstraint"/> </production> <production name="CreateRelationshipPropertyExistenceConstraint" rr:inline="true" oc:legacy="true"> CREATE &SP; <non-terminal ref="RelationshipPropertyExistenceConstraint"/> </production> <production name="CreateIndex" rr:inline="true" oc:legacy="true"> CREATE &SP; <non-terminal ref="Index"/> </production> <production name="DropUniqueConstraint" rr:inline="true" oc:legacy="true"> DROP &SP; <non-terminal ref="UniqueConstraint"/> </production> <production name="DropNodePropertyExistenceConstraint" rr:inline="true" oc:legacy="true"> DROP &SP; <non-terminal ref="NodePropertyExistenceConstraint"/> </production> <production name="DropRelationshipPropertyExistenceConstraint" rr:inline="true" oc:legacy="true"> DROP &SP; <non-terminal ref="RelationshipPropertyExistenceConstraint"/> </production> <production name="DropIndex" rr:inline="true" oc:legacy="true"> DROP &SP; <non-terminal ref="Index"/> </production> <production name="Index" oc:legacy="true"> INDEX &SP; ON &WS; &label; (<non-terminal ref="PropertyKeyName"/>) </production> <production name="UniqueConstraint" oc:legacy="true"> CONSTRAINT &SP; ON &WS; ( &var; &label; ) &WS; ASSERT &SP; <non-terminal ref="PropertyExpression"/> &SP; IS &SP; UNIQUE </production> <production name="NodePropertyExistenceConstraint" oc:legacy="true"> CONSTRAINT &SP; ON &WS; ( &var; &label; ) &WS; ASSERT &SP; EXISTS &WS; ( <non-terminal ref="PropertyExpression"/> ) </production> <production name="RelationshipPropertyExistenceConstraint" oc:legacy="true"> CONSTRAINT &SP; ON &WS; <non-terminal ref="RelationshipPatternSyntax"/> &WS; ASSERT &SP; EXISTS &WS; ( <non-terminal ref="PropertyExpression"/> ) </production> <production name="RelationshipPatternSyntax" oc:legacy="true"> <alt> <seq>&node;‐[&var;&type;]‐&node;</seq> <seq>&node;‐[&var;&type;]&rarrow;&node;</seq> <seq>&node;&larrow;[&var;&type;]‐&node;</seq> </alt> </production> <!-- \ COMMANDS / --> <vocabulary file="basic-grammar.xml"/> </grammar>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy