Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
208ac140
Unverified
Commit
208ac140
authored
Jan 02, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fork hsparql to use structureContent
parent
c2dbcba7
Pipeline
#79
canceled with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
install
install
+1
-0
Isidore.hs
src/Gargantext/Text/Parsers/Isidore.hs
+2
-2
stack.yaml
stack.yaml
+1
-1
No files found.
install
View file @
208ac140
...
...
@@ -54,6 +54,7 @@ git clone https://github.com/np/servant-job.git
git clone https://github.com/np/patches-map
git clone https://gitlab.com/npouillard/patches-class.git
git clone https://github.com/delanoe/haskell-opaleye
git clone https://github.com/np/hsparql
cd
..
stack docker pull
...
...
src/Gargantext/Text/Parsers/Isidore.hs
View file @
208ac140
...
...
@@ -26,13 +26,13 @@ selectQueryRaw' uri q = getWith opts uri
&
header
"User-Agent"
.~
[
"gargantext-hsparql-client"
]
&
param
"query"
.~
[
Data
.
Text
.
pack
q
]
isidoreGet
::
Text
->
IO
ByteString
isidoreGet
::
Text
->
IO
(
Maybe
[[
BindingValue
]])
isidoreGet
q
=
do
let
s
=
createSelectQuery
$
simpleSelect
q
putStrLn
s
r
<-
selectQueryRaw'
route
s
putStrLn
$
show
$
r
^.
responseStatus
pure
$
r
^.
responseBody
pure
$
structureContent
$
r
^.
responseBody
-- res <- selectQuery route $ simpleSelect q
-- pure res
...
...
stack.yaml
View file @
208ac140
...
...
@@ -8,6 +8,7 @@ packages:
-
'
deps/patches-map'
-
'
deps/patches-class'
-
'
deps/haskell-opaleye'
-
'
deps/hsparql'
allow-newer
:
true
extra-deps
:
...
...
@@ -24,7 +25,6 @@ extra-deps:
-
duckling-0.1.3.0
-
full-text-search-0.2.1.4
-
fullstop-0.1.4
-
hsparql-0.3.6
# Sparql for ISIDORE database
-
hgal-2.0.0.2
-
rdf4h-3.1.1
-
located-base-0.1.1.1
...
...
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