Skip to content

Commit 2352646

Browse files
committed
Improved woql select info
1 parent f8742d8 commit 2352646

File tree

1 file changed

+9
-0
lines changed
  • src/app/docs/woql-explanation

1 file changed

+9
-0
lines changed

src/app/docs/woql-explanation/page.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ Variables are locally scoped to be available across the WOQL query. They can be
155155

156156
This is useful for creating powerful higher order constructs. Make sure to clarify what variables are made available through such composable logic block and use unique and specific names for them so that the higher order functions do not conflict.
157157

158+
Example:
159+
160+
```javascript
161+
and(
162+
select("v:subject", triple("v:subject", "rdf:type", "v:type")),
163+
eq("v:type", "does-not-unify with v:type because not selected above")
164+
)
165+
```
166+
158167
### Unification
159168

160169
WOQL uses the formal-logical approach to variables known as unification borrowed from the Prolog engine that implements WOQL within TerminusDB.

0 commit comments

Comments
 (0)