Varve.JsonLd 0.1.0-preview.20

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

Varve.JsonLd

JSON-LD 1.1, read and written over System.Text.Json's Utf8JsonReader and Utf8JsonWriter: expansion, toRdf and fromRdf, with RDF 1.2's base directions and rdf:JSON literals in RFC 8785 canonical form.

  • All 448 toRdf, 368 expand and 53 fromRdf cases of the W3C JSON-LD 1.1 API suite that a 1.1 processor can run pass, with no exemption, under the same ratchet as every other syntax; the 38 cases a stated rule excludes (1.0-only behaviour, the 1.0 processing mode, generalized RDF) are counted in docs/spec/json-ld.md.
  • The document is a tree before it is a dataset: the whole input is read into one index-linked tree in pooled arrays, expanded into the same tree, and walked for quads. The figure per quad is the tree's growth, measured and stated in the specification page rather than hidden, and the emitter itself allocates nothing (ADR 0123).
  • Remote contexts come only through the caller's document loader; with none, the default, a remote context is the error loading remote context failed. Nothing in this package opens a connection.
  • @direction is RDF 1.2's own by default: a directional language-tagged string. The specification's i18n-datatype and compound-literal modes and its default of dropping the direction are options.
  • Errors are the specification's codes, one enum value per JsonLdErrorCode, so a caller and the W3C suite name the same thing.
  • Compaction, flattening and framing are not implemented; the three are recorded as out of scope, with the reason, in the specification page.
JsonLdOptions options = new() { BaseIri = "http://example.org/doc"u8.ToArray() };

JsonLdResult result = JsonLdParser.Parse(
    stream,
    static (in QuadView quad) => Console.WriteLine(quad.Subject.Lexical.Length),
    in options);
using JsonLdWriter writer = new(output, new JsonLdWriteOptions { UseNativeTypes = true });
writer.Write(in quad);

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.JsonLd:

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 49 11/10/2026
0.1.0-preview.19 65 11/6/2026
0.1.0-preview.18 61 11/6/2026
0.1.0-preview.17 67 11/6/2026
0.1.0-preview.16 66 11/3/2026
0.1.0-preview.15 300 10/26/2026
0.1.0-preview.14 70 10/26/2026
0.1.0-preview.13 75 10/26/2026
0.1.0-preview.12 69 10/23/2026
0.1.0-preview.11 66 10/21/2026
0.1.0-preview.10 74 10/20/2026
0.1.0-preview.9 81 10/19/2026
0.1.0-preview.8 72 10/17/2026
0.1.0-preview.7 81 10/17/2026
0.1.0-preview.6 69 10/15/2026
0.1.0-preview.5 64 10/15/2026
0.1.0-preview.4 61 10/13/2026