GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lod-cloud/lod-cloud-draw: LOD Cloud Drawing Tool

BranchesTags
Open more actions menu

Latest commit

 

History

57 Commits
57 Commits

Folders and files

NameName
Last commit message
Last commit date
clouds
clouds
 
 
scripts
scripts
 
 
src
src
 
 
.DS_Store
.DS_Store
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
generate-clouds.sh
generate-clouds.sh
 
 
ipfs-hashes.csv
ipfs-hashes.csv
 
 

Repository files navigation

LOD Cloud Draw

This is a tool for creating linked open data cloud diagrams, such as those found at http://lod-cloud.net/.

Installation

This project is written in Rust and can be compiled with Cargo as follows

cargo build --release

For lod-cloud-site use the following command:

RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-gnu --release

This will create a binary under target/x86_64-unknown-linux-gnu/release/lod-cloud-draw that can be used to create cloud diagrams

Requirements

To use this library you must have gfortran installed in your pc

  • for windows use fortran compiler provided by mingw or TDM-GCC
  • for linux you can use the package manager to install gfortran
  • for Mac os you can install it from here or here

Details

Tool used to create LOD cloud diagrams as SVG. The cloud is created as a minimization of the following function:

f(V,E) = s * sum_{e} spring(e) + r * sum_{v1} sum_{v2} repulse(v1, v2, d) + w * sum_{v} well(v, c)

Where:

  • spring(e): Measures the length of a link in the cloud
  • repulse(v1, v2, d): Indicates if v1 and v2 are within a distance of d
  • well(v, c): Indicates if v is contained within a circle (well) of radius c

And s,r,w are tuning constants

Usage

lod-cloud-draw [OPTIONS] <data.json> <output.svg>

FLAGS

-h, --help       Prints help information
-V, --version    Prints version information

OPTIONS

    --algorithm <cg|lbfgsb>          The algorithm used to find the cloud diagram (cg=Conjugate
                                     Gradient or lbfgsb = Limited BFGS)
-w, --well <FORCE>                   The value of the well boundary force
    --canvas-rigidity <FACTOR>       The rigidity of the well
-c, --canvas <PIXELS>                The radius of the circle that the bubbles should be contained in
    --ident <none|neighbour|tags>    The algorithm used to identify domain (bubble colours) of unidentified datasets
-i, --max-iters <ITERATIONS>         The maximum number of iterations to perform (default=10000)
-n, --n-blocks <BLOCKS>              Apply an n x n blocking method to speed up the algorithm 
                                     (default=1, no blocking)
-r, --repulse <FORCE>                The value of the repulsion force
-d, --distance <PIXELS>              The minimal distance between bubbles
    --repulse-rigidity <FACTOR>      The rigidity of repulsion between bubbles
-e, --settings <settings.json>       The JSON file containing the settings for the system
-s, --spring <FORCE>                 The value of the spring force

ARGS

<data.json>     The data of the LOD cloud
<output.svg>    The path of the SVG file to write to

Settings

In order to create a cloud diagram a settings file is required, this is a JSON file as follows

  • legend: The legend (categories) to show; an array of legend entries (see below)
  • fixed_points: If any datasets should occur at a fixed position; dictionary of strings to an array of two floating point numbers
  • selection: Selection method: Either "all", "dataset" or "domain"
  • selected: The value of the dataset/domain to be selected
  • hops: The number of hops from a dataset in dataset mode
  • datasets: Any datasets that must be included in the data
  • rights_text: The description and copyright text
  • logo_link: The logo (link) (to be included in the bottom right of the image)
  • logo_width: The logo width

Legend entries consist of the following

  • title: The display title to be shown to the user
  • domain: The value of the domain property in data that corresponds to
  • colour: The (HTML) colour of this legend
  • keywords: The keywords that identify this domain

Examples of this may be found under the clouds folder

Data

Data may be obtained from the following URL

https://lod-cloud.net/lod-data.json

Rebuilding from the live version can be done with the following command

python3 scripts/get-data.py

About

LOD Cloud Drawing Tool

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

58 stars

Watchers

9 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.