
Step 1 — Define your schema
Install the SDK:
dotnet add package Curiosity.Library # C#
pip install curiosity-library # Python — same concepts, same steps
Declare your entity types and edge names:
[Node] public class Customer
{
[Key] public string Id { get; set; }
[Property] public string Name { get; set; }
}
[Node] public class Ticket
{
[Key] public string Id { get; set; }
[Property] public string Subject { get; set; }
[Property] public string Body { get; set; }
[Timestamp] public DateTimeOffset CreatedAt { get; set; }
}
public static class Edges
{
public const string HasTicket = nameof(HasTicket); // Customer → Ticket
public const string TicketOf = nameof(TicketOf); // Ticket → Customer (reverse)
}
Schema registration is idempotent — safe to run on every startup.