Skip to content
Open
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
24 changes: 15 additions & 9 deletions docs/e2e-examples/movies.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ Open the `pipelines/ratings.yaml` file and delete the default content.
Then, add the following content:

```yaml
- implementation: nodestream.pipeline.extractors:FileExtractor
- implementation: nodestream.pipeline.extractors.files:FileExtractor
arguments:
globs:
- data/ratings.csv
sources:
- type: local
globs:
- data/ratings.csv
```

This will tell the pipeline to extract the data from the `ratings.csv` file.
Expand Down Expand Up @@ -137,10 +139,12 @@ Open the `pipelines/movies.yaml` file and delete the default content.
Then, add the following content:

```yaml
- implementation: nodestream.pipeline.extractors:FileExtractor
- implementation: nodestream.pipeline.extractors.files:FileExtractor
arguments:
globs:
- data/movies.csv
sources:
- type: local
globs:
- data/movies.csv
```

This will tell the pipeline to extract the data from the `movies.csv` file.
Expand Down Expand Up @@ -185,10 +189,12 @@ Open the `pipelines/tags.yaml` file and delete the default content.
Then, add the following content:

```yaml
- implementation: nodestream.pipeline.extractors:FileExtractor
- implementation: nodestream.pipeline.extractors.local:FileExtractor
argumenets:
globs:
- data/tags.csv
sources:
- type: local
globs:
- data/tags.csv
```

This will tell the pipeline to extract the data from the `tags.csv` file.
Expand Down
8 changes: 5 additions & 3 deletions docs/official-plugins/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ curl https://example.com/api/data.json -X GET --header "Accept: application/json
- O
ignore_stdout: true #Do not provide output from command to next step in pipeline.

- implementation: nodestream.pipeline.extractors:FileExtractor
- implementation: nodestream.pipeline.extractors.files:FileExtractor
arguments:
globs:
- data.json
sources:
- type: local
globs:
- data.json
```

This is roughly equivalent to the following shell command:
Expand Down
8 changes: 5 additions & 3 deletions docs/tutorial-basics/create-a-new-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ The second section is to interpret the data into nodes and relationships.
For now, leave the second section as it is and replace the first section with the following:

```yaml
- implementation: nodestream.pipeline.extractors:FileExtractor
- implementation: nodestream.pipeline.extractors.files:FileExtractor
arguments:
globs:
- data/*.csv
sources:
- type: local
globs:
- data/*.csv
```

This step uses the `FileExtractor` to load the data from the `data` directory in your project.
Expand Down
8 changes: 5 additions & 3 deletions docs/tutorials-advanced/extending-the-dsl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ Once the new file type is registered, it can be used in the DSL as a file extrac
The file extractors will automatically be aware of and use the new file type.

```yaml
- implementation: nodestream.pipeline.extractors:FileExtractor
- implementation: nodestream.pipeline.extractors.files:FileExtractor
arguments:
globs:
- data/*.tsv
sources:
- type: local
globs:
- data/*.tsv
```

## Creating an Interpretation
Expand Down
4 changes: 3 additions & 1 deletion docs/tutorials-intermediate/configuring-projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ For example, lets say in a live environment we want to pull data from an API, bu
annotations:
- live

- implementation: nodestream.pipeline.extractors:FileExtractor
- implementation: nodestream.pipeline.extractors.files:FileExtractor
arguments:
sources:
- type: local
globs:
- !env FILE_PATH
annotations:
Expand Down