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
06f55400
Commit
06f55400
authored
Sep 08, 2017
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] removing hard path in code.
parent
57bfb398
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bool2sparql.py
gargantext/util/crawlers/sparql/bool2sparql.py
+2
-1
No files found.
gargantext/util/crawlers/sparql/bool2sparql.py
View file @
06f55400
...
...
@@ -2,6 +2,7 @@
import
subprocess
import
re
from
.sparql
import
Service
from
gargantext.settings
import
BOOL_TOOLS_PATH
#from sparql import Service
def
bool2sparql
(
rawQuery
,
count
=
False
,
offset
=
None
,
limit
=
None
):
...
...
@@ -12,7 +13,7 @@ def bool2sparql(rawQuery, count=False, offset=None, limit=None):
See: https://github.com/delanoe/bool2sparql
"""
query
=
re
.
sub
(
"
\"
"
,
"
\'
"
,
rawQuery
)
bashCommand
=
[
"/srv/gargantext/gargantext/util/crawlers/sparql
/bool2sparql-exe"
,
"-q"
,
query
]
bashCommand
=
[
BOOL_TOOLS_PATH
+
"
/bool2sparql-exe"
,
"-q"
,
query
]
if
count
is
True
:
bashCommand
.
append
(
"-c"
)
...
...
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