|
_.Library.Status | AddSource (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | AddStringToSkiplist (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSkiplistId, _.Library.String pElements) |
|
_.Library.Status | ClearSkiplist (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSkiplistId) |
|
_.Library.Status | CreateDictionary (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pName) |
|
_.Library.Status | CreateDictionaryItems (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pDictionaryId) |
|
_.Library.Status | CreateDictionaryItemsPOST (_.Library.String namespace, _.Library.Integer pDomainId) |
| Simplified version of <method>CreateDictionaryItems</method> for HTTP POST requests. More...
|
|
_.Library.Status | CreateDictionaryTerms (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pDictionaryItemId) |
|
_.Library.Status | CreateSkiplist (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pName) |
|
_.Library.Status | DropDictionary (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pDictionaryId) |
|
_.Library.Status | DropDictionaryItem (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pDictionaryItemId) |
|
_.Library.Status | DropDictionaryTerm (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pDictionaryTermId) |
|
_.Library.Status | DropSkiplist (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSkiplistId) |
|
_.Library.Status | DropSource (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSourceId) |
|
_.Library.Status | GetCRCs (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | GetCRCsByEntity (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pEntity) |
|
_.Library.Status | GetConfigurations (_.Library.String namespace) |
|
_.Library.Status | GetDictionaries (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | GetDictionaryDetails (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pDictionaryId) |
|
_.Library.Status | GetDictionaryItemDetails (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pDictionaryItemId) |
|
_.Library.Status | GetDomainDetails (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | GetDomains (_.Library.String namespace) |
|
_.Library.Status | GetEntities (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | GetEntityDetails (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pEntity) |
|
_.Library.Status | GetMatchesByItem (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pDictionaryItemId) |
|
_.Library.Status | GetMatchesBySource (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSourceId) |
|
_.Library.Status | GetPathsByEntity (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pEntity) |
|
_.Library.Status | GetRelatedEntities (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pEntity) |
|
_.Library.Status | GetSentenceDetails (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSentenceId) |
|
_.Library.Status | GetSentencesByEntity (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pEntity) |
|
_.Library.Status | GetSimilarEntities (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pString) |
|
_.Library.Status | GetSimilarSources (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSourceId) |
|
_.Library.Status | GetSkiplistDetails (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSkiplistId) |
|
_.Library.Status | GetSkiplists (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | GetSourceDetails (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSourceId) |
|
_.Library.Status | GetSources (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | GetSourcesByCRC (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pCRC) |
|
_.Library.Status | GetSourcesByEntity (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.String pEntity) |
|
_.Library.Status | Highlight (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | HighlightSYS (_.Library.String namespace) |
|
_.Library.Status | Index (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | MatchAll (_.Library.String namespace, _.Library.Integer pDomainId) |
|
_.Library.Status | MatchSource (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSourceId) |
|
_.Library.Status | RemoveStringFromSkiplist (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSkiplistId, _.Library.String pElements) |
|
_.Library.Status | SearchIndex (_.Library.String namespace, _.Library.String table) |
|
_.Library.Status | SetMetadata (_.Library.String namespace, _.Library.Integer pDomainId, _.Library.Integer pSourceId) |
|
_.Library.Status | CreateDomainAPI (_.Library.Integer pDomainId, _.Library.String pClassname, _.Library.String pVersion) |
| Use this method.
|
|
_.Library.Status | OnPreDispatch (_.Library.String pUrl, _.Library.String pMethod, _.Library.Boolean pContinue) |
| This method gets called prior to dispatch of the request. More...
|
|
_.Library.Status | ParseFilter (_.Library.Integer pDomainId, _.Library.DynamicObject pObject, _.iKnow.Filters.Filter pFilter) |
| { ids: [ srcID1, srcID2, ...] } --> SourceIdFilter More...
|
|
_.Library.Status | ParseHighlight (pHighlight) |
| { highlight: [ More...
|
|
_.Library.Status | ResolveDomainId (_.Library.RawString pDomainId) |
| If the supplied domain ID is not a valid integer, verify if it happens to be a domain name. More...
|
|
_.Library.Boolean | AcceptsContentType (_.Library.String pType) |
| This method tests the HTTP_ACCEPT header and returns true if. More...
|
|
_.Library.Status | AccessCheck (_.Library.Boolean pAuthorized) |
| This method performs a basic access check. More...
|
|
_.Library.Status | DispatchRequest (_.Library.String url, _.Library.String method, _.Library.Boolean forwarded, args) |
| Dispatch a REST request according to URL and Method. More...
|
|
_.Library.Status | Error (_.Library.Boolean skipheader) |
| Called for a REST page in the event of an error being trapped by CSP server.
|
|
_.Library.String | GetAuthChallenge () |
| This method determines what challenge will be sent with a 401 (Unauthorized) response. More...
|
|
_.Library.Status | Http403 (_.Library.Status pSC) |
| Issue a '403' error (Deprecated, use ..ReportHttpStatusCode)
|
|
_.Library.Status | Http404 (_.Library.Status pSC) |
| Issue a '404' error (Deprecated, use ..ReportHttpStatusCode)
|
|
_.Library.Status | Http405 (_.Library.String pSupportedVerbs) |
| Issue a '405' error ( user can override)
|
|
_.Library.Status | Http500 (_.Exception.AbstractException pE) |
| Issue a '500' error and give some indication as to what occurred.
|
|
_.Library.Status | Login (_.Library.Boolean skipheader) |
| Called for a REST page in the event of a login being required.
|
|
_.Library.Status | Page (_.Library.Boolean skipheader) |
| This method matches the request and method and calls the dispatcher.
|
|
_.Library.Status | ReportHttpStatusCode (pHttpStatus, _.Library.Status pSC) |
| Issue an 'Http' error.
|
|
| SetResponseHeaderIfEmpty (_.Library.String pHeader, _.Library.String pValue) |
| This utility method sets a response header only if it currently does not have a value.
|
|
_.Library.Status | StatusToJSON (_.Library.Status pSC, _.Library.DynamicObject pJSON) |
| Render a Status as JSON.
|
|
_.Library.Status | StatusToProxyObject (_.Library.Status pSC, _.ZEN.proxyObject pJSON) |
| Render a Status as JSON (in the form of an array of objects representing each status value).
|
|
_.Library.Status | SupportedVerbs (pUrl, _.Library.String pVerbs) |
| This generator creates the SupportedVerbs Method used to determine supported verbs to return for the OPTIONS request.
|
|
| DrawCSS3STYLE () |
| Draw the style definitions for the login page. More...
|
|
| DrawHEAD (pTitle) |
| Draw the HEAD section of the login page. More...
|
|
| DrawSTHEAD () |
| Draw the HEAD section of the security token page. More...
|
|
| DrawSTTitle (_.Library.String pTitle) |
| Draw the title section of the security token page. More...
|
|
| DrawSTYLE () |
| Draw the style definitions for the login page. More...
|
|
| DrawTitle (_.Library.String pTitle) |
| Draw the title section of the login page. More...
|
|
| DrawTitleSection (_.Library.String msgs) |
| Draw the title section of the page. More...
|
|
_.Library.Status | OnHandleCorsRequest (_.Library.String url) |
| This is the CORS request handler. More...
|
|
_.Library.Status | OnHandleOptionsRequest (_.Library.String url) |
| This methods provides handling of the options request for this CSP application. More...
|
|
_.Library.Status | OnPage () |
| Output the default login page as HTML.
|
|
_.Library.Boolean | OnPreHTTP () |
| Determine if we need login CSRF tokens and if so add them. More...
|
|
_.Library.Status | ConvertParameter (_.Library.String url, _.Library.String name, _.Library.String value) |
| You pass this the <parameter>url</parameter> of the page you are going to and a. More...
|
|
_.Library.Binary | Decrypt (_.Library.String data) |
| Decrypts the input string using the session.Key value that is unique to. More...
|
|
_.Library.String | Encrypt (_.Library.Binary data) |
| Encrypts the input string using the session.Key value that is unique to this. More...
|
|
_.Library.String | EscapeHTML (in) |
| This method converts input HTML text into Escaped HTML text.
|
|
_.Library.String | EscapeURL (_.Library.String in, _.Library.String charset) |
| This method converts the in input URL string into Escaped URL string. More...
|
|
_.Library.String | HyperEventCall (_.Library.String methodName, _.Library.String args, _.Library.Integer type, _.Library.Boolean mobile) |
| This method returns the string that needs to be written to the current. More...
|
|
_.Library.String | HyperEventHead (_.Library.Boolean iframeOnly, _.Library.Boolean strict, _.Library.Boolean optionalBroker) |
| This method returns the string that needs to be written to the current. More...
|
|
| Include (_.Library.String url) |
| Include another csp page or file in the output at this point. More...
|
|
_.Library.String | InsertHiddenField (_.Library.String url, _.Library.String name, _.Library.String value, _.Library.String extra) |
| Inserts a '<input type="hidden" name="Name" value="Value">' tag into the current document. More...
|
|
_.Library.String | InsertHiddenFields (_.Library.String url, _.Library.String query) |
| Return the string containing the hidden form tags. More...
|
|
_.Library.Boolean | IsPrivate () |
| Returns 1 if this page is in fact a private page (see <parameter>PRIVATE</parameter>).
|
|
_.Library.String | Link (_.Library.String link, _.Library.String query, _.Library.Boolean addQ) |
| Tranforms the link specified by link into a URL and returns it as a string. More...
|
|
_.Library.Status | OnHTTPHeader (_.Library.Boolean OutputBody) |
| Event handler for PAGE event: this is invoked in order to
More...
|
|
| OnPageError (_.Library.Status sc) |
| Event handler for any error that occurs on the page. More...
|
|
| OnPostHTTP () |
| Event handler for POSTPAGE event: this is invoked after the data. More...
|
|
_.Library.Status | OnPostHyperEvent (_.Library.String class, _.Library.String method) |
| Event handler which is invoked after a hyperevent method is called on this page.
|
|
_.Library.Status | OnPreHyperEvent (_.Library.String class, _.Library.String method) |
| Event handler which is invoked before a hyperevent method is called on this page. More...
|
|
_.Library.String | QuoteJS (in) |
| This method converts input string into quoted JavaScript literal.
|
|
_.Library.String | RewriteURL (_.Library.String url) |
| This method will rewrite a URL to use #url()# if needed.
|
|
| ShowError (_.Library.Status sc) |
| Display a <class>Status</class> error code to the CSP Page.
|
|
| StartTimer (_.Library.String name) |
| Used to get performance information on your CSP pages. More...
|
|
| StopTimer (_.Library.String name) |
| Used to time performance information on your CSP pages. More...
|
|
| ThrowError (_.Library.Status sc) |
| Passed a <class>Status</class> code this goes to the error page passing this status code.
|
|
_.Library.String | UnescapeHTML (in) |
| This method converts Escaped HTML text into normal HTML text.
|
|
_.Library.String | UnescapeURL (_.Library.String in, _.Library.String charset) |
| This method converts the in Escaped URL string back to its original form. More...
|
|
The InterSystems IRIS NLP iKnow technology is now deprecated. Please see the product documentation for more detail.
This class offers endpoints for accessing iKnow functionalities over REST.
The API is fully documented using the OpenAPI Specification (also known as Swagger). The description in YAML is available from the "/swagger" endpoint and can be loaded directly into swagger-ui for convenient GUI capabilities on top of this API.
swagger: '2.0'
info: version: "1.1.0" title: iKnow REST APIs description: | The InterSystems IRIS NLP iKnow technology is now deprecated. Please see the [product documentation|https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GIKNOW] for more detail. This is the OpenAPI Specification of the iKnow REST APIs, giving you RESTful access to iKnow domain contents in your system Use swagger-ui or a similar tool to conveniently browse and test these APIs. For more information on iKnow, visit intersystems.com
contact: name: InterSystems url: http://wrc.intersystems.com email: suppo.nosp@m.rt@i.nosp@m.nters.nosp@m.yste.nosp@m.ms.co.nosp@m.m
license: name: Copyright InterSystems Corporation, all rights reserved. url: https://www.intersystems.com/noticesterms-conditions/
consumes:
- application/json produces:
- application/json
parameters: domainParam: name: domain type: integer in: path description: the ID of the domain to query required: true sourceParam: name: source type: integer in: path description: the source ID to query for required: true tableParam: name: table type: string in: path description: the table containing iFind index required: true
definitions: PageNumber: type: integer description: | which "page" of the results to retrieve default: 1
PageSize: type: integer description: | how many results to retrieve per "page" default: {{{PAGESIZE}}}
FilterMode: description: filter mode to use for optionally recalculating certain metrics. Defaults to recalculating all and re-sorting the results (15). type: integer default: 15 example: 15 enum: [1, 3, 5, 7, 11, 13, 15]
IncludeCount: description: whether or not to include a count of all results (ignoring page and pageSize) type: boolean default: 0 format: integer
CountOnly: description: whether or not to retrieve just the count and no result list type: boolean default: 0 format: integer
Skiplists: description: array of skiplist IDs or names to use for limiting query results, OR a valid SELECT clause retrieving entity values outright type: array default: [] items: type: string
Filter:
TODO: move into proper hierarchy once swagger-ui supports it
description: filter object restricting the sources to be considered in this query type: object example: { "operator": "OR", "filters": [ { "ids": [ 123 ] }, {"field": "Year", "operator": ">", "value": 2016 } ] } properties: ids: description: for use with source-ID-based filters type: array items: type: integer extIds: description: for use with external-ID-based filters type: array items: type: string operator: description: for use with group filters ("AND"|"OR") or metadata-based filters (any other value) type: string enum: ["AND", "OR", "=", "!=", "<", ">", ">=", "<=", "BETWEEN", "IS NULL", "IS NOT NULL"] field: description: for use with metadata-based filters type: string value: description: for use with metadata-based filters type: string negate: description: for use with group filters type: boolean default: false filters: description: for use with group filters type: array items: $ref: '#/definitions/Filter' className: description: use for filters not covered by other shorthands type: string example: 'iKnow.Filters.ContainsEntityFilter' arguments: description: for use with 'className' property, any arguments to be passed to the filter's New() method (except domain ID) type: array items: type: string
HighlightingRule: description: | "style" property is mandatory, then pick one selector per rule type: object required: ["style"] properties: style: type: string description: | style specification for this highlighting rule: either a two-character sequence or a HTML tag to use for wrapping the to-be-highlighted element. Use one selector per highlighting rule. entities: type: array items: type: string description: selector - selects list of entities role: type: string enum: ["concept", "relation", "pathRelevant", "nonRelevant" ] description: selector - selects all entities with this role attribute: type: string enum: ["negation", "positiveSentiment", "negativeSentiment" ] description: selector - selects all entities affected by this attribute attributeWords: type: string enum: ["negation", "positiveSentiment", "negativeSentiment" ] description: selector - selects all marker terms indicating this attribute anyMatch: type: boolean description: selector - selects any dictionary match dictionaries: type: array description: selector - selects any dictionary match of the specified dictionary IDs items: type: integer dictionaryItems: type: array description: selector - selects any dictionary match of the specified dictionary item IDs items: type: integer matchType: type: string enum: ["full", "partial"] description: | refines the "anyMatch", "dictionaries" or "dictionaryItems" selectors to the designated match type
Highlighting: description: array of highlighting rules example: [ { "style": "[]", "role": "concept" }, { "style": "<b>", "entities": [ "airplane", "pilot" ] } ] type: array items: $ref: '#/definitions/HighlightingRule'
DomainList: type: object required: ["domains"] properties: domains: type: array items: title: Domain type: object required: ["id", "name" ] properties: id: type: integer name: type: string definitionClass: type: string sourceCount: type: integer version: type: integer
DomainDetails: type: object required: ["id", "name"] properties: id: type: integer name: type: string parameters: type: object metadata: type: array items: type: object required: ["id", "name", "operators", "dataType", "storage"] properties: id: type: integer name: type: string operators: type: array items: $ref: '#/definitions/MetadataOperator' dataType: type: string enum: ["string", "number", "date"] storage: type: string
MetadataOperator: type: string enum: [ "=", "!=", "<", ">", ">=", "<=", "BETWEEN", "IS NULL", "IS NOT NULL" ]
ConfigurationList: type: object required: ["configurations"] properties: configurations: type: array items: title: Configuration type: object required: ["id", "name", "languages"] properties: id: type: integer name: type: string languages: type: array items: $ref: '#/definitions/LanguageCode' userDictionary: $ref: '#/definitions/UserDictionary' maxConceptLength: type: integer
UserDictionary: type: object required: ["entries"] properties: name: type: string entries: type: array items: title: UserDictionaryEntry type: object required: ["string"] properties: string: type: string rewrite: type: string label: type: string metadata: type: string
LanguageCode: description: 2-letter ISO language code type: string enum: [ "en", "fr", "de", "es", "pt", "nl", "ru", "uk", "se", "ja" ]
SourceList: description: list of sources type: object required: ["sources"] properties: sources: type: array items: title: Source type: object required:
- id
- extId properties: id: type: integer description: source ID extId: type: string description: external ID metadata: type: object description: map of metadata field values snippet: type: string description: snippet (summary) of the retrieved source count: description: number of result sources (ignoring page and pageSize) type: integer
EntityList: description: list of entities type: object properties: entities: type: array items: $ref: '#/definitions/Entity' count: type: integer description: number of result entities (ignoring page and pageSize)
Entity: type: object required:
- id
- value properties: id: type: integer description: unique entity ID value: type: string description: entity value frequency: type: integer description: number of times the entity occurs in the result set spread: type: integer description: number of distinct sources the entity occurs in in the result set
CRCList: type: object required:
- crcs properties: crcs: type: array items: title: CRC type: object required:
- id
- relation
- frequency
- spread properties: id: type: integer description: unique entity ID head: type: string description: entity value of the head concept relation: type: string description: entity value of the relation tail: type: string
description: entity value of the tail concept frequency: type: integer description: number of times the CRC occurs in the result set spread: type: integer description: number of distinct sources the CRC occurs in in the result set count: type: integer description: number of result CRCs (ignoring page and pageSize)
CRC: type: object required:
- relation properties: head: type: string description: entity value of the head concept relation: type: string description: entity value of the relation tail: type: string
description: entity value of the tail concept
SkiplistList: type: object required: ["skiplists"] properties: skiplists: type: array items: $ref: '#/definitions/SkiplistDetails'
SkiplistDetails: type: object required: ["id", "name"] properties: id: type: integer name: type: string description: type: string elements: type: array items: type: string
DictionaryList: type: object required: ["dictionaries"] properties: dictionaries: type: array items: $ref: '#/definitions/DictionaryDetails' count: type: integer description: total number of dictionaries (ignoring page and pageSize)
DictionaryDetails: type: object required: ["id", "name"] properties: id: type: integer name: type: string language: $ref: '#/definitions/LanguageCode' description: type: string items: type: array items: $ref: '#/definitions/DictionaryItemDetails'
DictionaryItemDetails: type: object required: ["id", "name", "uri"] properties: id: type: integer name: description: display label type: string uri: description: unique, domain-wide identifier for this Dictionary Item type: string language: $ref: '#/definitions/LanguageCode' terms: type: array items: $ref: '#/definitions/DictionaryTermDetails'
DictionaryTermDetails: type: object required: ["id"] example: { id: 123, string: "palm tree" } properties: id: type: integer language: $ref: '#/definitions/LanguageCode' string: description: if this is a regular term, the term string value type: string regexp: description: if this is a regular expression format term, the regular expression type: string replace: description: if this is a regular expression format term, the replacement string type: string formatClass: description: if this is a format term, the name of the format implementation class type: string formatParams: description: if this is a format term, any additional parameters for the format implementation class type: array items: type: string
MatchList: type: object required: ["matches"] properties: matches: type: array items: $ref: '#/definitions/MatchListItem'
MatchListItem: type: object required: [ "id", "score" ] properties: id: type: integer score: type: number description: aggregated score for this match partialCount: type: integer description: number of partially matched entities for this match ordered: type: boolean format: integer description: whether or not the matched entities appear in the term's order negatedCount: type: integer description: number of entities term: type: object title: MatchedTerm required: ["id","item"] properties: id: type: integer string: type: string item: title: MatchedItem type: object required: ["id", "uri", "name", "dictionary" ] properties: id: type: integer name: type: string uri: type: string dictionary: title: MatchedDictionary type: object required: ["id", "name"] properties: id: type: integer name: type: string target: title: MatchTarget type: object description: the matched piece of the source text properties: id: type: integer type: type: string enum: ["entity", "crc", "path", "sentence"] sentenceId: type: integer sentence: type: string description: full text of the sentence where the match occurred elements: type: array description: detailed overview of entity-level match results items: type: object title: MatchedElements required: ["partId", "literal", "score", "role", "matchedWords", "negated"] properties: partId: type: integer description: entity occurrence / part ID of the matched sentence part literal: type: string description: literal string how this part appeared in the sentence score: type: number description: entity-level score role: type: string enum: ["concept", "relation", "pathRelevant" ] description: role of this sentence part matchedWords: type: string description: which words within the entity actually matched negated: type: boolean format: integer description: whether this sentence part is part of a negative context entityId: type: integer description: entity ID, if this part corresponds to an entity entity: type: string description: entity value, if this part corresponds to an entity output: type: string description: format output, if this part corresponds to a matched format providing output
SentenceDetails: type: object required:
- id
- sourceId
- text properties: id: description: sentence ID type: integer sourceId: description: containing source ID type: integer text: description: sentence text, optionally highlighted type: string parts: description: entities in this sentence type: array items: title: SentencePart type: object required:
- partId
- literal
- role properties: partId: description: entity / part occurrence ID type: integer literal: description: literal value of this part in the sentence type: string role: description: role of this entity in the path type: string enum: ["concept", "relation", "pathRelevant"] entityId: description: unique entity ID, if this is not a non-relevant type: integer entity: description: entity value, if this is not a non-relevant type: string stemId: description: stem ID for this entity, if the domain is configured for stemming type: string stem: description: stem value of this entity, if the domain is configured for stemming type: string attributes: description: semantic attributes for this entity type: array items: title: AttributeInfo type: object required: ["type", "level"] properties: type: description: name of the attribute type: string level: description: level at which the attribute applies type: string enum: ["path", "word"] words: description: if level="word", the actual words affected type: string properties: description: attribute properties type: object
HighlightSpec:
TODO: move into proper hierarchy once swagger-ui supports it
description: The parameters needed for iFind.Utils.Highlight type: object example: { "tag": "<b>", "limit":0, "name": "Highlighted"} properties: tag: description: the tags used to enclose the highlighted segments type: string default: "<b>" limit: description: limit the segments get highlighted,check iFind.Utils.Highlight() for details type: integer default: 0 name: description: the alias name for the column containing highlighted text type: string default: "Highlighted" RankSpec:
TODO: move into proper hierarchy once swagger-ui supports it
description: The parameters needed for iFind.Utils.Rank type: object example: { "name":"Rank" } properties: name: description: the alias name for the column containing rank info type: string default: "Rank" OptionSpec: description: The option could be object which includes all the required parameters. However, you could still use "0","1","2","3","4" these simple strings for option for the legacy support type: object properties: mode: type: string enum: ["0","1","2","3","4","*","normal","stemmed","decompounded","fuzzy","regex"] description: the iFind search options. 0/normal search,1/stemmed search,2/decompunded search,3/fuzzy search,4/regex search, "*" indicates use the index setting stemmer: type: string description: the stemming/decompounding class arguments: type: array description: the arguments needed for initialize a stemming/decompounding class items: type: string distance: type: string description: the fuzzy search threshold.
The InterSystems IRIS NLP iKnow technology is now deprecated. Please see the product documentation for more detail.
This class offers endpoints for accessing iKnow functionalities over REST.
The API is fully documented using the OpenAPI Specification (also known as Swagger). The description in YAML is available from the "/swagger" endpoint and can be loaded directly into swagger-ui for convenient GUI capabilities on top of this API.
swagger: '2.0'
info: version: "1.1.0" title: iKnow REST APIs description: | The InterSystems IRIS NLP iKnow technology is now deprecated. Please see the [product documentation|https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GIKNOW] for more detail. This is the OpenAPI Specification of the iKnow REST APIs, giving you RESTful access to iKnow domain contents in your system Use swagger-ui or a similar tool to conveniently browse and test these APIs. For more information on iKnow, visit intersystems.com
contact: name: InterSystems url: http://wrc.intersystems.com email: suppo.nosp@m.rt@i.nosp@m.nters.nosp@m.yste.nosp@m.ms.co.nosp@m.m
license: name: Copyright InterSystems Corporation, all rights reserved. url: https://www.intersystems.com/noticesterms-conditions/
consumes:
- application/json produces:
- application/json
parameters: domainParam: name: domain type: integer in: path description: the ID of the domain to query required: true sourceParam: name: source type: integer in: path description: the source ID to query for required: true tableParam: name: table type: string in: path description: the table containing iFind index required: true
definitions: PageNumber: type: integer description: | which "page" of the results to retrieve default: 1
PageSize: type: integer description: | how many results to retrieve per "page" default: {{{PAGESIZE}}}
FilterMode: description: filter mode to use for optionally recalculating certain metrics. Defaults to recalculating all and re-sorting the results (15). type: integer default: 15 example: 15 enum: [1, 3, 5, 7, 11, 13, 15]
IncludeCount: description: whether or not to include a count of all results (ignoring page and pageSize) type: boolean default: 0 format: integer
CountOnly: description: whether or not to retrieve just the count and no result list type: boolean default: 0 format: integer
Skiplists: description: array of skiplist IDs or names to use for limiting query results, OR a valid SELECT clause retrieving entity values outright type: array default: [] items: type: string
Filter:
TODO: move into proper hierarchy once swagger-ui supports it
description: filter object restricting the sources to be considered in this query type: object example: { "operator": "OR", "filters": [ { "ids": [ 123 ] }, {"field": "Year", "operator": ">", "value": 2016 } ] } properties: ids: description: for use with source-ID-based filters type: array items: type: integer extIds: description: for use with external-ID-based filters type: array items: type: string operator: description: for use with group filters ("AND"|"OR") or metadata-based filters (any other value) type: string enum: ["AND", "OR", "=", "!=", "<", ">", ">=", "<=", "BETWEEN", "IS NULL", "IS NOT NULL"] field: description: for use with metadata-based filters type: string value: description: for use with metadata-based filters type: string negate: description: for use with group filters type: boolean default: false filters: description: for use with group filters type: array items: $ref: '#/definitions/Filter' className: description: use for filters not covered by other shorthands type: string example: 'iKnow.Filters.ContainsEntityFilter' arguments: description: for use with 'className' property, any arguments to be passed to the filter's New() method (except domain ID) type: array items: type: string
HighlightingRule: description: | "style" property is mandatory, then pick one selector per rule type: object required: ["style"] properties: style: type: string description: | style specification for this highlighting rule: either a two-character sequence or a HTML tag to use for wrapping the to-be-highlighted element. Use one selector per highlighting rule. entities: type: array items: type: string description: selector - selects list of entities role: type: string enum: ["concept", "relation", "pathRelevant", "nonRelevant" ] description: selector - selects all entities with this role attribute: type: string enum: ["negation", "positiveSentiment", "negativeSentiment" ] description: selector - selects all entities affected by this attribute attributeWords: type: string enum: ["negation", "positiveSentiment", "negativeSentiment" ] description: selector - selects all marker terms indicating this attribute anyMatch: type: boolean description: selector - selects any dictionary match dictionaries: type: array description: selector - selects any dictionary match of the specified dictionary IDs items: type: integer dictionaryItems: type: array description: selector - selects any dictionary match of the specified dictionary item IDs items: type: integer matchType: type: string enum: ["full", "partial"] description: | refines the "anyMatch", "dictionaries" or "dictionaryItems" selectors to the designated match type
Highlighting: description: array of highlighting rules example: [ { "style": "[]", "role": "concept" }, { "style": "<b>", "entities": [ "airplane", "pilot" ] } ] type: array items: $ref: '#/definitions/HighlightingRule'
DomainList: type: object required: ["domains"] properties: domains: type: array items: title: Domain type: object required: ["id", "name" ] properties: id: type: integer name: type: string definitionClass: type: string sourceCount: type: integer version: type: integer
DomainDetails: type: object required: ["id", "name"] properties: id: type: integer name: type: string parameters: type: object metadata: type: array items: type: object required: ["id", "name", "operators", "dataType", "storage"] properties: id: type: integer name: type: string operators: type: array items: $ref: '#/definitions/MetadataOperator' dataType: type: string enum: ["string", "number", "date"] storage: type: string
MetadataOperator: type: string enum: [ "=", "!=", "<", ">", ">=", "<=", "BETWEEN", "IS NULL", "IS NOT NULL" ]
ConfigurationList: type: object required: ["configurations"] properties: configurations: type: array items: title: Configuration type: object required: ["id", "name", "languages"] properties: id: type: integer name: type: string languages: type: array items: $ref: '#/definitions/LanguageCode' userDictionary: $ref: '#/definitions/UserDictionary' maxConceptLength: type: integer
UserDictionary: type: object required: ["entries"] properties: name: type: string entries: type: array items: title: UserDictionaryEntry type: object required: ["string"] properties: string: type: string rewrite: type: string label: type: string metadata: type: string
LanguageCode: description: 2-letter ISO language code type: string enum: [ "en", "fr", "de", "es", "pt", "nl", "ru", "uk", "se", "ja" ]
SourceList: description: list of sources type: object required: ["sources"] properties: sources: type: array items: title: Source type: object required:
- id
- extId properties: id: type: integer description: source ID extId: type: string description: external ID metadata: type: object description: map of metadata field values snippet: type: string description: snippet (summary) of the retrieved source count: description: number of result sources (ignoring page and pageSize) type: integer
EntityList: description: list of entities type: object properties: entities: type: array items: $ref: '#/definitions/Entity' count: type: integer description: number of result entities (ignoring page and pageSize)
Entity: type: object required:
- id
- value properties: id: type: integer description: unique entity ID value: type: string description: entity value frequency: type: integer description: number of times the entity occurs in the result set spread: type: integer description: number of distinct sources the entity occurs in in the result set
CRCList: type: object required:
- crcs properties: crcs: type: array items: title: CRC type: object required:
- id
- relation
- frequency
- spread properties: id: type: integer description: unique entity ID head: type: string description: entity value of the head concept relation: type: string description: entity value of the relation tail: type: string
description: entity value of the tail concept frequency: type: integer description: number of times the CRC occurs in the result set spread: type: integer description: number of distinct sources the CRC occurs in in the result set count: type: integer description: number of result CRCs (ignoring page and pageSize)
CRC: type: object required:
- relation properties: head: type: string description: entity value of the head concept relation: type: string description: entity value of the relation tail: type: string
description: entity value of the tail concept
SkiplistList: type: object required: ["skiplists"] properties: skiplists: type: array items: $ref: '#/definitions/SkiplistDetails'
SkiplistDetails: type: object required: ["id", "name"] properties: id: type: integer name: type: string description: type: string elements: type: array items: type: string
DictionaryList: type: object required: ["dictionaries"] properties: dictionaries: type: array items: $ref: '#/definitions/DictionaryDetails' count: type: integer description: total number of dictionaries (ignoring page and pageSize)
DictionaryDetails: type: object required: ["id", "name"] properties: id: type: integer name: type: string language: $ref: '#/definitions/LanguageCode' description: type: string items: type: array items: $ref: '#/definitions/DictionaryItemDetails'
DictionaryItemDetails: type: object required: ["id", "name", "uri"] properties: id: type: integer name: description: display label type: string uri: description: unique, domain-wide identifier for this Dictionary Item type: string language: $ref: '#/definitions/LanguageCode' terms: type: array items: $ref: '#/definitions/DictionaryTermDetails'
DictionaryTermDetails: type: object required: ["id"] example: { id: 123, string: "palm tree" } properties: id: type: integer language: $ref: '#/definitions/LanguageCode' string: description: if this is a regular term, the term string value type: string regexp: description: if this is a regular expression format term, the regular expression type: string replace: description: if this is a regular expression format term, the replacement string type: string formatClass: description: if this is a format term, the name of the format implementation class type: string formatParams: description: if this is a format term, any additional parameters for the format implementation class type: array items: type: string
MatchList: type: object required: ["matches"] properties: matches: type: array items: $ref: '#/definitions/MatchListItem'
MatchListItem: type: object required: [ "id", "score" ] properties: id: type: integer score: type: number description: aggregated score for this match partialCount: type: integer description: number of partially matched entities for this match ordered: type: boolean format: integer description: whether or not the matched entities appear in the term's order negatedCount: type: integer description: number of entities term: type: object title: MatchedTerm required: ["id","item"] properties: id: type: integer string: type: string item: title: MatchedItem type: object required: ["id", "uri", "name", "dictionary" ] properties: id: type: integer name: type: string uri: type: string dictionary: title: MatchedDictionary type: object required: ["id", "name"] properties: id: type: integer name: type: string target: title: MatchTarget type: object description: the matched piece of the source text properties: id: type: integer type: type: string enum: ["entity", "crc", "path", "sentence"] sentenceId: type: integer sentence: type: string description: full text of the sentence where the match occurred elements: type: array description: detailed overview of entity-level match results items: type: object title: MatchedElements required: ["partId", "literal", "score", "role", "matchedWords", "negated"] properties: partId: type: integer description: entity occurrence / part ID of the matched sentence part literal: type: string description: literal string how this part appeared in the sentence score: type: number description: entity-level score role: type: string enum: ["concept", "relation", "pathRelevant" ] description: role of this sentence part matchedWords: type: string description: which words within the entity actually matched negated: type: boolean format: integer description: whether this sentence part is part of a negative context entityId: type: integer description: entity ID, if this part corresponds to an entity entity: type: string description: entity value, if this part corresponds to an entity output: type: string description: format output, if this part corresponds to a matched format providing output
SentenceDetails: type: object required:
- id
- sourceId
- text properties: id: description: sentence ID type: integer sourceId: description: containing source ID type: integer text: description: sentence text, optionally highlighted type: string parts: description: entities in this sentence type: array items: title: SentencePart type: object required:
- partId
- literal
- role properties: partId: description: entity / part occurrence ID type: integer literal: description: literal value of this part in the sentence type: string role: description: role of this entity in the path type: string enum: ["concept", "relation", "pathRelevant"] entityId: description: unique entity ID, if this is not a non-relevant type: integer entity: description: entity value, if this is not a non-relevant type: string stemId: description: stem ID for this entity, if the domain is configured for stemming type: string stem: description: stem value of this entity, if the domain is configured for stemming type: string attributes: description: semantic attributes for this entity type: array items: title: AttributeInfo type: object required: ["type", "level"] properties: type: description: name of the attribute type: string level: description: level at which the attribute applies type: string enum: ["path", "word"] words: description: if level="word", the actual words affected type: string properties: description: attribute properties type: object
HighlightSpec:
TODO: move into proper hierarchy once swagger-ui supports it
description: The parameters needed for iFind.Utils.Highlight type: object example: { "tag": "<b>", "limit":0, "name": "Highlighted"} properties: tag: description: the tags used to enclose the highlighted segments type: string default: "<b>" limit: description: limit the segments get highlighted,check iFind.Utils.Highlight() for details type: integer default: 0 name: description: the alias name for the column containing highlighted text type: string default: "Highlighted" RankSpec:
TODO: move into proper hierarchy once swagger-ui supports it
description: The parameters needed for iFind.Utils.Rank type: object example: { "name":"Rank" } properties: name: description: the alias name for the column containing rank info type: string default: "Rank" OptionSpec: description: The option could be object which includes all the required parameters. However, you could still use "0","1","2","3","4" these simple strings for option for the legacy support type: object properties: mode: type: string enum: ["0","1","2","3","4","*","normal","stemmed","decompounded","fuzzy","regex"] description: the iFind search options. 0/normal search,1/stemmed search,2/decompunded search,3/fuzzy search,4/regex search, "*" indicates use the index setting stemmer: type: string description: the stemming/decompounding class arguments: type: array description: the arguments needed for initialize a stemming/decompounding class items: type: string distance: type: string description: the fuzzy search threshold.