Skip to content

ChildMindInstitute/FOuLARD

 
 

Repository files navigation

Based on James Nylen's d3 process map, FOrce LAyout Relational Diagram (FOuLARD) tweaks Nylen's code to use the same annotated spring-force format to visualize scientific literature searches.

Requirements

FOuLARD needs to run on a server with PHP enabled. To view FOuLARD diagrams requires a Javascript-enabled browser.

Includes

Use

Each dataset needs its own subdirectory under the [FOuLARD/data](https://github.com/ChildMindInstitute/FOuLARD/tree/master/data) directory. That directory name can be appended to the url of your live application after ?dataset=. See Example Applications below for examples.

Within each dataset, the following files are required:

  • config.json

    A JSON file including the following keys:

    • "title" : string

      The title of the diagram.

    • "graph" : JSON object

      Gravitational parameters. See d3's documentation and/or the Example Applications below for more details and examples.

    • "types" : JSON object

      The color-coded types of nodes included in the diagram.

    • "constraints" : JSON object

      Node-based changes to the parameters set in "graph".

  • objects.json

    A JSON file with one entry per node in the diagram. Each node-entry requires the following three keys:

    • "depends" : list of strings

      Nodes on which this node depends, listed by node name.

    • "name"

      The name of this node.

    • "type" : string

      The color-coded type of this node. This value must also be included in the "types" object in config.json.

Within each dataset, the following files are optional:

  • Markdown files

    One markdown file with the name of the name of the node and the extension .mkdn per node in diagram. When a node is clicked into focus, the Markdown documentation will display at the bottom of the diagram if such a file is present.

Once your dataset is ready, load your FOuLARD instance on a PHP server, setting the permissions of all .php files to 644 and all directories to 755: find . -type f -name '*.php' -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \;

Once loaded, the application will be accessible via a Javascript-enabled browser.

Example Applications

Eyetracking Lit Search

dataset=language-processing-tools Eyetracking Lit Search

This dataset was built from a comma separated value file using a Python script to create the relevant JSON and Markdown files.

Language Processing Tools

dataset=language-processing-tools Language Processing Tools

This dataset was built from a Dia diagram exported to Graphviz' DOT format which was then loaded into Graphviz and reexported as JSON. The few Markdown files in this example were handcoded.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 61.0%
  • JavaScript 30.3%
  • Python 4.8%
  • CSS 2.1%
  • HTML 1.6%
  • Shell 0.2%