Skip to content
Snippets Groups Projects
Commit bd69eaad authored by Rute C. Sofia's avatar Rute C. Sofia :football:
Browse files

Update 19 files

- /stop_tsmatch.sh
- /start_tsmatch_locally.sh
- /start_tsmatch_without_esi.sh
- /ipchange.sh
- /tsmatch_engine/data_aggregation/src/handler/ObservationEventHandler.py
- /tsmatch_engine/data_aggregation/src/handler/ServiceRequestEventHandler.py
- /tsmatch_engine/data_aggregation/src/repository/BaseRepository.py
- /tsmatch_engine/data_aggregation/src/repository/OntologyRepository.py
- /tsmatch_engine/data_aggregation/src/repository/SensorRepository.py
- /tsmatch_engine/data_aggregation/src/repository/ServiceRequestRepository.py
- /tsmatch_engine/data_aggregation/src/service/MQTTClient.py
- /tsmatch_engine/data_aggregation/src/service/ServiceRequest.py
- /tsmatch_engine/data_aggregation/src/main.py
- /tsmatch_engine/data_aggregation/.env
- /tsmatch_engine/data_aggregation/start_data_aggregation.sh
- /tsmatch_engine/data_aggregation/stop_data_aggregation.sh
- /tsmatch_engine/semantic_matchmaking/.env
- /tsmatch_engine/semantic_matchmaking/start_semantic_matchmaking.sh
- /tsmatch_engine/semantic_matchmaking/stop_semantic_matchmaking.sh
parent 7f1c1cde
No related branches found
No related tags found
No related merge requests found
Pipeline #44206 failed
Showing
with 256 additions and 33 deletions
#!/bin/sh
# MIT License
#
# Copyright (c) 2023 fortiss GmbH
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# author Mert Sarac
# author Rute C. Sofia
# @version 3.0
#ask for new ip
echo "enter the old ip adress which need to change"
read OLD_IP
......
#!/bin/bash
# MIT License
#
# Copyright (c) 2022 fortiss GmbH
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# author Erkan Karabulut
# author Rute C. Sofia
# @version 3.0
# stop containers if they are already running
chmod +x stop_tsmatch.sh
./stop_tsmatch.sh
......
#!/bin/bash
# MIT License
#
# Copyright (c) 2022 fortiss GmbH
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# author Erkan Karabulut
# author Rute C. Sofia
# @version 3.0
# stop containers if they are already running
chmod +x stop_tsmatch.sh
./stop_tsmatch.sh
......
#!/bin/bash
#!/bin/sh
# MIT License
#
# Copyright (c) 2022 fortiss GmbH
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# author Erkan Karabulut
# author Rute C. Sofia
# @version 3.0
echo -e "$(date -u): Stopping TSMatch containers...."
# stop broker container if it is running
......
# Neo4j
NEO4J_HOST=10.0.33.39
NEO4J_HOST=xxxx
NEO4J_PORT=7687
NEO4J_DATABASE=neo4j
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=tsmatchdemouser
NEO4J_DATABASE=db
NEO4J_USERNAME=user
NEO4J_PASSWORD=pass
# MQTT Broker
BROKER_HOST=10.0.33.39
BROKER_HOST=xxxx
BROKER_PORT=1883
BROKER_USERNAME=tsmatchdemouser
BROKER_PASSWORD=tsmatchdemouser
BROKER_USERNAME=user
BROKER_PASSWORD=pass
# MQTT Topics
TOPIC_DISCOVERY=fortiss-org.TSMATCH.NDATA.DISCOVERY
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
Handle observation received events
"""
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
A class that is dedicated to handling events related with IoT service requests
"""
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
Data aggregation module entry point
"""
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
Wraps common database operations, e.g. connect and disconnect
"""
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
Ontology related db operations
"""
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
Sensor related db operations
"""
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
Wraps common database operations related with service requests
"""
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
MQTT Client operations
"""
......
"""
Copyright (C) 2022 fortiss GmbH
@author Erkan Karabulut – karabulut@fortiss.org
@author Erkan Karabulut
@version 1.0
Keeps track of service requests and matching to sensors
"""
......
#!/bin/sh
# Copyright (C) 2022 fortiss GmbH
# author Erkan Karabulut – {@link "karabulut@fortiss.org"}
# MIT License
#
# Copyright (c) 2022 fortiss GmbH
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# author Erkan Karabulut
# author Rute C. Sofia
# @version 1.0
# start data aggregation module
......
#!/bin/bash
# Copyright (C) 2022 fortiss GmbH
# author Erkan Karabulut – {@link "karabulut@fortiss.org"}
# MIT License
#
# Copyright (c) 2022 fortiss GmbH
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# author Erkan Karabulut
# author Rute C. Sofia
# @version 1.0
# start data aggregation m
# stop data aggregation module
# stop data_aggregation container if it is running
......
# Neo4j
NEO4J_HOST=10.0.33.39
NEO4J_HOST=xxxx
NEO4J_PORT=7687
NEO4J_DATABASE=neo4j
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=tsmatchdemouser
NEO4J_DATABASE=db
NEO4J_USERNAME=user
NEO4J_PASSWORD=pass
# MQTT Broker
BROKER_HOST=10.0.33.39
BROKER_HOST=xxxx
BROKER_PORT=1883
BROKER_USERNAME=tsmatchdemouser
BROKER_PASSWORD=tsmatchdemouser
BROKER_USERNAME=user
BROKER_PASSWORD=pass
# MQTT Topics
TOPIC_DISCOVERY=fortiss-org.TSMATCH.NDATA.DISCOVERY
......
#!/bin/sh
# Copyright (C) 2022 fortiss GmbH
# author Erkan Karabulut – {@link "karabulut@fortiss.org"}
# @version 1.0
# MIT License
#
# Copyright (c) 2022 fortiss GmbH
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# author Erkan Karabulut
# author Rute C. Sofia
# @version 3.0
# stop semantic matchmaking module
docker build . -t semantic_matchmaking:1.0
......
#!/bin/bash
# Copyright (C) 2022 fortiss GmbH
# author Erkan Karabulut – {@link "karabulut@fortiss.org"}
# @version 1.0
# MIT License
#
# Copyright (c) 2022 fortiss GmbH
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# SPDX-License-Identifier: MIT
#
# Contributors:
# author Erkan Karabulut
# author Rute C. Sofia
# @version 3.0
# stop semantic matchmaking module
# stop semantic_matchmaking container if it is running
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment