intermine/facetted-query-builder

Name: facetted-query-builder

Owner: InterMine

Description: A facetted query builder.

Created: 2013-07-22 10:01:16.0

Updated: 2013-09-29 03:17:02.0

Pushed: 2013-07-26 13:47:01.0

Homepage: null

Size: 132

Language: LiveScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

facetted-query-builder

A facetted query builder.

Configuration

This app supports the following configuration parameters - most of these are as per the configuration options for im-tables.

Messages

The app send messages through the channel provided in a a number of circumstances. All messages take the following form:


name: string,
data: Object,
service: {
    url: string,
    token: string
}

The precise content and structure of the data property is dependent on the nature of the message.

The app may send messages with the following names:

Facets

A facet is a path descending from the root of a query which can be used to categorise or 'facet' the data in the table. This can either be specified in a general way, such that any query can use the same set of facet configuration, or in a specific, per instance way, determining the facets just for this occasion.

General configuration

A list of headless paths should be provided for each class they are suitable of describing. If the root class of a query includes in its ancestry more than one configured set of facets, they will be combined. Eg. if the root class is Gene, and this is the set of facets:

etPathsFor": {
"BioEntity": ["organism.shortName"],
"SequenceFeature": ["chromosome.primaryIdentifier"],
"Gene": ["pathways.name", "goAnnotation.ontologyTerm.parents.name"],
"Protein": ["gene.symbol"]

The the set of facets used for this query will be:

Specific Configuration

A list of paths (with or without heads) may be provided to be used directly. If provided this configuration takes priority, an the sets of facet paths listed in the general configuration will not be inspected. Eg.:

etPaths": ["pathways.name", "organism.name"]

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.