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
3e12e57f
Commit
3e12e57f
authored
10 years ago
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TESTS] SQL with synonymes (KO)
parent
91a62f90
master
1.0.0_Rose_Bonbon
2.0.0_Red_Lemon
EuropressOld
agentsBasedModelling
anoe-gargantext-light
c24b-stable
c24b-stable-patch
c24b-testing-
dev
dev-graphExplorerJSON
diachronic
dynamic_css
gargantext-light
haskell
install
patch-1
patch-2
prod
prod-dev
remote
sankey
sankey-inegalites
set_model
simon-auth
simon-big-clean-up
simon-data-import
simon-dev
simon-experimental
simon-experimental-share
simon-gargantext-light
simon-pipenv
simon-rest-doc
simon-tasks
simon-testing
simon-unstable
simon-unstable-lists-fix
simon-unstable-refact-models
simon-wip
stable
stable-help
stable-imt
stable-imt-hal
stable-imt-link
stable-imt-merge
stable-imt-notebook
stable-notebook
stable-origin
stable-patch
stable-v3-imt
testing
testing-distri
testing-graph-growth
testing-graph-public
testing-imt
testing-jwt
testing-langParsing
testing-merge
testing-mine
testing-notebook
testing-share
tina
unstable
unstable-docker
unstable-newBdd
unstable-notebook
unstable-philoNotebook
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
cooc_simple_sum.sql
sql/cooc_simple_sum.sql
+1
-1
cooc_syno.sql
sql/cooc_syno.sql
+26
-0
No files found.
sql/cooc_simple_sum.sql
View file @
3e12e57f
SELECT
1
00
as
"NodeType Cooc"
,
x
.
ngram_id
,
y
.
ngram
_id
,
COUNT
(
*
)
AS
score
1
77
as
node_id
,
x
.
ngram_id
as
ngramX_id
,
y
.
ngram_id
as
ngramY
_id
,
COUNT
(
*
)
AS
score
FROM
node_node_ngram
AS
x
...
...
This diff is collapsed.
Click to expand it.
sql/cooc_syno.sql
0 → 100644
View file @
3e12e57f
-- TODO Add count for synonyms
SELECT
177
as
node_id
,
x
.
ngram_id
as
ngramX_id
,
y
.
ngram_id
as
ngramY_id
,
COUNT
(
*
)
AS
score
FROM
node_node_ngram
AS
x
INNER
JOIN
node_node_ngram
AS
y
ON
x
.
node_id
=
y
.
node_id
WHERE
x
.
id
IN
(
SELECT
id
FROM
node_node_ngram
WHERE
node_id
=
173
)
AND
y
.
id
IN
(
SELECT
id
FROM
node_node_ngram
WHERE
node_id
=
173
)
AND
x
.
ngram_id
<>
y
.
ngram_id
GROUP
BY
x
.
ngram_id
,
y
.
ngram_id
LIMIT
10
This diff is collapsed.
Click to expand it.
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