Giter VIP home page Giter VIP logo

mercator_indexer's Introduction

Mercator Indexer

Tool to generate indices for the Mercator, a spatial index.

Mercator: Spatial Index

Mercator is a spatial volumetric index for the Human Brain Project. It is a component of the Knowledge Graph service, which provides the spatial anchoring for the metadata registered as well as processes the volumetric queries.

It is build on top of the Iron Sea database toolkit.

Iron Sea: Database Toolkit

Iron Sea provides a set of database engine bricks, which can be combined and applied on arbitrary data structures.

Unlike a traditional database, it does not assume a specific physical structure for the tables nor the records, but relies on the developper to provide a set of extractor functions which are used by the specific indices provided.

This enables the index implementations to be agnostic from the underlying data structure, and re-used.

Requirements

Software

Checkout the dependencies in the parent folder:

Quick start

For 3 datasets, setA, setB, setC, the following files are expected to be in the current folder:

  • setA:
    • setA.objects.json
    • setA.spaces.json
  • setB:
    • setB.objects.json
    • setB.spaces.json
  • setC:
    • setC.objects.json
    • setC.spaces.json

Run (and build if necessary) the indexer:

cargo run --release -- -f json setA setB setC

This will produce the following files:

  • setA
    • setA.objects.bin
    • setA.spaces.bin
    • setA.index
  • setB
    • setB.objects.bin
    • setB.spaces.bin
    • setB.index
  • setC
    • setC.objects.bin
    • setC.spaces.bin
    • setC.index

By default, each dataset will have a version set to the empty string, if you want to specify the dataset version you can like this:

cargo run --release -- -f json setA:v0.1 setB setC:MyAwesomeVersion

With the above, setA will have its version set to v0.1, setB to the empty string and setC to MyAwesomeVersion.

For more options, please refer to the online help:

cargo run --release -- --help

Installation

To install the software on the system, after checking out the dependencies you can use:

cargo install --path .

Then in any folder you can then use:

mercator_indexer -f json setA:v0.1 setB setC:MyAwesomeVersion

Acknowledgements

This open source software code was developed in part or in whole in the Human Brain Project, funded from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 785907 (Human Brain Project SGA2).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.