inputlayer/docs/guides at main · inputlayer/inputlayer · GitHub
Skip to content

Latest commit

 

History

History

README.md

InputLayer User Guides

Guides from basics to advanced features.

Learning Path

Getting Started (15-30 minutes)

Guide Description Time
Quick Start Get InputLayer running and execute your first query 5 min
Installation Detailed installation options 10 min
First Program Your first InputLayer program with facts and rules 15 min

Core Concepts (30-60 minutes)

Guide Description Time
Core Concepts Data modeling, identity semantics, update patterns 20 min
REPL Guide Interactive usage with the REPL 15 min

Client SDKs

Guide Description Time
Python SDK Python OLM - define schemas, queries, rules, and migrations in pure Python 30 min

Advanced Features (60+ minutes)

Guide Description Time
Recursion Recursive rules and transitive closure 20 min
Troubleshooting Common errors and solutions Reference

Quick Examples

Hello World

// Add some facts
+person("alice")
+person("bob")

// Query all persons
?person(X)

Simple Rule

// Facts
+parent("alice", "bob")
+parent("bob", "charlie")

// Rule: grandparent relationship
+grandparent(X, Z) <- parent(X, Y), parent(Y, Z)

// Query
?grandparent(X, Y)

Aggregation

+score("alice", 95)
+score("bob", 87)
+score("charlie", 92)

// Average score
?avg<S> <- score(_, S)

What's Next?

After completing the guides:

  1. Reference - Quick lookup for commands and functions
  2. Specification - Authoritative language specification
  3. Internals - For contributors

Need Help?