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" />
                    
Directory.Packages.props
<PackageReference Include="Varve.Protocol" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Varve.Protocol&version=0.1.0-preview.20&prerelease
                    
Install as a Cake Tool

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. MapVarveDataset maps the data plane, /, /sparql, /graphs, /commits, /diff and /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-Match carries an expected position: 412 when it is stale, 409 on 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). A 409 lists the commits that caused it under graphs.
  • Every read is pinned for its response and bounded by the host's limits. Varve-As-Of: position:<n> or time:<RFC 3339> reads the past. Varve-Position names the position read, and ETag the position or, for a graph, the graph's version; If-None-Match polls for 304.
  • Graphs in six formats (ADR 0092, amended): a Graph Store GET, a CONSTRUCT or DESCRIBE, 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 — is 406 not-acceptable, saying why.
  • The commits resource (ADR 0118) is the change feed: GET /commits?from=&to= is a range in application/vnd.varve.delta; version=1, GET /commits/{position} is one commit, and an open range tails live, as server-sent events when Accept asks for text/event-stream. The format is Varve.Delta's, read for ever (ADR 0128): its ChangeFeedReader reads 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 — and sd:BasicFederatedQuery when the host answers SERVICE (ADR 0104).
  • The management plane (ADR 0163): MapVarveManagement mounts /manage/datasets and, under /manage/datasets/{name}, the dataset's declaration as TriG (GET, PUT, PATCH, DELETE), settings, state, status, checkpoints, grants, events and events/move (the move of the dataset's event declarations to the management plane, ADR 0167); then /manage/fleet, /graphs, /apply and /system, over the host's IManagementPlane: 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 its IDatasetAdministration.
  • 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 and Varve-Forwarded, and its answer passed back; a forwarded write that reaches a non-writer is 503 writer-moved. IManagementAuthority pins the management position a request is authorised at, which its commit records (ADR 0165), and IDatasetFollowing advances a follower before a read; Varve-Min-Position asks for a later one.
  • Authorisation is four policy names, varve:read, varve:write, varve:admin and varve: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 IAccessScopes answers what the caller reads and writes, by graph. A read evaluates over GraphScopedQuadSource, so an unreadable graph is absent from every answer — a FROM naming it names an empty graph, a Graph Store GET, PUT or DELETE of it is 404 — and a write that changes a graph outside the writable set is 403 graph-not-writable with 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 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.

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