Skip to end of metadata
Go to start of metadata

The SemanticQueryResult class represents the result of the evaluation of a given semantic query. Like the SQL queries, the result is a table with few columns and many rows. Each row is packaged in a SemanticQueryResultRow with the following fields:

Values an array of strings that contains the column values for this row.
ReferringDocuments when the query result is produced from the getDocuments or the getDocumentIds method of the QueryAPI, then this property contains an object of the type DocumentQueryResult. In this case the BoundVariables property of the SemanticQuery object contains an array of all bound variables. The SemanticQueryResult object will contain only these rows for which the bound variable entities co-occur in the documents. The ReferingDocuments property will contain the DocumentQueryResult of the co-occurring documents query for each row.
ReferringDocumentsCount when the query result is produced from the getEntities method of the QueryAPI, then this property contains the number of documents referring to the bound variables in the query. When the result is produced from getDocuments or getDocumentIds, then it will contain just the number of rows in the ReferringDocuments property.
Labels:
data_structures data_structures Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.