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
bc71d908
Commit
bc71d908
authored
Dec 11, 2015
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TEST] Some SQL queries to test ngrams.
parent
2420d55f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
testNgrams.sql
init/sql/testNgrams.sql
+14
-0
testSynonym.sql
init/sql/testSynonym.sql
+12
-0
No files found.
init/sql/testNgrams.sql
0 → 100644
View file @
bc71d908
select
nn
.
ngram_id
from
node_node_ngram
as
nn
JOIN
node_node
as
n
on
nn
.
node_id
=
n
.
id
JOIN
node_ngram
as
ng
ON
ng
.
id
=
nn
.
ngram_id
JOIN
node_node_ngram
as
nng
ON
nng
.
ngram_id
=
nn
.
ngram_id
JOIN
node_node
as
nodeList
on
nodeList
.
id
=
nn
.
node_id
JOIN
node_nodetype
as
typ
on
typ
.
id
=
nodeList
.
type_id
WHERE
n
.
parent_id
=
1452569
AND
ng
.
terms
=
'moral support'
AND
typ
.
name
=
'MiamList'
GROUP
BY
nn
.
ngram_id
;
init/sql/testSynonym.sql
0 → 100644
View file @
bc71d908
select
*
from
node_nodengramngram
as
nnn
JOIN
node_node
as
n
on
nnn
.
node_id
=
n
.
id
JOIN
node_ngram
as
ng
ON
ng
.
id
=
nnn
.
ngramy_id
JOIN
node_node
as
nodeList
on
nodeList
.
id
=
nnn
.
node_id
JOIN
node_nodetype
as
typ
on
typ
.
id
=
nodeList
.
type_id
WHERE
n
.
parent_id
=
1452569
AND
ng
.
terms
=
'moral support'
AND
typ
.
name
=
'GroupList'
;
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