Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General doc fixes #536

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docs/administration-guide/named-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This guide walks through configuring Gaffer to use Named Views and how to run them.

Named Views allow users to store a [View](../user-guide/query/gaffer-syntax/filtering.md)
Named Views allow users to store a [View](../user-guide/query/gaffer-syntax/filtering.md)
in the cache, this can then be called on in OperationChains or in NamedOperations.

The benefit of using Named Views is that it allows you to store lengthy or complex Views
Expand All @@ -18,7 +18,7 @@ For details on potential caches and how to configure them, see the [Stores Guide

Named Views are enabled by default. To disable this feature the [store property](../administration-guide/gaffer-stores/store-guide.md#all-general-store-properties) `gaffer.store.namedview.enabled` should be set to false.

There are [three operations](../reference/operations-guide/named.md#addnamedview) which manage Named Views.
There are [three operations](../reference/operations-guide/named.md#addnamedview) which manage Named Views.
These are `AddNamedView`, `GetAllNamedViews` and `DeleteNamedView`.

The examples below use the following graph:
Expand Down Expand Up @@ -70,7 +70,7 @@ graph LR

``` json
{
"class" : "AddNamedVieww",
"class" : "AddNamedView",
"name" : "exampleNamedView",
"description" : "Example Named View",
"view": {
Expand Down Expand Up @@ -100,7 +100,7 @@ graph LR
=== "Python"

``` python
g.AddNamedView(
g.AddNamedView(
view = g.View(
edges = [
g.ElementDefinition(
Expand All @@ -117,7 +117,7 @@ graph LR
)
]
),
overwrite_flag=True
overwrite_flag=True
)
```

Expand All @@ -139,7 +139,7 @@ graph LR

=== "JSON"

```json
```json
{
"class": "GetElements",
"input": [
Expand All @@ -149,7 +149,7 @@ graph LR
}
],
"view": {
"class": "NamedView",
"class": "NamedView",
"name": "exampleNamedView"
}
}
Expand All @@ -171,8 +171,8 @@ graph LR
```

!!! example "Delete a NamedView"
This removes the NamedView from the cache. Note that if you delete a Named View
any Operation Chains or Named Operations which reference it will fail.
This removes the NamedView from the cache. Note that if you delete a Named View
any Operation Chains or Named Operations which reference it will fail.

=== "Java"

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ hide:
| Term | Description |
| :---------------- | :----------------------------------- |
| Entity | An entity represents a point in a graph |
| Edge | An edge is a connection between two entities |
| Vertex | In Gaffer, a vertex is the id of an entity |
| Edge | An edge is a connection between two vertices |
| Vertex | In Gaffer, a vertex is the id of an entity. Note that a vertex can exist on an edge without an associated entity. Any querying will only show these vertices on their associated edges |
| Node | A node is what Gaffer calls an entity |
| Properties | A property is a key/value pair that stores data on both edges and entities |
| Element | The word is used to describe edges or entities |
Expand Down
8 changes: 4 additions & 4 deletions docs/reference/gremlin-guide/gaffer-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ Note that any options should be passed as a list or dictionary.
g.with_("operationOptions", {"gaffer.federatedstore.operation.graphIds": "graphA"}).V().to_list()
```

## GetAllElements Limit
## GetElements Limit

Key `getAllElementsLimit`
Key `getElementsLimit`

Limits the amount of elements returned if performing an unseeded query e.g. a
Limits the amount of elements returned if performing a query which returns a large amount of elements e.g. a
`GetAllElements` operation. This will override the default for the current
query, see the [admin guide](../../administration-guide/gaffer-deployment/gremlin.md#configuring-the-gafferpop-library)
for more detail on setting up defaults.

!!! example

```groovy
g.with("getAllElementsLimit", 100).V().toList()
g.with("getElementsLimit", 100).V().toList()
```

## Has Step Filter Stage
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/properties-guide/type.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Type Properties

The `TypeValue` ([Javadoc](https://gchq.github.io/Gaffer/uk/gov/gchq/gaffer/types/TypeValue.html)) and `TypeSubTypeValue` ([Javadoc]()) are special properties which are similar to `String`, but also store a secondary string ('type') or secondary and tertiary strings ('type' & 'subtype').
The `TypeValue` ([Javadoc](https://gchq.github.io/Gaffer/uk/gov/gchq/gaffer/types/TypeValue.html)) and `TypeSubTypeValue` ([Javadoc](https://gchq.github.io/Gaffer/uk/gov/gchq/gaffer/types/TypeSubTypeValue.html)) are special properties which are similar to `String`, but also store a secondary string ('type') or secondary and tertiary strings ('type' & 'subtype').

## Predicate Support

Expand Down
1 change: 1 addition & 0 deletions docs/user-guide/query/gremlin/gremlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,4 @@ a table of how different parts are mapped is as follows:
| Vertex | Vertex with default label of `id` |
| Entity | Vertex |
| Edge | Edge |
| Orphan Vertex | Vertex that exists only on an edge, has no associated entity |