From 972f9e0cb497dc0c03d953897fb1d93af075c4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org> Date: Mon, 14 Dec 2020 17:04:31 +0100 Subject: [PATCH] DOC: heading level --- src/doc/CaosDB-Query-Language.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/doc/CaosDB-Query-Language.md b/src/doc/CaosDB-Query-Language.md index a700736f..47a890d7 100644 --- a/src/doc/CaosDB-Query-Language.md +++ b/src/doc/CaosDB-Query-Language.md @@ -1,9 +1,9 @@ -**Table of Contents** -[[_TOC_]] +# CaosDB Query Language +**WIP This is going to be the specification. CQL tutorials are in the webui** -# Example queries +## Example queries -## Simple FIND Query +### Simple FIND Query The following query will return any entity which has the name _ename_ and all its children. `FIND ename` @@ -24,11 +24,11 @@ Regular expressions must be surrounded by _<<_ and '>>': `FIND RECORD <<[cC]am_[0-9]*>>` *TODO* (Timm): -Describe escape sequences like `\\`, `\*`, `\<<` and `\>>`. +Describe escape sequences like `\\ `, `\*`, `\<<` and `\>>`. Currently, wildcards and regular expressions are only available for the _simple-find-part_ of the query, i. e. no wildcards/regexps for filters. -## Simple COUNT Query +### Simple COUNT Query This query counts entities which have certain properties. @@ -370,7 +370,7 @@ Since Caosdb 0.2 entities are optionally version controlled. The query language * Add `(ANY|LATEST|LAST|OLDEST|NEWEST|FIRST) VERSION (BEFORE|AFTER) (<timestamp>|<transaction id>|<entity@version>) OF` modifier. * Add support for subproperties, e.g. `FIND ANY VERSION OF ENTITY WHICH IS REFERENCED BY ename WITH ...`. -# Future +## Future * *Sub Queries* (or *Sub Properties*): `FIND ename WHICH HAS A pname WHICH HAS A subpname=val`. This is like: `FIND AN experiment WHICH HAS A camera WHICH HAS A 'serial number'= 1234567890` * *More Logic*, especially `ANY`, `ALL`, `NONE`, and `SUCH THAT` key words (and equivalents) for logical quantisation: `FIND ename1 SUCH THAT ALL ename2 WHICH HAVE A REFERENCE TO ename1 HAVE A pname=val`. This is like `FIND experiment SUCH THAT ALL person WHICH ARE REFERENCED BY THIS experiment AS conductor HAVE AN 'academic title'=professor.` -- GitLab