Skip to content

Commit c124872

Browse files
authored
Merge pull request #78 from palimarrao/edit_bql_docs
Changes to CONSTRUCT docs.
2 parents 8f86372 + 67b6839 commit c124872

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

docs/bql.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ with the driver implementation.
406406

407407
## Building new facts out of existing facts in graphs
408408

409-
Some cases you want to create new facts--insert new triples---into a graph or
410-
graphs based on the already existing facts. Constructing new facts requires
409+
In some cases you want to create new facts--insert new triples---into a graph or
410+
graphs based on already existing facts. Constructing new facts requires
411411
two steps: (1) querying for the information that is going to be used to
412412
create new facts, and (2) how those new facts are going to be created. An
413413
illustrative example is:
@@ -423,12 +423,12 @@ illustrative example is:
423423
};
424424
```
425425

426-
The above statement would copy all facts from graph `?src` to graph `?dst`.
426+
The above statement would copy all facts from graph `?src` to graph `?dest`.
427427
The where clause will bind to all available predicates. Each binding will
428-
then be used on the construct part to create the new triples.
428+
then be used in the construct part to create the new triples.
429429

430-
A more elaborated example would be to create the a new fact `grandparent` into
431-
the destination graphs by properly extracting graph patters via the where
430+
A more elaborate example would be to create a new fact `grandparent` into
431+
the destination graphs by properly extracting graph patterns via the where
432432
clause.
433433

434434
```
@@ -447,9 +447,9 @@ The above statement would add into graph `?dest` one triple for each binding
447447
of `?ancestor` and `?grandchildren` found in the `?src` graph.
448448

449449
The `CONSTRUCT` statement supports using multiple graphs for `INTO` and `FROM`
450-
clauses. All binding froms all graphs in the `FROM` clause are going to be
451-
gathered together. The new facts will be insert in all the indicated graphs
452-
in the `INTO` list.
450+
clauses. All bindings from all graphs in the `FROM` clause are going to be
451+
gathered together. The new facts will be inserted into all the graphs
452+
indicated in the `INTO` list.
453453

454454
Also, you can create multiple new facts based on the bindings.
455455

@@ -468,7 +468,7 @@ Also, you can create multiple new facts based on the bindings.
468468

469469
Sometimes, inserting individual triples is not enough to express some facts.
470470
Some concepts require reification to be able to be expressed. `CONSTRUCT`
471-
support reification in two different flavors.
471+
supports reification in two different flavors.
472472

473473
```
474474
CONSTRUCT {
@@ -487,10 +487,10 @@ support reification in two different flavors.
487487

488488
This query would create only a new reified fact if both family members
489489
live in the exact same city. Please note the `;` syntax. All partial
490-
statements after it would be attached to the reified statement.
490+
statements after it will be attached to the reified statement.
491491

492-
Another way to express the same fact is to used the explicit blank note
493-
notation. `CONSTRUCT` supports
492+
Another way to express the same fact is to use the explicit blank node
493+
notation. `CONSTRUCT` supports the following.
494494

495495
```
496496
CONSTRUCT {
@@ -510,10 +510,10 @@ notation. `CONSTRUCT` supports
510510
};
511511
```
512512

513-
The above query is equivalent to the above one, but it explicitly does the
513+
The above query is equivalent to the query above it, but it explicitly does the
514514
reification by using `_:v`, which express a unique blank node linking the
515-
reification together. `CONSTRUCT` clause supports creating an arbitrary
515+
reification together. The `CONSTRUCT` clause supports creating an arbitrary
516516
number of blank nodes. The syntax is always the same, they all start with
517-
the prefix `_:` followed by a logical ID. On insertion of each new fact
517+
the prefix `_:` followed by a logical ID. On insertion of each new fact,
518518
BQL guarantees a new unique blank node will be generated by each of them.
519519
Example of multiple blank nodes generated at once are `_:v0`, `_:v1`, etc.

0 commit comments

Comments
 (0)