Alignment API and Server 3.2

fr.inrialpes.exmo.align.service
Class AServProtocolManager

java.lang.Object
  extended by fr.inrialpes.exmo.align.service.AServProtocolManager

public class AServProtocolManager
extends Object

This is the main class that control the behaviour of the Alignment Server It is as independent from the OWL API as possible. However, it is still necessary to test for the reachability of an ontology and moreover to resolve its URI for that of its source. For these reasons we still need a parser of OWL files here.


Nested Class Summary
protected  class AServProtocolManager.Aligner
           
 
Field Summary
(package private)  CacheImpl alignmentCache
           
(package private)  Parameters commandLineParams
           
(package private)  Hashtable<String,Directory> directories
           
(package private)  org.semanticweb.owl.io.owl_rdf.OWLRDFErrorHandler handler
           
(package private)  OntologyCache loadedOntologies
           
(package private)  int localId
           
(package private)  Set methods
           
(package private)  String myId
           
(package private)  Set renderers
           
(package private)  Set services
           
 
Constructor Summary
AServProtocolManager(Hashtable<String,Directory> dir)
          Initialization and constructor
 
Method Summary
 Message align(Message mess)
           
 Enumeration alignments()
           
 void close()
           
 Message compose(Message mess)
           
 Message cut(Message mess)
          Extra alignment primitives All these primitives must create a new alignment and return its Id There is no way an alignment server could modify an alignment
 Message existingAlignments(Message mess)
           
 Message failure(Message mess)
           
 Message find(Message mess)
           
 Message harden(Message mess)
           
static void implementations(Class tosubclass, Set list, boolean debug)
          Utilities: Finding the implementation of an interface
static Set implementations(String interfaceName)
          Display all the classes inheriting or implementing a given interface in the currently loaded packages.
 void init(DBService connection, Parameters p)
           
 Message inverse(Message mess)
           
 Message join(Message mess)
           
 Set listmethods()
          Extra administration primitives
 Set listrenderers()
           
 Set listservices()
           
 Message load(Message mess)
          Basic protocol primitives
 org.semanticweb.owl.model.OWLOntology loadOntology(URI uri)
           
 Message meet(Message mess)
           
 Message metadata(Message mess)
           
private  int newId()
           
 String query(String query)
           
 org.semanticweb.owl.model.OWLOntology reachable(URI uri)
          Utilities: reaching and loading ontologies
 Message render(Message mess)
           
 Message replyto(Message mess)
           
 Message replywith(Message mess)
          Ideal network implementation protocol: - publication (to some directory) registerID publishServices unregisterID (publishRenderer) (publishMethods) : can be retrieved through the classical interface.
private  Message retrieveAlignment(Message mess)
           
 String serverURL()
           
 Message store(Message mess)
          Extended protocol primitives
 boolean storedAlignment(Message mess)
           
 Message translate(Message mess)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alignmentCache

CacheImpl alignmentCache

commandLineParams

Parameters commandLineParams

renderers

Set renderers

methods

Set methods

services

Set services

loadedOntologies

OntologyCache loadedOntologies

handler

org.semanticweb.owl.io.owl_rdf.OWLRDFErrorHandler handler

directories

Hashtable<String,Directory> directories

localId

int localId

myId

String myId
Constructor Detail

AServProtocolManager

public AServProtocolManager(Hashtable<String,Directory> dir)
Initialization and constructor

Method Detail

init

public void init(DBService connection,
                 Parameters p)
          throws SQLException,
                 AlignmentException
Throws:
SQLException
AlignmentException

close

public void close()

newId

private int newId()

listmethods

public Set listmethods()
Extra administration primitives


listrenderers

public Set listrenderers()

listservices

public Set listservices()

alignments

public Enumeration alignments()

query

public String query(String query)

serverURL

public String serverURL()

load

public Message load(Message mess)
Basic protocol primitives


align

public Message align(Message mess)

retrieveAlignment

private Message retrieveAlignment(Message mess)

existingAlignments

public Message existingAlignments(Message mess)

find

public Message find(Message mess)

translate

public Message translate(Message mess)

render

public Message render(Message mess)

store

public Message store(Message mess)
Extended protocol primitives


metadata

public Message metadata(Message mess)

cut

public Message cut(Message mess)
Extra alignment primitives All these primitives must create a new alignment and return its Id There is no way an alignment server could modify an alignment


harden

public Message harden(Message mess)

inverse

public Message inverse(Message mess)

meet

public Message meet(Message mess)

join

public Message join(Message mess)

compose

public Message compose(Message mess)

storedAlignment

public boolean storedAlignment(Message mess)

replywith

public Message replywith(Message mess)
Ideal network implementation protocol: - publication (to some directory) registerID publishServices unregisterID (publishRenderer) (publishMethods) : can be retrieved through the classical interface. requires a direcory - subscribe style subscribe() : ask to receive new metadata notify( metadata ) : send new metadata to subscriber unsubscribe() : update( metadata ) : update some modification requires to store the subscribers - query style: this is the classical protocol that can be done through WSDL getMetadata() getAlignment() requires to store the node that can be


replyto

public Message replyto(Message mess)

failure

public Message failure(Message mess)

reachable

public org.semanticweb.owl.model.OWLOntology reachable(URI uri)
Utilities: reaching and loading ontologies


loadOntology

public org.semanticweb.owl.model.OWLOntology loadOntology(URI uri)
                                                   throws org.semanticweb.owl.io.ParserException,
                                                          org.semanticweb.owl.model.OWLException
Throws:
org.semanticweb.owl.io.ParserException
org.semanticweb.owl.model.OWLException

implementations

public static void implementations(Class tosubclass,
                                   Set list,
                                   boolean debug)
Utilities: Finding the implementation of an interface


implementations

public static Set implementations(String interfaceName)
Display all the classes inheriting or implementing a given interface in the currently loaded packages.

Parameters:
interfaceName - the name of the interface to implement

Alignment API and Server 3.2

(C) INRIA & friends, 2003-2008