Page MenuHomeDevCentral

Extract SPARQL client
ClosedPublic

Authored by dereckson on Aug 29 2024, 23:41.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 23:15
Unknown Object (File)
Mon, Dec 9, 17:41
Unknown Object (File)
Mon, Dec 9, 05:43
Unknown Object (File)
Mon, Dec 9, 05:43
Unknown Object (File)
Mon, Dec 9, 05:43
Unknown Object (File)
Mon, Dec 9, 05:43
Unknown Object (File)
Mon, Dec 9, 05:43
Unknown Object (File)
Mon, Dec 9, 05:42
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 5457
Build 5738: 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.