CMIS QL expressions are more likely to use TMDQ because of the default behaviour to do exact matches. AFTS QL defaults to full text search and uses constructs not supported by the database engine, for example, PATH queries.
The AFTS query text can be used standalone or it can be embedded in CMIS-SQL using the contains() predicate function. The CMIS specification supports a subset of SkyVault FTS. For more information on the SkyVault search syntax, see SkyVault Full Text Search Reference.
The following CMIS QL and AFTS elements support database queries. If you want to use TMDQ,
fewewfef | ewfewfewf | ewfewfef | |
---|---|---|---|
fefewfew | |||
fefefwf | |||
fewfef | |||
wefewfef | |||
fewfewfwef |
CMIS QL
- cmis:documentFor example:
select * from cmis:document
- cmis:folderFor example:
select * from cmis:folder
- SkyVault aspects For example:
select * from cm:dublincore
CMIS property data types
- string
- Supports all properties and comparisons, such as =, <>, <, <=, >=, >, IN, NOT IN, LIKE
- Supports ordering for single-valued properties
For example:select * from cmis:document where cmis:name <> 'fred' order by cmis:name
- integer
- Supports all properties and comparisons, such as =, <>, <, <=, >=, >, IN, NOT IN
- Supports ordering for single-valued properties
- id
- Supports cmis:objectId, cmis:baseTypeId, cmis:objectTypeId, cmis:parentId, =, <>, IN, NOT IN
- Ordering using a property, which is a CMIS identifier, is not supported.
- datetime
- Supports all properties and comparisons =, <>, <, <=, >=, >, IN, NOT IN
- Supports ordering for single-valued properties
For example:select * from cmis:document where cmis:lastModificationDate = '2010-04-01T12:15:00.000Z' order by cmis:creationDate ASC
select * from ext:doc where 'test' = ANY ext:multiValuedStringProperty
Supported predicates
- Comparison predicates, such as =, <>, <, <=, >=, >, <>
- IN predicate
- LIKE predicateNote: Prefixed expressions perform better and should be used where possible.
- NULL predicate
- Quantified comparison predicate (= ANY)
- Quantified IN predicate (ANY .... IN (....) )
- IN_FOLDER predicate function
Unsupported predicates
- TEXT search predicate, such as CONTAINS() and SCORE()
- IN_TREE() predicate
Supported logical operators
- AND
- NOT
Unsupported logical operators
- OR
Other operators
- IS NOT NULL
- IS NULL: Currently, this operator will only find properties that are explicitly NULL as opposed to the property not existing.
- SORT: The multi-valued and mltext properties will sort according to one of the values. Ordering is not localized and relies on the database collation. It currently uses an INNER JOIN, which will also filter NULL values from the result set.
- d:mltext: This data type ignores locale. However, if there is more than one locale, the localised values behave as a multi-valued string. Ordering on mltext will be undefined as it is effectively multi-valued.
- UPPER() and LOWER(): Comparison predicates provide additional support for SQL UPPER() and LOWER() functions (that were dropped from a draft version of SkyVault CMIS specification but are supported for backward compatibility).