CLARIAH / vocabulary-recommender

4 stars 0 forks source link

Feature: GraphQL query interface integration and endpoint support #17

Open kathrinrin opened 1 year ago

kathrinrin commented 1 year ago

Who? As a user of the vocabulary recommendation system that uses GraphQL endpoints. What? I would like to be able to use my endpoints with the vocabulary-recommendation library. Why? So that I can query vocabularies in my GraphQL endpoint.

Background

Currently the vocabulary recommendation library uses SPARQL and Elasticsearch (ES) endpoints to query datasets. GraphQL endpoints are not yet supported. In sparql.ts and elasticsearch.ts, we developed scripts that are able to communicate with an ES and SPARQL endpoint and retrieve results according to the specific ES/SPARQL query (example queries can be found here).

Goal

This feature request proposes a similar integration of GraphQL to enable retrieval of results from GraphQL endpoints. More information regarding GraphQL queries can be found here: https://graphql.org/learn/queries/.

Implementation criteria