| $schema | "http://json-schema.org/draft-07/schema#" |
|---|
| $id | "https://wikisphere.org/wiki/JsonSchema:SemanticQuery" |
|---|
| type | "object" |
|---|
| x-layout | "paged" |
|---|
| properties | | conditions | | type | "array" |
|---|
| description | "One or more condition groups" |
|---|
| items | | $ref | "#/definitions/conditionGroup" |
|---|
|
|---|
|
|---|
|
|---|
| definitions | | conditionGroup | | type | "object" |
|---|
| description | "Multiple conditions inside are joined with || (OR)." |
|---|
| properties | | operator | | type | "string" |
|---|
| description | "Logical operator joining the conditions inside the group." |
|---|
| enum | |
|---|
| x-enum-titles | |
|---|
| default | "OR" |
|---|
|
|---|
| conditions | | type | "array" |
|---|
| minItems | 1 |
|---|
| items | | $ref | "#/definitions/condition" |
|---|
|
|---|
|
|---|
|
|---|
| required | |
|---|
|
|---|
| condition | | type | "object" |
|---|
| description | "A single property::value condition, e.g. new_property::+ or ~*ab*" |
|---|
| properties | | property | | type | "string" |
|---|
| description | "Property name. Omit to search all properties (e.g. ~*ab*)." |
|---|
| minLength | 1 |
|---|
|
|---|
| comparator | | type | "string" |
|---|
| description | "Comparison operator." |
|---|
| enum | | "=" |
| "!" |
| "!=" |
| "~" |
| "!~" |
| ">" |
| ">=" |
| "<" |
| "<=" |
| "~*" |
| "!~*" |
|
|---|
| x-enum-titles | | "equals" |
| "not" |
| "not equal" |
| "like" |
| "not like" |
| "greater than" |
| "greater than or equal" |
| "less than" |
| "less than or equal" |
| "like (wildcard)" |
| "not like (wildcard)" |
|
|---|
| default | "=" |
|---|
|
|---|
| value | | description | "Value to compare against. Use '+' to mean 'has any value'." |
|---|
| oneOf | | const | "+" |
|---|
| title | "any" |
|---|
| description | "Matches any value (property exists)." |
|---|
|
| type | "string" |
|---|
| title | "freetext" |
|---|
| description | "Free-text value to compare against. Can be wikitext" |
|---|
|
|
|---|
|
|---|
|
|---|
| required | |
|---|
|
|---|
|
|---|