Minor updates to the consumer parameters examples

This commit is contained in:
Ana Loznianu 2022-05-17 13:09:19 +03:00
parent 68bdee4ede
commit e6c6e55185
1 changed files with 3 additions and 3 deletions

View File

@ -444,12 +444,12 @@ Example:
#### Consumer Parameters
Sometimes, the asset may need some input before downloading a dataset or running an algorithm.
Sometimes, the asset needs additional input data before downloading a dataset or running an algorithm.
Examples:
- The publisher needs to know the sampling interval before the buyer downloads it. Suppose the dataset URL is `https://example.com/mydata`. The publisher then defines a field called `sampling` and asks the buyer to enter a value. This parameter is added to the URL of the published dataset as query parameters: `https://example.com/mydata?sampling=10`.
- The publisher needs to know the sampling interval before the buyer downloads it. Suppose the dataset URL is `https://example.com/mydata`. The publisher defines a field called `sampling` and asks the buyer to enter a value. This parameter is then added to the URL of the published dataset as query parameters: `https://example.com/mydata?sampling=10`.
- An algorithm that needs to know how many iterations it should perform. In this case, the algorithm publisher defines a field called `iterations`. The buyer needs to enter a value for the `iterations` parameter. Later, this value is stored in a specific location in the Computer-to-Data pod for the algorithm to read and use it.
- An algorithm that needs to know the number of iterations it should perform. In this case, the algorithm publisher defines a field called `iterations`. The buyer needs to enter a value for the `iterations` parameter. Later, this value is stored in a specific location in the Computer-to-Data pod for the algorithm to read and use it.
It's an array of elements, each element object defines a field.
An element looks like: