Varve.Protocol
0.1.0-preview.20
This is a prerelease version of Varve.Protocol.
dotnet add package Varve.Protocol --version 0.1.0-preview.20
NuGet\Install-Package Varve.Protocol -Version 0.1.0-preview.20
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Varve.Protocol" Version="0.1.0-preview.20" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Varve.Protocol" Version="0.1.0-preview.20" />
<PackageReference Include="Varve.Protocol" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Varve.Protocol --version 0.1.0-preview.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Varve.Protocol, 0.1.0-preview.20"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Varve.Protocol@0.1.0-preview.20
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Varve.Protocol&version=0.1.0-preview.20&prerelease
#tool nuget:?package=Varve.Protocol&version=0.1.0-preview.20&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Varve.Protocol
The SPARQL 1.1 Protocol, the Graph Store HTTP Protocol, the service description, time travel, the change feed and the diff, for a Varve store, as ASP.NET Core endpoint groups any host mounts.
- One endpoint group per dataset.
MapVarveDatasetmaps the data plane,/,/sparql,/graphs,/commits,/diffand/events, under a prefix the host chooses. The host says which dataset a request names (IDatasetResolver), how an update executes (ISparqlUpdateExecutor), and who the caller is (ICallerIdentity). - Every write is one commit, with the caller as its agent.
If-Matchcarries an expected position:412when it is stale,409on a conflict. On a Graph Store write it names the graph's version, so writers of other graphs never conflict;Varve-If-Graphs-Match: <iri>=<n>, default=<n>names the graphs an update read (ADR 0126). A409lists the commits that caused it undergraphs. - Every read is pinned for its response and bounded by the host's limits.
Varve-As-Of: position:<n>ortime:<RFC 3339>reads the past.Varve-Positionnames the position read, andETagthe position or, for a graph, the graph's version;If-None-Matchpolls for304. - Graphs in six formats (ADR 0092, amended): a Graph Store
GET, aCONSTRUCTorDESCRIBE, and the service description are negotiated over N-Triples (the default), Turtle, N-Quads, TriG, RDF/XML and JSON-LD, and a Graph Store write reads all six. RDF 1.2's triple terms and directions travel where the syntax has them; a graph the chosen format cannot spell — a triple term in JSON-LD, a predicate with no qualified name in RDF/XML — is406 not-acceptable, saying why. - The commits resource (ADR 0118) is the change feed:
GET /commits?from=&to=is a range inapplication/vnd.varve.delta; version=1,GET /commits/{position}is one commit, and an open range tails live, as server-sent events whenAcceptasks fortext/event-stream. The format isVarve.Delta's, read for ever (ADR 0128): itsChangeFeedReaderreads it with Varve's own terms and no store. - The service description says what the endpoint does: its languages
and formats, the named graphs the caller may see, the event-sourced
extensions under
https://w3id.org/varve/ns#—position, the headers,graphStore,commits,state,diff,status,settings,checkpoints— andsd:BasicFederatedQuerywhen the host answersSERVICE(ADR 0104). - The management plane (ADR 0163):
MapVarveManagementmounts/manage/datasetsand, under/manage/datasets/{name}, the dataset's declaration as TriG (GET,PUT,PATCH,DELETE),settings,state,status,checkpoints,grants,eventsandevents/move(the move of the dataset's event declarations to the management plane, ADR 0167); then/manage/fleet,/graphs,/applyand/system, over the host'sIManagementPlane: the fleet's system dataset, the grants in force, and the code validator every management commit runs (ADR 0166). A host with no management plane passes none, and gets the list, status, checkpoints, settings and state over itsIDatasetAdministration. - Write routing by forwarding (ADR 0168): with the host's
IWriterDirectory, a write to a dataset another instance writes is sent to it whole, once, with the caller's token andVarve-Forwarded, and its answer passed back; a forwarded write that reaches a non-writer is503 writer-moved.IManagementAuthoritypins the management position a request is authorised at, which its commit records (ADR 0165), andIDatasetFollowingadvances a follower before a read;Varve-Min-Positionasks for a later one. - Authorisation is four policy names,
varve:read,varve:write,varve:adminandvarve:server-admin(an operator's). The host decides what satisfies them. Nothing here authenticates. - Graph-level scope (ADR 0107): after the policy, the host's
IAccessScopesanswers what the caller reads and writes, by graph. A read evaluates overGraphScopedQuadSource, so an unreadable graph is absent from every answer — aFROMnaming it names an empty graph, a Graph StoreGET,PUTorDELETEof it is404— and a write that changes a graph outside the writable set is403 graph-not-writablewith nothing committed. The feed and the diff are cut to the readable graphs. A caller whose scope is every graph is served by the unwrapped view.
app.MapGroup("/datasets/{dataset}").MapVarveDataset(new ProtocolOptions
{
Datasets = resolver,
Updates = executor,
Identity = identity,
AccessScopes = EveryoneEverything.Instance,
Authorization = app.Services.GetRequiredService<IAuthorizationService>(),
Clock = TimeProvider.System,
});
Layer 5 of Varve, a .NET-native event-sourced RDF store and SPARQL toolkit. MPL-2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Varve.Delta (>= 0.1.0-preview.20)
- Varve.Events (>= 0.1.0-preview.20)
- Varve.Iri (>= 0.1.0-preview.20)
- Varve.JsonLd (>= 0.1.0-preview.20)
- Varve.Management (>= 0.1.0-preview.20)
- Varve.Rdf (>= 0.1.0-preview.20)
- Varve.RdfXml (>= 0.1.0-preview.20)
- Varve.Shacl (>= 0.1.0-preview.20)
- Varve.Sparql (>= 0.1.0-preview.20)
- Varve.Sparql.Entailment (>= 0.1.0-preview.20)
- Varve.Sparql.Evaluation (>= 0.1.0-preview.20)
- Varve.Sparql.Results (>= 0.1.0-preview.20)
- Varve.Store (>= 0.1.0-preview.20)
- Varve.Turtle (>= 0.1.0-preview.20)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.20 | 49 | 11/10/2026 |
| 0.1.0-preview.19 | 55 | 11/6/2026 |
| 0.1.0-preview.18 | 50 | 11/6/2026 |
| 0.1.0-preview.17 | 48 | 11/6/2026 |
| 0.1.0-preview.16 | 56 | 11/3/2026 |
| 0.1.0-preview.15 | 60 | 10/26/2026 |
| 0.1.0-preview.14 | 57 | 10/26/2026 |
| 0.1.0-preview.13 | 65 | 10/26/2026 |
| 0.1.0-preview.12 | 84 | 10/23/2026 |
| 0.1.0-preview.11 | 73 | 10/21/2026 |
| 0.1.0-preview.10 | 69 | 10/20/2026 |
| 0.1.0-preview.9 | 70 | 10/19/2026 |
| 0.1.0-preview.8 | 64 | 10/17/2026 |
| 0.1.0-preview.7 | 69 | 10/17/2026 |
| 0.1.0-preview.6 | 66 | 10/15/2026 |
| 0.1.0-preview.5 | 63 | 10/15/2026 |
| 0.1.0-preview.4 | 63 | 10/13/2026 |
| 0.1.0-preview.3 | 61 | 10/12/2026 |
| 0.1.0-preview.2 | 67 | 10/9/2026 |