Page MenuHomeDevCentral

Extract SPARQL client
ClosedPublic

Authored by dereckson on Thu, Aug 29, 23:41.
Tags
None
Referenced Files
F3579740: D3424.id.diff
Mon, Sep 16, 15:11
Unknown Object (File)
Sun, Sep 15, 10:53
Unknown Object (File)
Sun, Sep 15, 10:53
Unknown Object (File)
Sun, Sep 15, 10:53
Unknown Object (File)
Fri, Sep 13, 19:09
Unknown Object (File)
Fri, Sep 13, 18:57
Unknown Object (File)
Wed, Sep 11, 16:41
Unknown Object (File)
Wed, Sep 11, 16:37
Subscribers
None

Details

Summary

The sparql-client crate is based on oxigraph components
and extracted from fantoir-datasource crate.

The goal is to allow SPARQL queries in any Rust project.

As both fantoir-datasource and sparql-client needs
to build an HTTP client with specific configuration
(gzip, deflate, user-agent), common code previously
in fantoir-datasource is migrated to a specific support
crate, ds-http-client.

The ds- prefix has been chosen for small support libraries
for the datasources project.

Ref T1752

Test Plan
  • fetch file
  • run Wikidata enrichment

Diff Detail

Repository
rDS Nasqueron Datasources
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson held this revision as a draft.
fantoir-datasource/src/commands/wikidata/mod.rs
49

There is a way here to inject Accept header.

That would simplify a lot the code by removing the user agent dance.

Get rid of the HTTP client builder in sparql-client. Implement into_bool from P308. Add test for into_solutions.

EOL at EOF, proofread new fantoir http_client

HTTP client can still be used to fetch the .zip and send request to Wikidata.

SPARQL client still works fine.

This revision is now accepted and ready to land.Sat, Aug 31, 14:26
This revision was automatically updated to reflect the committed changes.