Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg authored Mar 30, 2024
1 parent 427a9e8 commit 938d429
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,21 @@ You can [try the language](https://jamesg.blog/kgl) on a knowledge graph calcula

```
{ coffee } # Query a single item
{ coffee -> is } # Query a relationship of an item
{ coffee -> is }! # Show all second degree connections to the results from the query { coffee -> is }
{ coffee }? # Query if { coffee } returns a value
{ coffee }# # State the number of edges attached to the node
{ coffee } <-> { taylor swift } # Find the shortest connecting path between "coffee" and "taylor swift"
{ coffee -> isMadeBy ("Company" = "Hasbean") } # Find all coffees made by the company Hasbean
{ folklore } + { evermore } # Combine the results of two queries
{ taylorSwift | folklore } # Query the "folklore" node in the "taylorSwift" graph (the default graph is called "default" and is implicit)
```

Expand Down

0 comments on commit 938d429

Please sign in to comment.