Skip to content

Commit

Permalink
Added molgenis-data-omx documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinwinder committed Jan 16, 2014
1 parent c654006 commit bc85c2a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Binary file added molgenis-data-omx/doc/molgenis-data-omx.dia
Binary file not shown.
36 changes: 36 additions & 0 deletions molgenis-data-omx/doc/molgenis-data-omx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Introduction
The molgenis-data-omx package is data backend for Molgenis that uses observe omx `DataSet` matrices. It provides repository wrappers around DataSets so that they can be used like any other repository. The attributes of the repository are the `ObservableFeatures` of the `Protocol` used by the `DataSet`. The values of an entity are the `ObservedValues` of an `ObservationSet` that belongs to the `DataSet`. So one `ObservationSet` represents one `Entity`

This package depends on molgenis-omx-core, molgenis-data-jpa and molgenis-search.

## Core molgenis-data-omx classes

<img src="molgenis-data-omx.png" />

**The light grey classes are provided by other molgenis modules**

### OmxRepository

`Repository` implementation for an omx `DataSet` matrix. For each `DataSet` there is an `OmxRepository`, the `SearchService` is used to retrieve the attribute values of an entity. So an index needs to be in place to be able to use an `OmxRepository`. The `OmxRepository` uses the `SearchService` for querying and iterating.

The `OmxRepository` methods returns `MapEntities` as the `Entity` implementation. It implements the `Queryable` interface so you can query it but you can't add, update or delete entities with it.

The entitynames are the identifiers of the available `DataSets`. The attributenames are de identifiers of the `ObservableFeatures`.

### OmxEntitySource
There is only one `OmxEntitySource` in an application with url `omx://`.

### OmxEntitySourceFactory
There can be only one `OmxEntitySourceFactory` in an application, it has the urlprefix `omx://`.

### OmxDataConfig
This is the spring configuration class for the molgenis-data-omx package. It adds the `OmxEntitySource` and `OmxEntitySourceFactory` to the spring applicationcontext and registers the omx entitysource as a databackend at the `DataService`.

So when you import tis class in your configuration class or this class is in the componentscan, you automatically can use the omx data classes.







Binary file added molgenis-data-omx/doc/molgenis-data-omx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bc85c2a

Please sign in to comment.