 |
Psydex Query Language (PQL) is a language independent syntax for expressing Semantic Topic Models and Ad Hoc queries.
PQL Expressions are made up of words, phrases, symbols and logical operators that define a concept or entity.
In addition to simple word, phrase expressions, the following operators may be combined to produce high precision queries.
PQL expressions can be changed dynamically and are always processed Ad Hoc in real time. Semantic Topic Models are simply saved PQL expressions.
PQL expressions are used as criteria in API Calls to retrieve Content, Statistics, Time Series etc...
| ( ) |
 |
Sets
Phrases separated by commas where the comma denotes disjunction (OR)
|
 |
 |
ex. (Apple Computer, شركة ابل كمبيوتر,苹果电脑, iPhone, iPod, ipad, imac, itablet) |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| + |
 |
Conjunction (AND)
Co-Referenced within 1024 tokens or 10 seconds in a Stream
|
 |
 |
ex. (IBM,آي بي إم,IBM公司, big blue, International Business Machines,آلات التجارية الدولية,国际商业机器) + (acquired,مكتسب,收购, is acquiring, will acquire) |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| {n} |
 |
Unordered Proximity
Tokens are adjacent to each other and within a specified # of tokens apart
|
 |
 |
ex. (IBM,آي بي إم,IBM公司, big blue, ,آلات التجارية الدولية,国际商业机器,International Business Machines) {5} (acquired,مكتسب,收购, is acquiring, will acquire) |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| [n] |
 |
Ordered Proximity
Tokens are adjacent to each other and ordered within a specified # of tokens apart
|
 |
 |
ex. (IBM,آي بي إم,IBM公司, big blue,آلات التجارية الدولية,国际商业机器, International Business Machines) [5] (acquired,مكتسب,收购, is acquiring, will acquire) |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| $ |
 |
Semantic Expansion
Expand topics based on symbol and morph expression to include related terms.
|
 |
 |
ex. ($IBM) {10} ($Acquisition) |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| - |
 |
Negation
Match where include terms are present and excluded are not
|
 |
 |
ex. Iraq - nuclear |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
 |