openlink-virtuoso

Closing OpenLink Virtuoso HTTP Connections

拈花ヽ惹草 提交于 2019-12-06 06:25:25
We are using OpenLink Virtuoso as the primary database manager for a NodeJS project. We query the database using SPARQL queries only, through the HTTP SPARQL endpoint. For this, we are using the request-promise library, with the following configuration: const queryRequest = rp({ method: "POST", uri: queryObject.fullUrl, form: { query: queryObject.query, maxrows: queryObject.maxRows, format: queryObject.resultsFormat }, headers: { 'content-type': 'application/x-www-form-urlencoded' }, json: true, forever : true, // Keep connections alive instead of creating new ones timeout : Config