Skip to content

Commit 5ad0784

Browse files
Neelterminusdbgithub-actions[bot]
authored andcommitted
Apply docs changes
1 parent 544ffa9 commit 5ad0784

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/api/woql.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Logical conjunction of the contained queries - all queries must match or the ent
7676
//a start_station Start, and that start_station is labeled Start_Label
7777
let [Journey, Start, Start_Label] = vars("Journey", "Start", "Start_Label")
7878
WOQL.and(
79-
WOQL.triple(Journey, "type", "scm:Journey"),
79+
WOQL.triple(Journey, "rdf:type", "@schema:Journey"),
8080
WOQL.triple(Journey, "start_station", Start),
8181
WOQL.triple(Start, "label", Start_Label))
8282
```
@@ -195,7 +195,7 @@ Specifies the graph resource to write the contained query into
195195
**Example**
196196
```javascript
197197
//Subq is an argument or a chained query
198-
using("admin/minecraft").into("instance/main").add_triple("a", "type", "scm:X")
198+
using("admin/minecraft").into("instance/main").add_triple("a", "rdf:type", "@schema:X")
199199
//writes a single tripe (doc:a, rdf:type, scm:X) into the main instance graph
200200
```
201201

@@ -453,8 +453,8 @@ Deletes a single triple from the graph [Subject, Predicate, Object, Graph]
453453

454454
**Example**
455455
```javascript
456-
remove the class Person from the schema/main graph
457-
WOQL.delete_quad("Person", "type", "owl:Class", "schema/main")
456+
remove the class Person from the schema graph
457+
WOQL.delete_quad("Person", "rdf:type", "sys:Class", "schema")
458458
```
459459

460460
## add_triple
@@ -1051,7 +1051,7 @@ Creates a count of the results of the query
10511051
**Example**
10521052
```javascript
10531053
let [count, Person] = vars("count", "Person")
1054-
WOQL.count(count).triple(Person, "type", "scm:Person")
1054+
WOQL.count(count).triple(Person, "rdf:type", "@schema:Person")
10551055
```
10561056

10571057
## typecast
@@ -1261,7 +1261,7 @@ optionally into the specified graph
12611261
**Example**
12621262
```javascript
12631263
insert("mydoc", "MyType")
1264-
//equivalent to add_triple("mydoc", "type", "MyType")
1264+
//equivalent to add_triple("mydoc", "rdf:type", "@schema:MyType")
12651265
```
12661266

12671267
## graph

0 commit comments

Comments
 (0)