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.mappingAPI2
Class MappingApi2

    java.lang.Object
      es.upm.gib.mappingAPI2.MappingApi2

All Implemented Interfaces:
  java.io.Serializable

    public class MappingApi2

extends java.lang.Object
implements java.io.Serializable

This class is represented by a list of entries and some data called metadata

See Also:
  Serialized Form

Constructor Summary
`MappingApi2()` create an empty Mapping

Method Summary
`void` | `addEntry(Entry entry)` the method adds an entry to the mapping.
`Entry` | `conceptualToPhysical(java.lang.Integer conceptualSearch)` finds the Entry that contains the searched conceptual view
`void` | `deleteEntry(int position)` deletes the entry in the given position of the mapping.
`java.util.Vector<java.lang.Integer>` | `findConceptualSubsumedViews(View searchView, es.upm.gib.owlbasicmodel2.OWLBasicModel2 owlModel)` Given a View, the method extract all the subsumed Views existing in the conceptual part of the mapping.
`java.util.Vector<View>` | `findPhysicalSubsumedPaths(View searchView, es.upm.gib.owlbasicmodel2.OWLBasicModel2 owlModel)` Given a View, the method extract all the subsumed Views existing in the physical part of the mapping.
`java.util.ArrayList<Entry>` | `getEntries()` Retrieves list of entries of the mapping
`MappingMetadata` | `getMetadata()` Retrieves the metadata of the mapping
`void` | `loadMapping(java.lang.String mappingFile)` the methods load a previously saved mapping.
`void` | `MappingApi2(java.lang.String mappingFile)` create a MappingBrowser loading an existing mapping from a file
`Entry` | `physicalToConceptual(View physicalSearch)` finds the Entry that contains the searched physical view
`void` | `setEntries(java.util.ArrayList<Entry> entries)` Set entries for the mapping
`void` | `setMetadata(MappingMetadata metadata)` Set the metadata for the mapping

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

Constructor Detail

### MappingApi2

    public MappingApi2()

  create an empty Mapping

Method Detail

### MappingApi2

    public void MappingApi2(java.lang.String mappingFile)
                     throws org.jdom.JDOMException,
                            java.io.IOException,
                            java.text.ParseException

  create a MappingBrowser loading an existing mapping from a file

  Parameters:
    `mappingFile` - the system path of the file
  Throws:
    `org.jdom.JDOMException`
    `java.io.IOException`
    `java.text.ParseException`

### getEntries

    public java.util.ArrayList<Entry> getEntries()

  Retrieves list of entries of the mapping

  Returns:

### setEntries

    public void setEntries(java.util.ArrayList<Entry> entries)

  Set entries for the mapping

  Parameters:
    `entries` -

### setMetadata

    public void setMetadata(MappingMetadata metadata)

  Set the metadata for the mapping

  Parameters:
    `metadata` -

### getMetadata

    public MappingMetadata getMetadata()

  Retrieves the metadata of the mapping

  Returns:
    metadata of the mapping

### loadMapping

    public void loadMapping(java.lang.String mappingFile)
                     throws org.jdom.JDOMException,
                            java.text.ParseException,
                            java.io.IOException

  the methods load a previously saved mapping.
  the file has to be an xml file that respect the DTD given above.

  Parameters:
    `mappingFile` - an xml file representing a mapping (it has to respect the defined format)
  Throws:
    `org.xml.sax.SAXException`
    `java.io.IOException`
    `org.jdom.JDOMException`
    `java.text.ParseException`

### addEntry

    public void addEntry(Entry entry)

  the method adds an entry to the mapping.
  the entry added is the one provided as parameter

  Parameters:
    `entry` - the Entry object that is added to the mapping

### deleteEntry

    public void deleteEntry(int position)

  deletes the entry in the given position of the mapping.

  Parameters:
    `position` - the position in the mapping that will be delete

### conceptualToPhysical

    public Entry conceptualToPhysical(java.lang.Integer conceptualSearch)

  finds the Entry that contains the searched conceptual view

  Parameters:
    `conceptualSearch` - the conceptual View (its Integer identifier)
  Returns:
    the Entry that contains the searched conceptual view

### physicalToConceptual

    public Entry physicalToConceptual(View physicalSearch)

  finds the Entry that contains the searched physical view

  Parameters:
    `physicalSearch` - the physical View
  Returns:
    the Entry that contains the searched physical view

### findConceptualSubsumedViews

    public java.util.Vector<java.lang.Integer> findConceptualSubsumedViews(View searchView,
                                                                           es.upm.gib.owlbasicmodel2.OWLBasicModel2 owlModel)

       Given a View, the method extract all the subsumed Views existing in the conceptual part of the mapping.
       Given a View, another View is subsumed if:

          1. The set of paths of the second view is subsumed to the set of paths of the first view.

          2. the restriction of the second view are subsumed to the restriction of the first view

  Parameters:
    `searchView` - the subsumed path in Path format
    `owlModel` - the RDF/OWL model used to check if the path is subsumed
  Returns:
    a Vector containing the list of the Views contained in the mapping that subsumes the View passed as parameter (their corresponding entry Integer identifiers)

### findPhysicalSubsumedPaths

    public java.util.Vector<View> findPhysicalSubsumedPaths(View searchView,
                                                            es.upm.gib.owlbasicmodel2.OWLBasicModel2 owlModel)

       Given a View, the method extract all the subsumed Views existing in the physical part of the mapping.
       Given a View, another View is subsumed if:

          1. The set of paths of the second view is subsumed to the set of paths of the first view.

          2. the restriction of the second view are subsumed to the restriction of the first view

  Parameters:
    `searchView` - the subsumed path in Path format
    `owlModel` - the RDF/OWL model used to check if the path is subsumed
  Returns:
    a Vector containing the list of the Views contained in the mapping that subsumes the View passed as parameter

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

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