HiLang 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package HiLang --version 1.3.0
                    
NuGet\Install-Package HiLang -Version 1.3.0
                    
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="HiLang" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HiLang" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="HiLang" />
                    
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 HiLang --version 1.3.0
                    
#r "nuget: HiLang, 1.3.0"
                    
#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.
#addin nuget:?package=HiLang&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=HiLang&version=1.3.0
                    
Install as a Cake Tool

HiLang

HiLang is a minimal high-level language to describe the schema of a domain, taking inspiration from protobuf (.proto models) for hierarchical structures and SQL DML for entities, relations and views.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on HiLang:

Package Downloads
Hiperspace.SQL

# Hiperspace.SQL Hiperspace.SQL is a full SQL query engine for Hiperspace, supporting the full range of joins, aggregations, and subqueries. Hiperspace.SQL provides the same query functionality as a .NET client can use with LINQ queries, but without the need to write code in C#/F# Hiperspace fully supports point-in-time "time travel" queries that are not possible with Python Data-Frames or DuckDB ## Features - Hiperspace.SQL is not limited to queries of columns within a table, but supports the full navigation of properties of Hiperspace elements - Where a column is a complex object it is returned as a JSON object - Executing a batch of SQL statements return columnar data frames (dictionary of column-name and array of values) - Explain SQL returns the execution plan, detailing the SetSPaces accessed and keys used for search (Key, Index, Scan) - The Parquet method returns a Parquet file that can be used with any Apache Parquet library, or added to DuckDB OLAP store

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.8 101 7/1/2025
2.3.7 145 6/18/2025
2.3.4 135 6/5/2025
2.2.2 144 5/5/2025
2.2.1 194 4/14/2025
2.2.0 92 3/29/2025
2.1.9 206 3/5/2025
2.1.6 104 2/15/2025
2.1.0 106 1/24/2025
2.0.0 85 1/14/2025
1.3.9 126 11/15/2024
1.3.0 111 10/5/2024
1.2.18 150 9/15/2024
1.2.16 132 9/7/2024
1.2.15 122 9/1/2024
1.2.11 99 8/6/2024
1.2.9 97 7/26/2024
1.2.8 134 7/19/2024
1.2.6 111 7/15/2024
1.2.4 132 7/4/2024
1.2.0 135 5/30/2024
1.1.37 124 5/11/2024
1.1.34 120 4/22/2024
1.1.30 127 3/24/2024
1.1.26 144 3/14/2024
1.1.23 146 2/26/2024
1.1.22 139 2/16/2024
1.1.21 191 1/11/2024
1.1.19 165 1/1/2024
1.1.17 153 12/23/2023
1.1.11 147 12/16/2023
1.1.10 152 12/6/2023
1.1.7 148 11/30/2023
1.1.5 144 11/21/2023
1.0.14-prerelease 178 8/6/2023

## Overview
     This release provides an overhaul of the LINQ integration, to provide the query execution plaform for **Hiperspace.SQL** SQL query execution against data held in Hiperspace.   The change introduces support for joins that were not previously supported without intermediate code.

     Hiperspace deos not normaly *need* join support because related elements can be retrived through properties transparently without need for additional queries to the store, but are needed to export data to  [Apache Parquet](https://parquet.apache.org/) and[DuckDB](https://duckdb.org/) (for analysis using [jupyter Notebooks](https://jupyter.org/)).  While these tools are excellent for adhoc analysis, they don't have the full point-in-time view that is a available from Subspaces of Hiperspace.


     -----


     ## Query Provider
     SubSpace has always supported LINQ expressions from C# and F# (and VB.Net if anyone is still using it), and the queries translated to Domain Space Find requests.  Find searches use the best (*rule based optimiser*) access path to retrieve elements either by key or a sympathetic index.
     ```
     var lucy = from p in space.Persons
     where p.Name == "Lucy"
     select p;
     // is the same as the direct query
     var lucy = space.Persons.Find(new Person { Name = "Lucy" });
     ```

     The new query provider supports the full range of SQL-like queries with multiple *from* sources and *joins* (including composite keys), *group by*, *order by* and stream aggregates.

     ```
     foreach (var j in from p in space.Persons
     join f in space.Persons on p.Father!.Name equals f.Name
     join m in space.Persons on p.Mother!.Name equals m.Name
     where p.Name == lucy
     select new { p, f, m })
     {
     _output.WriteLine($"{j.p.Name} () has father {j.f.Name} and mother {j.m.Name}");
     }
     // is equvilent to

     foreach (var p in space.Persons.Find(new Person { Name = lucy }))
     {
     foreach (var f in space.Persons.Find(new Person { Name = p.Father?.Name }))
     {
     foreach (var m in space.Persons.Find(new Person { Name = p.Mother?.Name }))
     {
     _output.WriteLine($"{p.Name} has father {f.Name} and mother {m.Name}");
     }
     }
     }
     // this could also be queried directly using Hiperspace native navigation
     foreach (var p in space.Persons.Find(new Person { Name = lucy }))
     {
     _output.WriteLine($"{p.Name} has father {p.Father!.Name} and mother {p.Mother!.Name}");
     }
     ```

     The advatage of supporting the full range of LINQ expressions is that it is directly eqivilent to SQL, and so provides the basis for a SQL interpreter and external tool integration


     -----

     ## Query Explain
     The new `QueryExplain` class provides SQL Explain functionality to review execution plans for queries

     ```
     _output.WriteLine($"{new QueryExplain(join.Expression)}");
     // outputs
     Query
     Select value(Hiperspace.SetJoin`3[<>f__AnonymousType2`2[<>f__AnonymousType1`2[Cousins.Person,Cousins.Person],Cousins.Person],<>f__AnonymousType1`2[Cousins.Person,Cousins.Person],Cousins.Person]).Where(<>h__TransparentIdentifier1 => (<>h__TransparentIdentifier1.<>h__TransparentIdentifier0.p.Name == value(Cousins.Test+<>c__DisplayClass11_0).lucy)).Select(<>h__TransparentIdentifier1 => new <>f__AnonymousType3`3(p = <>h__TransparentIdentifier1.<>h__TransparentIdentifier0.p, f = <>h__TransparentIdentifier1.<>h__TransparentIdentifier0.f, m = <>h__TransparentIdentifier1.m))
     Where value(Hiperspace.SetJoin`3[<>f__AnonymousType2`2[<>f__AnonymousType1`2[Cousins.Person,Cousins.Person],Cousins.Person],<>f__AnonymousType1`2[Cousins.Person,Cousins.Person],Cousins.Person]).Where(<>h__TransparentIdentifier1 => (<>h__TransparentIdentifier1.<>h__TransparentIdentifier0.p.Name == value(Cousins.Test+<>c__DisplayClass11_0).lucy))
     Nested Loop on (.p.Mother.Name = m.Name)
     Nested Loop on (.Father.Name = f.Name)
     Key PersonKeyPath as p
     Person (Name=Lucy, TypeName=Person, SKey=UgYKBEx1Y3k=)
     Key PersonKeyPath as f
     Person (Name=left.Name, TypeName=Person, SKey=UgA=)
     Key PersonKeyPath as m
     Person (Name=left.Name, TypeName=Person, SKey=UgA=)

     ```
     In this example the LINQ expression and nested data access is output.  Because the query included a predicate on the key of the first set, the access is via *Key* with the related value provided through to subsequent joins

     ### SetSpace Explain
     To support `QueryExplain`, an additional function has been added to `SetSpace<>` to retrieve the access path { 'Key', 'Index', 'Scan' } that is used to retrieve data from Hiperspace

     ## IAsyncEnumerable<_>

     [IAsyncEnumerable](https://learn.microsoft.com/en-us/archive/msdn-magazine/2019/november/csharp-iterating-with-async-enumerables-in-csharp-8) is a new feature of .NET 8 that allows asyncronous functiuons that return an enumerable to do so without creating temporary lists.  This capability is used by LINQ, so introduced as a breaking change to the Hiperspace interface with this release.