Skip to content

Commit

Permalink
apply grammar suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
tb06904 committed Sep 19, 2023
1 parent 9e29a83 commit 5d04052
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/user-guide/apis/java-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ to utilise this form of the API.

## Querying a Graph

Using Java to Query a graph unlike the other APIs requires a reference to a
Using Java to query a graph unlike the other APIs requires a reference to a
`Graph` object that essentially represents a graph.

With the other APIs you would connect directly to a running instance via the
Expand Down
20 changes: 10 additions & 10 deletions docs/user-guide/query/gaffer-syntax/filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ graph LR
ID: 2"])
```

Now say the `weight` property could represent how much a `Person` contributed to
creating something, and so we wanted to find only significant contributions. To
do this we can apply a filter to act as a threshold to only get edges with a
`weight` more than a specific value.
Lets say the `weight` property represents how much a `Person` contributed to
creating something and that we wanted to only find the most significant
contributions. To do this we can apply a filter to act as a threshold to only
get edges with a `weight` more than a specific value.

First we use a simple query to get the node with ID `John` and any edges
associated with it. Then we can apply a filter to include only edges where the
Expand Down Expand Up @@ -150,10 +150,10 @@ associated with it. Then we can apply a filter to include only edges where the
graph.execute(operation, user);
```

To form relevant filters and queries its almost required that you are aware of
the graphs schema that is in use as this determines what properties and elements
you can reference in your queries. For an introduction and background on
Gaffer schemas [please see the guide](../../schema.md).
To form relevant filters and queries it is usually required that you know the
graph schema in use. The schema determines what properties and elements you can
reference in your queries and the general structure of the data in the graph.
For an introduction and background on Gaffer schemas [please see the guide](../../schema.md).

!!! tip
As you can see filtering is based around predicates which are similar to if
Expand Down Expand Up @@ -277,8 +277,8 @@ properties are returned.

## Transformation

Its possible to apply a transformation to the output of a query this gives you
an opportunity to manipulate the results into a more useful output.
It is possible to apply a transformation to the output of a query which then
gives you the opportunity to manipulate the results into a more useful output.

When a transform is applied the new results are saved into what is known as a
transient property. A transient property is just a property that is not
Expand Down

0 comments on commit 5d04052

Please sign in to comment.