Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## es.upm.gib.aewrapper.mage2owl
Class Mage2OWL

    java.lang.Object
      es.upm.gib.aewrapper.mage2owl.Mage2OWL

    public class Mage2OWL

extends java.lang.Object

This class allows converting mage documents into an equivalent owl representation.

Mage documents are an xml representation for data following the mage object model (MAGE-OM). MAGE-OM defines a hierarchy of classes with attributes and relations between them. That is why an equivalent owl representation is relatively easy and straightforward to obtain.

- Hierarchy of classes in MAGE-OM will be translated to hierarchy of classes in OWL
- Attributes of objects in MAGE-OM will be translated to datatype properties in OWL
- Relations between objects in MAGE-OM will be translated to object properties in OWL

For documentation on the mage object model, refer to http://www.ebi.ac.uk/microarray-as/aer/magepages/mage_all.html?

There exists an official java interface for browsing and editing mage documents, which can be found here http://mged.sourceforge.net/software/MAGEstk.php. This library allows to easily parse and explore mage documents, without needing to manually browse the xml raw file. In this library, the different objects composing the MAGE-OM model are classified in packages. Each package stores a list of its corresponding objects. These lists can be retrieved and their objects analyzed in execution time. We use that ability to dynamically build the desired owl model.

Constructor Summary
`Mage2OWL()`

Method Summary
`static void` | `mage2EmptyOWL(java.lang.String owlPath)`
`static java.lang.String` | `mage2OWL(java.lang.String mageDocumentPath)` Converts a mage document to an equivalent owl representation.
`static java.lang.String` | `mage2OWL(java.lang.String mageDocumentPath, int limitVectorRanges)` Converts a mage document to an equivalent owl representation.
`static void` | `mage2OWL(java.lang.String mageDocumentPath, java.lang.String owlPath)` Converts a mage document to an equivalent owl representation.
`static void` | `mage2OWL(java.lang.String mageDocumentPath, java.lang.String owlPath, int limitVectorRanges)` Converts a mage document to an equivalent owl representation.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Mage2OWL

    public Mage2OWL()

Method Detail

### mage2OWL

    public static java.lang.String mage2OWL(java.lang.String mageDocumentPath)
                                     throws MageParsingException

  Converts a mage document to an equivalent owl representation. Details on this transformation are given in this class documentation.

  Parameters:
    `mageDocumentPath` - path to the file containing the mage data
  Returns:
    path to the generated owl file (will be located in the same dir as the mage file)
  Throws:
    `MageParsingException` - problems parsing the given mage document

### mage2OWL

    public static java.lang.String mage2OWL(java.lang.String mageDocumentPath,
                                            int limitVectorRanges)
                                     throws MageParsingException

  Converts a mage document to an equivalent owl representation. Details on this transformation are given in this class documentation.

  Parameters:
    `mageDocumentPath` - path to the file containing the mage data
    `limitVectorRanges` - the limit of individuals in vector-ranged properties that are created for each individual
  Returns:
    path to the generated owl file (will be located in the same dir as the mage file)
  Throws:
    `MageParsingException` - problems parsing the given mage document

### mage2OWL

    public static void mage2OWL(java.lang.String mageDocumentPath,
                                java.lang.String owlPath)
                         throws MageParsingException

  Converts a mage document to an equivalent owl representation. Details on this transformation are given in this class documentation.

  Parameters:
    `mageDocumentPath` - path to the file containing the mage data
    `owlPath` - the path where the generated obm file will be located
  Throws:
    `MageParsingException` - problems parsing the given mage document

### mage2OWL

    public static void mage2OWL(java.lang.String mageDocumentPath,
                                java.lang.String owlPath,
                                int limitVectorRanges)
                         throws MageParsingException

  Converts a mage document to an equivalent owl representation. Details on this transformation are given in this class documentation.

  Parameters:
    `mageDocumentPath` - path to the file containing the mage data
    `owlPath` - the path where the generated obm file will be located
    `limitVectorRanges` - the limit of individuals in vector-ranged properties that are created for each individual
  Throws:
    `MageParsingException` - problems parsing the given mage document

### mage2EmptyOWL

    public static void mage2EmptyOWL(java.lang.String owlPath)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD