/CuriousGremlin

.Net Standard library for generating strongly-typed Gremlin queries and parsing GraphSON results. Includes Azure CosmoDB integration.

Primary LanguageC#MIT LicenseMIT

CuriousGremlin

CuriousGremlin is a collection of .Net libraries for generating strongly-typed Gremlin queries, executing queries using Azure CosmosDB, and parsing GraphSON results.

Quickstart

  1. Generate a query:
using CuriousGremlin.Query;

var query = GraphQuery.AddVertex("label_name").Property("key_name", "value");
  1. Execute the query:
using CuriousGremlin.AzureCosmosDB;
...
var client = new GraphClient(endpoint, authKey);
using(client)
{
	await client.Open("database_name", "collection_name");
	var result = client.Execute(query);
}
  1. Manipulate results
using CuriousGremlin.GraphSON;
...
foreach(GraphVertex item in result)
{
	Console.WriteLine("Vertex ID: " + item.id);
	Console.WriteLine("Vertex Label: " + item.label);
}

Organization

  1. Query - A library for building strongly-typed Gremlin queries.
  2. AzureCosmosDB - A library for creating Gremlin clients for Azure CosmosDB
  3. UnitTests - Unit tests for the project