Relation Concept Links
The relation concept links feature links relations to concepts. This resembles the concept links in found entities.
Example NLP API results:
Specifically the following is a snippet showing an example of a qualifier relation’s concept links:
Changed
Python API
All the relations now have a .concepts attribute which is a list of Concept objects.
Example usage:
Database changes
There are no schema changes for this new feature.
Since the relation is linked to a concept (similar to how the found entities are linked to concepts), this new concept link is stored in the database by creating a new discontinuous found entity for each relation that has a concept link.
For each relation with at least one concept link, we create a new found entity that merges the arguments of the relation together. The attributes are merged together, and the spans and locations are the union of the two individual found entities.
From the example above, we should now have a new found entity in the data for ‘mild mitral regurgitation’. This is a discontinuous entity, so there will be two rows in the foundentityspan table.
And if we run that, we should see the following result:
Since the new discontinuous found entity is created from two existing found entities, you will now see 3 found entities in the database:
Found entities 13565 and 13567 are the original two found entities that are combined to create 13574; the original two found entities retain their individual concept links while the new found entity has a new concept link that was copied from the relation that generated it.
