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
5df70777
Commit
5df70777
authored
Jun 11, 2020
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added basic repository to semantic-linking
parent
fa778cbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
3 deletions
+54
-3
repository.py
...ta-hub/semantic-linking-microservice/app/db/repository.py
+17
-0
requirements.txt
...ta-hub/semantic-linking-microservice/app/requirements.txt
+34
-3
debug.py
src/data-hub/semantic-linking-microservice/app/rest/debug.py
+3
-0
No files found.
src/data-hub/semantic-linking-microservice/app/db/repository.py
0 → 100644
View file @
5df70777
import
pymongo
import
network_constants
as
netconst
from
database.MongoRepositoryBase
import
MongoRepositoryBase
import
json
from
typing
import
List
class
Repository
(
MongoRepositoryBase
):
'''This is a repository for MongoDb.'''
def
__init__
(
self
):
super
()
.
__init__
(
netconst
.
SEMANTIC_LINKING_DB_HOSTNAME
,
netconst
.
SEMANTIC_LINKING_DB_PORT
,
'semanticLinkingDb'
)
self
.
_layer_collection
=
'layer'
src/data-hub/semantic-linking-microservice/app/requirements.txt
View file @
5df70777
flask
connexion[swagger-ui]
pika
astroid==2.4.2
attrs==19.3.0
certifi==2020.4.5.2
chardet==3.0.4
click==7.1.2
clickclick==1.2.2
colorama==0.4.3
connexion==2.7.0
Flask==1.1.2
idna==2.9
importlib-metadata==1.6.1
inflection==0.5.0
isort==4.3.21
itsdangerous==1.1.0
Jinja2==2.11.2
jsonschema==3.2.0
lazy-object-proxy==1.4.3
MarkupSafe==1.1.1
mccabe==0.6.1
openapi-spec-validator==0.2.8
pika==1.1.0
pylint==2.5.3
pymongo==3.10.1
pyrsistent==0.16.0
PyYAML==5.3.1
requests==2.23.0
six==1.15.0
swagger-ui-bundle==0.0.6
toml==0.10.1
typed-ast==1.4.1
urllib3==1.25.9
Werkzeug==1.0.1
wrapt==1.12.1
zipp==3.1.0
src/data-hub/semantic-linking-microservice/app/rest/debug.py
View file @
5df70777
from
flask
import
request
from
db.repository
import
Repository
repo
=
Repository
()
def
echo
():
return
request
.
json
...
...
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