The Terminology Service Suite project is a collection of interactive widgets designed to ease the integration of terminology service functions into third-party applications.
Fixes EntityRelationsWidget querying an old API route /instances (through function OlsApi::getClassInstances()) which has changed in the ols4/v2 API (now named /individuals).
Added a type object in types.ts containing all the necessary onNavigate functions (to ontology/entity, on disambiguate). This has to be merged with the other advances of onNavigate functions on other dev branches (e.g. #133).
Added function inferTypeFromTypeArray(types: string[]) : ThingTypeName in util.ts which returns the only ThingTypeName contained in types or throws an error if there are multiple or none (solves the former error of specific property types). Has to be merged correctly with #134.
This pull request includes the following changes:
/instances
(through functionOlsApi::getClassInstances()
) which has changed in theols4/v2
API (now named/individuals
).types.ts
containing all the necessary onNavigate functions (to ontology/entity, on disambiguate). This has to be merged with the other advances of onNavigate functions on other dev branches (e.g. #133).inferTypeFromTypeArray(types: string[]) : ThingTypeName
inutil.ts
which returns the only ThingTypeName contained intypes
or throws an error if there are multiple or none (solves the former error of specific property types). Has to be merged correctly with #134.