Skip to content

Commit

Permalink
Update simplified-syntax.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode authored Dec 27, 2023
1 parent 7505dcd commit 64f077a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/workflows/explanations/simplified-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,21 @@ The `barnard59-core` package already defines the `createReadStream` operation in
Hence, we can inline the call to such a well-known operation:

```turtle
@base <http://barnard59.zazuko.com/operations/core/> .
@prefix fs: <http://barnard59.zazuko.com/operations/core/fs/> .
<#pipeline> a p:Pipeline ;
p:steps [
p:stepList (
[ <fs/createReadStream> ( "input.txt" ) ]
[ fs:createReadStream ( "input.txt" ) ]
<#doSomethingElse>
)
] .
```

As you can see, an step declared in simplified syntax is a node with a single predicate which is the operation's identifier.
Arguments are passed as usual. As a list, if the operation uses positional parameters, or key/value pairs, if the operation has named parameters.
See [this page](./pipeline) for more details.

Other examples of simplified syntax are in the [getting started](../tutorial/first-pipeline) tutorial.

Each barnard59 package listed in the [operations](./operations) page has a `manifest.ttl` file with the available operations.
Expand Down

0 comments on commit 64f077a

Please sign in to comment.