Page MenuHomeDevCentral

Extract SPARQL client
ClosedPublic

Authored by dereckson on Thu, Aug 29, 23:41.
Tags
None
Referenced Files
F3585591: D3424.diff
Thu, Sep 19, 00:55
Unknown Object (File)
Tue, Sep 17, 00:10
Unknown Object (File)
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
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
No Lint Coverage
Unit
No Test Coverage
Branch
extract-sparql-client
Build Status
Buildable 5458
Build 5739: arc lint + arc unit

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

dereckson published this revision for review.Sat, Aug 31, 14:26

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.