Skip to main content

SPARQL endpoint

This service allows you to offer a public query-only SPARQL endpoint, deployed on the /sparql path. It channels all requests to the TripleStoreService.

Dependencies

Install

$ yarn add @semapps/sparql-endpoint

Usage

const { SparqlEndpointService } = require('@semapps/sparql-endpoint');
const path = require('path');

module.exports = {
mixins: [SparqlEndpointService],
settings: {
defaultAccept: 'text/turtle',
podProvider: false,
ignoreAcl: false
}
}
PropertyTypeDefaultDescription
defaultAcceptString"text/turtle"Format of the results. Can also be "application/ld+json".
podProviderBooleanfalseIf true, the service will setup one SPARQL endpoint per POD.
ignoreAclBooleanfalseIf true, all requests made through this endpoint will not check WebACLs