Extract relationships

Returns the relationships between entities in the input text.

The response is a list of extracted relationships. A relationship contains

predicate - usually the main verb, property or action that is expressed by the text
arg1 - usually the subject, agent or main actor of the relationship
arg1Id [optional] - the entity ID to link an entity to a knowledgebase
arg2 [optional] - complements the predicate and is usually the object, theme or patient of the relationship
arg2Id [optional] - the entity ID to link an entity to a knowledgebase
confidence - a measure of quality of relationship extraction, between 0 - 1

Headers

X-RosetteAPI-KeystringRequired

Request

This endpoint expects an object.
contentstringRequired
The text to be analyzed.
languagestringOptional

Three-letter ISO 693-3 language code.

Response

OK
relationshipslist of objects or null