├── .github
└── workflows
│ └── ci.yml
├── .gitignore
├── LICENSE
├── README.md
└── services
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 |
2 | name: "CI"
3 | on:
4 | push:
5 | branches:
6 | - master
7 | - NGSI-v2
8 | - NGSI-LD
9 | pull_request:
10 | branches:
11 | - master
12 | - NGSI-v2
13 | - NGSI-LD
14 | workflow_dispatch:
15 |
16 | jobs:
17 | test-modules:
18 | name: Test Script
19 | runs-on: ubuntu-latest
20 | timeout-minutes: 10
21 | steps:
22 | - uses: actions/checkout@master
23 | with:
24 | persist-credentials: false
25 | fetch-depth: 0
26 | submodules: recursive
27 | - name: Build Images
28 | run: |
29 | ./services create || true
30 | - name: Run Script
31 | run: |
32 | ./services start test && ./services stop test
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | *~
3 | .fuse_hidden*
4 | .directory
5 | .Trash-*
6 | .nfs*
7 | *.DS_Store
8 | .AppleDouble
9 | .LSOverride
10 | Icon
11 | ._*
12 | .DocumentRevisions-V100
13 | .fseventsd
14 | .Spotlight-V100
15 | .TemporaryItems
16 | .Trashes
17 | .VolumeIcon.icns
18 | .com.apple.timemachine.donotpresent
19 | .AppleDB
20 | .AppleDesktop
21 | Network Trash Folder
22 | Temporary Items
23 | .apdisk
24 | logs
25 | *.log
26 | npm-debug.log*
27 | yarn-debug.log*
28 | yarn-error.log*
29 | pids
30 | *.pid
31 | *.seed
32 | *.pid.lock
33 | node_modules/
34 | jspm_packages/
35 | .npm
36 | .eslintcache
37 | *.tgz
38 | .next
39 |
40 | cosmos-examples/target
41 | cosmos-examples/.idea
42 | cosmos-examples/orion.flink.connector-*.jar
43 | /.idea
44 | *.iml
45 | stdout.log
46 | stderr.log
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 | MIT License
3 |
4 | Copyright (c) 2019-2023 FIWARE Foundation e.V.
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://www.fiware.org/developers)
2 |
3 | [](https://github.com/FIWARE/catalogue/blob/master/core/README.md)
4 | [](https://opensource.org/licenses/MIT)
5 | [](https://stackoverflow.com/questions/tagged/fiware)
6 |
7 | These tutorials are an introduction to the [FIWARE Cosmos Orion Flink Connector](http://fiware-cosmos-flink.rtfd.io), which
8 | facilitates Big Data analysis of context data, through an integration with [Apache Flink](https://flink.apache.org/),
9 | one of the most popular Big Data platforms. Apache Flink is a framework and distributed processing engine for stateful
10 | computations both over unbounded and bounded data streams. Flink has been designed to run in all common cluster
11 | environments, perform computations at in-memory speed and at any scale.
12 |
13 | The tutorial uses [cUrl](https://ec.haxx.se/) commands throughout, but is also available as
14 | [Postman documentation](https://www.postman.com/downloads/)
15 |
16 | # Start-Up
17 |
18 | ## NGSI-v2 Smart Supermarket
19 |
20 | **NGSI-v2** offers JSON based interoperability used in individual Smart Systems. To run this tutorial with **NGSI-v2**, use the `NGSI-v2` branch.
21 |
22 | ```console
23 | git clone https://github.com/FIWARE/tutorials.Big-Data-Flink.git
24 | cd tutorials.Big-Data-Flink
25 | git checkout NGSI-v2
26 |
27 | ./services create
28 | ./services start
29 | ```
30 |
31 | | [](https://fiware-ges.github.io/orion/api/v2/stable/) | :books: [Documentation](https://github.com/FIWARE/tutorials.Big-Data-Flink/tree/NGSI-v2) |
[Postman Collection](https://fiware.github.io/tutorials.Big-Data-Flink/) |  |
32 | | --- | --- | --- | --- |
33 |
34 | ## NGSI-LD Smart Farm
35 |
36 | **NGSI-LD** offers JSON-LD based interoperability used for Federations and Data Spaces. To run this tutorial with **NGSI-LD**, use the `NGSI-LD` branch.
37 |
38 | ```console
39 | git clone https://github.com/FIWARE/tutorials.Big-Data-Flink.git
40 | cd tutorials.Big-Data-Flink
41 | git checkout NGSI-LD
42 |
43 | ./services create
44 | ./services start
45 | ```
46 |
47 | | [](https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.08.01_60/gs_cim009v010801p.pdf) | :books: [Documentation](https://github.com/FIWARE/tutorials.Big-Data-Flink/tree/NGSI-LD) |
[Postman Collection](https://fiware.github.io/tutorials.Big-Data-Flink/ngsi-ld.html) |  |
48 | | --- | --- | --- | --- |
49 |
50 |
51 | ---
52 |
53 | ## License
54 |
55 | [MIT](LICENSE) © 2020-2024 FIWARE Foundation e.V.
56 |
--------------------------------------------------------------------------------
/services:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Command Line Interface to start all services associated with the Tutorial
4 | #
5 |
6 | set -e
7 |
8 | echo -e "Checkout the \033[1;36mNGSI-v2\033[0m branch of this repository to run the Smart Supermarket tutorial.\n"
9 | echo -e "Checkout the \033[1;31mNGSI-LD\033[0m branch of this repository to run the Smart Farm tutorial.\n"
10 |
--------------------------------------------------------------------------------