-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a3c21e
commit 1fb33b6
Showing
37 changed files
with
1,512 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
## ARLAS Collections | ||
|
||
ARLAS collection are built on top on ES index. They describe yhe basic data structure for visualization and handle data access policy. | ||
|
||
`arlas_cli` provide tools to manage the ARLAS collections with the `collections` command. | ||
|
||
**List collections management commands** | ||
|
||
<!-- termynal --> | ||
```shell | ||
> !!!execute arlas_cli collections --help | ||
``` | ||
|
||
## create | ||
|
||
The ARLAS Collection is linked to an index or even an index pattern. | ||
|
||
The command line options let you specify how the index should be used by the collection. | ||
|
||
<!-- termynal --> | ||
```shell | ||
> !!!execute arlas_cli collections --config local create --help | ||
``` | ||
|
||
!!! note "Collection visibility" | ||
|
||
The visibility options (`--public`, `--owner` and `--orgs`) allow you to choose who can access the collection. | ||
|
||
!!! warning "--owner" | ||
|
||
It is mandatory to associate an organisation to a collection. | ||
|
||
Example: | ||
|
||
`--owner your.organisation.com` | ||
|
||
By default, the organisation referenced in your `config` is used as owner | ||
|
||
### Create an ARLAS collection | ||
|
||
The collection has to reference an ES index available with the [arlas_cli conf](confs.md#configurations). | ||
|
||
The index option set the targeted index:`--index index_name` | ||
|
||
!!! tip "Index pattern" | ||
|
||
The collection can target an index pattern. | ||
Instead of an index name, the target is an expression using `*` to reference multiple ES indices. | ||
|
||
Example: | ||
|
||
`--index index_name_prefix*` | ||
|
||
All the indices have to share exactly the same data mapping. | ||
|
||
The data contained in all referenced indices are then explorable together in arlas. | ||
|
||
|
||
The collection also describe a basic structure for spatio-temporel datasets: | ||
|
||
- **ID path**: A data field containing unique element identifier. `--id-path unique_id_field` | ||
- **Centroid path**: A data field containing a point geometry used for aggregations `--centroid-path point_geom_field` | ||
- **Geometry path**: A data field containing a geometry representing the element `--geometry-path element_geom_field` | ||
- **Date path**: A data field containing the date associated to each element `--date-path date_field` | ||
|
||
!!! tip "Pretty name" | ||
|
||
A pretty name for the collection can be set at the creation with the `display-name` option | ||
|
||
Example: | ||
|
||
`--display-name "Pretty Collection Name"` | ||
|
||
|
||
To create the collection, run the following command: | ||
|
||
<!-- termynal --> | ||
```shell | ||
> arlas_cli collections \ | ||
--config local \ | ||
collection_name \ | ||
--index index_name \ | ||
--id-path unique_id_field \ | ||
--centroid-path point_geom_field \ | ||
--geometry-path element_geom_field \ | ||
--date-path date_field \ | ||
--display-name "Pretty Collection Name" | ||
``` | ||
|
||
## name | ||
|
||
<!-- termynal --> | ||
```shell | ||
> !!!execute arlas_cli collections --config local create --help | ||
``` | ||
|
||
### Set a pretty name for the collection | ||
|
||
## set_alias | ||
|
||
### Set a pretty name for a data field | ||
|
||
## list | ||
|
||
### List available collections | ||
|
||
## describe | ||
|
||
This command line provides a description of the collection structure (fields) and of its metadata. | ||
|
||
<!-- termynal --> | ||
```shell | ||
> !!!execute arlas_cli collections --config local describe --help | ||
``` | ||
### Describe a collection | ||
|
||
## count | ||
|
||
### Count the number of element within a collection | ||
|
||
## sample | ||
|
||
### Display a sample of the collection data | ||
|
||
## private | ||
|
||
### Set the collection as private | ||
|
||
## public | ||
|
||
### Set the collection as public | ||
|
||
### Define visibility policy for collections | ||
|
||
## share | ||
|
||
## unshare | ||
|
||
### Share collections between organisations | ||
|
||
## delete | ||
|
||
### Delete an organisation |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.