UNPKG

@zazuko/trifid-plugin-sparql-proxy

Version:

Trifid plugin for sparql-proxy

14 lines (11 loc) 323 B
import rdf from '@zazuko/env-node' const fetchServiceDescription = async (endpointUrl, { format, authorization }) => { const response = await rdf.fetch(endpointUrl, { headers: { Accept: format || '*/*', authorization, }, }) return response.dataset() } export default { fetchServiceDescription }