LinkedDataFragments / Server.js

A Triple Pattern Fragments server for Node.js
http://linkeddatafragments.org/
Other
179 stars 59 forks source link

Is it possible to add the server as a dependency of another server? #164

Open marcelomachado opened 2 years ago

marcelomachado commented 2 years ago

I haven't found documentation that demonstrates what it would be like to use ldf-server as a library within another service instead of use it as a standalone application.

My wish is to add the ldf-server inside an API that already provides endpoints to access some services. So I would like to create routes that allow, for example, to add or remove datasources without having to restart the server and routes to query those datasources. Is there any simple way to do this or should I run the service in parallel? In the latter case how could I add datasources from this other API without having to restart the service?

rubensworks commented 2 years ago

Currently, this is not possible. It would require some (not too difficult) changes to the implementation here.

You're welcome to propose a PR to make these changes though.