Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
40e38102
Commit
40e38102
authored
Sep 10, 2019
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes
parent
d94169eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
15 deletions
+7
-15
SemanticLinking.py
...c-linking-microservice/app/initialdemo/SemanticLinking.py
+4
-12
input-handling.jpg
images/input-handling.jpg
+0
-0
consumer.py
tools/rabbit-mq-test/consumer.py
+3
-3
No files found.
data-hub/semantic-linking-microservice/app/initialdemo/SemanticLinking.py
View file @
40e38102
...
...
@@ -2,22 +2,14 @@ import networkx as nx
import
matplotlib.pyplot
as
plt
from
collections
import
Counter
import
HyperGraph
as
hg
import
pandas
as
pd
import
json
import
warnings
import
csv
import
community
import
time
import
mplleaflet
import
values
as
values
from
matplotlib
import
colors
# pip install networkx
# pip install matplotlib
# pip install pandas
# pip install community
# pip install mplleaflet
# pip install values
#
#
pip install pandas
#
#
pip install community
#
#
pip install mplleaflet
#
#
pip install values
class
SemanticLinking
:
...
...
images/input-handling.jpg
0 → 100644
View file @
40e38102
This diff is collapsed.
Click to expand it.
tools/rabbit-mq-test/consumer.py
View file @
40e38102
import
pika
EXCHANGE_NAME
=
'
rest-gateway
'
EXCHANGE_NAME
=
'
inhub
'
EXCHANGE_TYPE
=
'direct'
ROUTING_KEY
=
'
rest-gateway
'
ROUTING_KEY
=
'
trace-retrieval
'
connection
=
pika
.
BlockingConnection
(
pika
.
ConnectionParameters
(
'143.205.173.36'
,
30302
,
heartbeat
=
60
0
,
blocked_connection_timeout
=
30
0
))
connection
=
pika
.
BlockingConnection
(
pika
.
ConnectionParameters
(
'143.205.173.36'
,
30302
,
heartbeat
=
60
,
blocked_connection_timeout
=
3
0
))
channel
=
connection
.
channel
()
channel
.
exchange_declare
(
exchange
=
EXCHANGE_NAME
,
exchange_type
=
EXCHANGE_TYPE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment