Condition

From Wikisphere
Jump to navigation Jump to search
$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
"OR"
"AND"
x-enum-titles
"OR"
"AND"
default"OR"
conditions
type"array"
minItems1
items
$ref"#/definitions/condition"
required
"conditions"
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*)."
minLength1
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
"comparator"