- PoolParty Semantic Suite Documentation
- Developer Guide
- Semantic Integrator APIs
- Recommender API Schemata
- Recommender API Schema - ExtractResponseBody
Recommender API Schema - ExtractResponseBody
Schemata for the Recommender API Calls
The response from the extract endpoint containing all concepts found on the basis of the input text and parameters.
message*[...] extractedConcepts[...] [ScoredConcept] [MatchingLabelModel] [MatchedText] [TokenPosition] shadowConcepts[...] [ShadowConcept] [ShadowTerm]
Note
An asterisk (*) next to a parameter indicates a mandatory parameter.
The response from the extract endpoint containing all concepts found on the basis of the input text and parameters.
Parameter | Type | Description | Details |
---|---|---|---|
| string | Short descriptive message with the results of the extraction. | response codes: 200 for successful response, 400 for bad request, 5XX - for an unexpected internal error. |
| array/list | List of concepts extracted from the input text. | Contains |
| array/list | List of shadow concepts matching the input text. | Contains |
A scored concept; used for instance in the extractedConcepts
parameter.
Parameter | Type | Description | Details |
---|---|---|---|
| string | URI of the concept. | example: http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#Merlot |
| string | Preferred label of the concept. | example: Merlot |
| integer | Number of occurrences in the input text. | example: 43 |
| number | Extraction score. | maximum: 100
minimum: 0
example: 55.3 |
| number | Corpus score; only available with corpus scoring enabled. | maximum: 100
minimum: 0
example: 18 |
| list of MatchingLabel objects | Matching information for the label of this concept related to the input text. | contains |
Matching information related to the labels of this concept in relation to the input text.
Parameter | Type | Description | Details |
---|---|---|---|
| string | Found label. | example: Merlot |
| string | Predicate name of the given label. | example: prefLabel |
| string | Language of the label. |
example: en |
| integer | Number of occurrences of the label in a given text. | example: 3 |
| list of MatchedText objects | Text fragments matching the label and its position. | contains |
Text fragments matching the label along with their position.
Parameter | Type | Description | Details |
---|---|---|---|
| string | Text which was matched. | example: fox |
| integer | Frequency how often the particular text fragment was matched in the text. | example: 3 |
| list of TokenPosition objects | All positions where this fragment of text was matched in the input text. | contains |
All positions where the particular fragment of text was matched in the input text.
Parameter | Type | Description | Details |
---|---|---|---|
| integer | Begin index of the particular match. | example: 15 |
| integer | End index of the particular match. | example: 18 |
shadowConcepts
is a list of shadow concepts matching the input text. The table below lists the individual parameters of a ShadowConcept
where a ShadowConcept
is defined as a concept not explicitly defined in the input which is however often associated with the input topics when compared to the corpus.
Parameter | Type | Description | Details |
---|---|---|---|
| string | URI of the concept. | example: http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#Merlot |
| string | Preferred label of the concept. | example: Merlot |
| number | Shadow concept score. | maximum: 100
minimum: 0
example: 0.4 |
| list of ShadowTerm objects | Terms extracted from the input text contributing to the calculation of the shadow concept. | contains |
A term extracted from the input text and related to a shadow concept.
Parameter | Type | Description | Details |
---|---|---|---|
| string | Term from the input text related to the shadow concept. | example: fox |
| number | Relevance of this term in relation to the shadow concept. | maximum: 100
minimum: 0
example: 23 |