@lde/distribution-probe
v0.2.9
Published
Probes a DCAT `Distribution` to check availability and gather metadata. Returns `SparqlProbeResult`, `DataDumpProbeResult`, or `NetworkError` – the probe never throws.
Readme
@lde/distribution-probe
Probes a DCAT Distribution to check availability and gather metadata. Returns SparqlProbeResult, DataDumpProbeResult, or NetworkError – the probe never throws.
Installation
npm install @lde/distribution-probeimport { Distribution } from '@lde/dataset';
import { probe } from '@lde/distribution-probe';
const distribution = new Distribution(
new URL('https://example.org/data.ttl'),
'text/turtle',
);
const result = await probe(distribution);Documentation
See the full documentation.
