Page MenuHomeDevCentral

Extract SPARQL client
ClosedPublic

Authored by dereckson on Aug 29 2024, 23:41.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 01:11
Unknown Object (File)
Fri, Nov 15, 05:17
Unknown Object (File)
Thu, Nov 14, 10:36
Unknown Object (File)
Tue, Nov 12, 15:05
Unknown Object (File)
Tue, Nov 12, 08:15
Unknown Object (File)
Tue, Nov 12, 04:46
Unknown Object (File)
Tue, Nov 12, 01:36
Unknown Object (File)
Mon, Nov 11, 14:48
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.Aug 31 2024, 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.Aug 31 2024, 14:26
This revision was automatically updated to reflect the committed changes.