Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
d5c9a908
Commit
d5c9a908
authored
Mar 24, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics sympathiques.
parent
c805ef8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
graph.py
gargantext/views/pages/graph.py
+3
-10
urls.py
gargantext/views/pages/urls.py
+2
-2
No files found.
gargantext/views/pages/
explorer
.py
→
gargantext/views/pages/
graph
.py
View file @
d5c9a908
...
...
@@ -9,7 +9,7 @@ from datetime import datetime
@
requires_auth
def
graph
(
request
,
project_id
,
corpus_id
):
def
explorer
(
request
,
project_id
,
corpus_id
):
'''
Graph explorer, also known as TinaWebJS, using SigmaJS.
Nodes are ngrams (from title or abstract or journal name.
...
...
@@ -18,14 +18,9 @@ def graph(request, project_id, corpus_id):
# we pass our corpus
corpus
=
cache
.
Node
[
corpus_id
]
# we pass our user_id
#user_id = corpus.user_id
# and the project just for project.id in corpusBannerTop
project
=
cache
.
Node
[
project_id
]
#miamlist_type_id = cache.NodeType['MiamList'].id
graphurl
=
"projects/"
+
str
(
project_id
)
+
"/corpora/"
+
str
(
corpus_id
)
+
"/node_link.json"
...
...
@@ -35,7 +30,8 @@ def graph(request, project_id, corpus_id):
request
=
request
,
context
=
{
'debug'
:
settings
.
DEBUG
,
# 'user' : user_id,
'request'
:
request
,
'user'
:
request
.
user
,
'date'
:
datetime
.
now
(),
'project'
:
project
,
'corpus'
:
corpus
,
...
...
@@ -45,6 +41,3 @@ def graph(request, project_id, corpus_id):
},
)
gargantext/views/pages/urls.py
View file @
d5c9a908
from
django.conf.urls
import
url
from
.
import
main
,
auth
from
.
import
projects
,
corpora
,
terms
,
explorer
from
.
import
projects
,
corpora
,
terms
,
graph
urlpatterns
=
[
...
...
@@ -30,6 +30,6 @@ urlpatterns = [
url
(
r'^projects/(\d+)/corpora/(\d+)/terms/?$'
,
terms
.
ngramtable
),
# graph explorer
url
(
r'^projects/(\d+)/corpora/(\d+)/graph/?$'
,
explorer
.
graph
),
url
(
r'^projects/(\d+)/corpora/(\d+)/graph/?$'
,
graph
.
explorer
),
]
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