Skip to content

Commit 216e3a2

Browse files
committed
Fix correct build
1 parent cc88455 commit 216e3a2

File tree

1 file changed

+14
-8
lines changed
  • src/app/docs/terminusdb-internals

1 file changed

+14
-8
lines changed
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
# TerminusDB Internals
1+
---
2+
nextjs:
3+
metadata:
4+
title: TerminusDB Internals
5+
description: >-
6+
Examples to use the internals of TerminusDB from the command line.
7+
media: []
8+
---
9+
210

311
## TerminusDB Server
412

513
### Command line Prolog query interface
614

7-
The TerminusDB server provides a command line datalog query interface. It does not fully follow the WOQL syntax, but is aligned to the internals of TerminusDB and thus offers a more direct way to query the database.
15+
The TerminusDB server provides a command line datalog query interface. It has a distinct syntax that is similar to the WOQL syntax, and more aligned to the internals of TerminusDB. It offers a more direct way to query the database.
816

917
The query interface is available as `./terminusdb query`. Variables are dynamically bound using the `v/1` predicate, see below. To get the responses as JSON, use the `--json` flag.
1018

11-
```
19+
```bash
1220
./terminusdb query admin/sandbox/local/branch/main --json 't(v(a),v(b),v(c))'
1321
```
1422

1523
### Start in interactive mode
24+
1625
To start the server in prolog interactive mode, use the `serve --interactive` flag. It will start the server on port 6363 and it enables runtime introspection and to change behaviour of the runtime engine. To be able to run commands, you need to initialize the environment and to load a specific database to operate on. This is beyond the scope of this tutorial.
1726

18-
```
27+
```bash
1928
./terminusdb serve --interactive
20-
```
21-
22-
## Running queries
23-
29+
```

0 commit comments

Comments
 (0)