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
b08e6606
Commit
b08e6606
authored
Oct 07, 2019
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/discovery-input' into feature/semantic-linking-refactoring
parents
54c8a12d
2dcda56b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
0 deletions
+61
-0
swagger.yml
...hub/semantic-linking-microservice/app/configs/swagger.yml
+36
-0
NodeInfo.py
...semantic-linking-microservice/app/initialdemo/NodeInfo.py
+17
-0
graphinfo.py
data-hub/semantic-linking-microservice/app/rest/graphinfo.py
+8
-0
No files found.
data-hub/semantic-linking-microservice/app/configs/swagger.yml
View file @
b08e6606
...
...
@@ -28,3 +28,39 @@ paths:
responses
:
200
:
description
:
"
Successful
echo
of
request
data"
/graphinfo
:
get
:
operationId
:
"
rest.graphinfo.get"
tags
:
-
"
GraphInfo"
summary
:
"
Get
info
about
clustered
nodes"
description
:
"
Returns
multiple
metrics
for
all
nodes
created
by
analyzing
and
clustering
the
blockchain
traces"
parameters
:
[]
responses
:
200
:
description
:
"
Successful
operation"
schema
:
$ref
:
"
#/definitions/NodeInfo"
definitions
:
NodeInfo
:
type
:
"
object"
properties
:
label
:
type
:
string
centrality
:
type
:
number
adjacencies
:
type
:
integer
degree
:
type
:
number
betweenness
:
type
:
object
properties
:
to_node
:
type
:
integer
value
:
type
:
number
betweenness_centrality
:
type
:
number
\ No newline at end of file
data-hub/semantic-linking-microservice/app/initialdemo/NodeInfo.py
0 → 100644
View file @
b08e6606
class
NodeInfo
:
'''Contains information about the individual nodes in the generated graph'''
label
=
None
centrality
=
None
adjacencies
=
None
degree
=
None
betweenness
=
None
betweenness_centrality
=
None
def
__init__
(
self
):
self
.
label
=
'Node123'
self
.
centrality
=
0
self
.
adjacencies
=
0
self
.
degree
=
0
self
.
betweenness
=
None
self
.
betweenness_centrality
=
0
data-hub/semantic-linking-microservice/app/rest/graphinfo.py
0 → 100644
View file @
b08e6606
from
flask
import
request
,
Response
from
initialdemo.NodeInfo
import
NodeInfo
import
pickle
as
json
def
get
():
# TODO return real graph infos
ni
=
NodeInfo
()
return
[
ni
.
__dict__
]
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