Varve.RdfXml
0.1.0-preview.20
dotnet add package Varve.RdfXml --version 0.1.0-preview.20
NuGet\Install-Package Varve.RdfXml -Version 0.1.0-preview.20
<PackageReference Include="Varve.RdfXml" Version="0.1.0-preview.20" />
<PackageVersion Include="Varve.RdfXml" Version="0.1.0-preview.20" />
<PackageReference Include="Varve.RdfXml" />
paket add Varve.RdfXml --version 0.1.0-preview.20
#r "nuget: Varve.RdfXml, 0.1.0-preview.20"
#:package Varve.RdfXml@0.1.0-preview.20
#addin nuget:?package=Varve.RdfXml&version=0.1.0-preview.20&prerelease
#tool nuget:?package=Varve.RdfXml&version=0.1.0-preview.20&prerelease
Varve.RdfXml
RDF/XML, read and written over System.Xml's streaming reader and writer,
with RDF 1.2's triple terms (rdf:parseType="Triple"), annotations and base
directions (its:dir).
- All 166 cases of the W3C
rdf11RDF/XML suite and the 31 of therdf12evaluation suite pass, with no exemption, under the same ratchet as every other syntax;docs/spec/rdf-xml.mdsays what is refused and why. Per triple it costs whatXmlReadercosts, and the figure is stated there rather than hidden (ADR 0122). - The BCL does the XML: encodings, entities, namespaces and
well-formedness are
XmlReader's, with DTDs refused. This package does the RDF/XML grammar over the events it reports, and anrdf:XMLLiteralis the exclusive canonical form of its content. - Nothing per triple is this package's to allocate: names are the
reader's atomised strings and values are read in chunks into one arena.
What
XmlReaderitself costs per element is measured and stated in the specification, not hidden. - The writer refuses what the syntax cannot spell, by name: a quad with a graph, a triple term outside the object position, a predicate with no suffix that is an XML name, a character XML cannot carry. It invents a namespace prefix where the syntax leaves it no choice.
RdfXmlOptions options = new() { BaseIri = "http://example.org/doc"u8.ToArray() };
RdfXmlParseResult result = RdfXmlParser.Parse(
stream,
static (in QuadView quad) => Console.WriteLine(quad.Subject.Lexical.Length),
in options);
using RdfXmlWriter writer = new(output, new RdfXmlWriteOptions());
writer.DeclarePrefix("ex"u8, "http://example.org/"u8);
writer.Write(in quad);
Layer 2 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. |
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Varve.RdfXml:
| 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 | 52 | 11/10/2026 |
| 0.1.0-preview.19 | 62 | 11/6/2026 |
| 0.1.0-preview.18 | 64 | 11/6/2026 |
| 0.1.0-preview.17 | 60 | 11/6/2026 |
| 0.1.0-preview.16 | 64 | 11/3/2026 |
| 0.1.0-preview.15 | 100 | 10/26/2026 |
| 0.1.0-preview.14 | 64 | 10/26/2026 |
| 0.1.0-preview.13 | 72 | 10/26/2026 |
| 0.1.0-preview.12 | 70 | 10/23/2026 |
| 0.1.0-preview.11 | 74 | 10/21/2026 |
| 0.1.0-preview.10 | 68 | 10/20/2026 |
| 0.1.0-preview.9 | 75 | 10/19/2026 |
| 0.1.0-preview.8 | 69 | 10/17/2026 |
| 0.1.0-preview.7 | 69 | 10/17/2026 |
| 0.1.0-preview.6 | 72 | 10/15/2026 |
| 0.1.0-preview.5 | 62 | 10/15/2026 |
| 0.1.0-preview.4 | 64 | 10/13/2026 |