Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 175
    • Issues 175
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #377

Closed
Open
Opened Jul 25, 2024 by mzheng@mzheng
  • Report abuse
  • New issue
Report abuse New issue

Grouping institutes terms at creation

I'm trying to automaticaly group institutes when a request for a corpus is made with HAL (for now).

For exemple, I can have this structure thanks to HAL's API (still need some work on the crawler):

Institut Mines-Télécom [Paris]
|_ IMT - MINES ALES
  |_ Laboratoire des Sciences des Risques
  ...
|_ IMT Atlantique
...

The structure inside GarganText should looks like this inside Institutes tab: image

To do this, I might need to add a field _hd_institutes_tree to HyperdataDocument and to do all the necessary changes with it.

Then in buildNgramsLists of src/Gargantext/Core/Text/List.hs I have to make buildNgramsInstList to specify how to build the list Institutes (instead of using buildNgramsOthersList). This is where I'm stuck, I don't understand where I sould make changes in order to group one institute to another one.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#377