Varve.Sparql.Results 0.1.0-preview.20

This is a prerelease version of Varve.Sparql.Results.
dotnet add package Varve.Sparql.Results --version 0.1.0-preview.20
                    
NuGet\Install-Package Varve.Sparql.Results -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.Sparql.Results" 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.Sparql.Results" Version="0.1.0-preview.20" />
                    
Directory.Packages.props
<PackageReference Include="Varve.Sparql.Results" />
                    
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.Sparql.Results --version 0.1.0-preview.20
                    
#r "nuget: Varve.Sparql.Results, 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.Sparql.Results@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.Sparql.Results&version=0.1.0-preview.20&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Varve.Sparql.Results&version=0.1.0-preview.20&prerelease
                    
Install as a Cake Tool

Varve.Sparql.Results

The SPARQL result formats — XML, JSON, CSV and TSV — read and written as streams of UTF-8.

  • One reader for four formats. ReadHead gives the variables, or the boolean of an ASK; Read advances through the solutions, each a view of RDF terms valid until the next Read.
  • SPARQL 1.2's additions: triple terms and base directions in all four.
  • Chunked input. A ReadOnlySequence<byte> is read without being joined.
  • Errors carry byte offset, line and column. The first error stops the reader; a malformed result document has no useful remainder.
  • No System.Xml. The XML format is read by a small non-validating reader of the subset it uses, which refuses a DTD.
  • One writer for four formats, into an IBufferWriter<byte> or a Stream (flushed when you choose, synchronously or not), taking each binding as an RdfTerm or as a reader's RdfTermView, and allocating nothing per solution. What a format cannot carry is stated: CSV drops datatypes and language tags by design, and XML 1.0 cannot hold U+0000.
var reader = new SparqlResultsReader(utf8, SparqlResultsFormat.Json);
while (reader.Read())
{
    if (reader.Current.TryGet(0, out RdfTermView term)) { /* … */ }
}

using var writer = new SparqlResultsWriter(stream, SparqlResultsFormat.Tsv);
writer.WriteHead(["s"]);
writer.StartSolution();
writer.WriteBinding(0, RdfTerm.Iri("http://example.org/s"u8));
writer.EndSolution();
writer.WriteEnd();
await writer.FlushAsync();

Layer 2 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 (2)

Showing the top 2 NuGet packages that depend on Varve.Sparql.Results:

Package Downloads
Varve.Protocol

SPARQL 1.1 Protocol, Graph Store Protocol, service description, time travel, change feed and diff over HTTP for a Varve store, as ASP.NET Core endpoint groups.

Varve.Protocol.Client

The HTTP client for a Varve server: SPARQL Protocol queries and updates, the Graph Store Protocol, the change feed and the admin API, with the SERVICE handler and the document fetch that federate a query and a LOAD under an endpoint policy.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.20 50 11/10/2026
0.1.0-preview.19 66 11/6/2026
0.1.0-preview.18 59 11/6/2026
0.1.0-preview.17 61 11/6/2026
0.1.0-preview.16 64 11/3/2026
0.1.0-preview.15 106 10/26/2026
0.1.0-preview.14 66 10/26/2026
0.1.0-preview.13 72 10/26/2026
0.1.0-preview.12 71 10/23/2026
0.1.0-preview.11 74 10/21/2026
0.1.0-preview.10 73 10/20/2026
0.1.0-preview.9 78 10/19/2026
0.1.0-preview.8 70 10/17/2026
0.1.0-preview.7 71 10/17/2026
0.1.0-preview.6 69 10/15/2026
0.1.0-preview.5 65 10/15/2026
0.1.0-preview.4 66 10/13/2026
0.1.0-preview.3 70 10/12/2026
0.1.0-preview.2 73 10/9/2026
0.1.0-preview.1 58 10/7/2026