CuriousGremlin is a collection of .Net libraries for generating strongly-typed Gremlin queries, executing queries using Azure CosmosDB, and parsing GraphSON results.
- Generate a query:
using CuriousGremlin.Query;
var query = GraphQuery.AddVertex("label_name").Property("key_name", "value");
- 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);
}
- Manipulate results
using CuriousGremlin.GraphSON;
...
foreach(GraphVertex item in result)
{
Console.WriteLine("Vertex ID: " + item.id);
Console.WriteLine("Vertex Label: " + item.label);
}
- Query - A library for building strongly-typed Gremlin queries.
- AzureCosmosDB - A library for creating Gremlin clients for Azure CosmosDB
- UnitTests - Unit tests for the project