Alignment API and Server 4.6 (1875M)

fr.inrialpes.exmo.align.service
Class AServProtocolManager

java.lang.Object
  extended by fr.inrialpes.exmo.align.service.AServProtocolManager
All Implemented Interfaces:
Service

public class AServProtocolManager
extends Object
implements Service

This is the main class which controls 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)  Properties commandLineParams
           
(package private)  Hashtable<String,Directory> directories
           
(package private)  Set<String> evaluators
           
(package private)  int localId
           
(package private) static org.slf4j.Logger logger
           
(package private)  Set<String> methods
           
(package private)  Set<String> renderers
           
(package private)  String serverId
           
(package private)  Set<String> services
           
 
Constructor Summary
AServProtocolManager(Hashtable<String,Directory> dir)
          Initialization and constructor
 
Method Summary
 Message align(Message mess)
           
 Collection<Alignment> alignments()
           
 Collection<Alignment> alignments(URI uri1, URI uri2)
           
 String argline()
           
 void close()
           
 Message compose(Message mess)
           
 Message diff(Message mess)
           
 Message erase(Message mess)
           
 Message eval(Message mess)
           
 Message existingAlignments(Message mess)
           
 void exploreJar(Set<String> list, Set<String> visited, Class tosubclass, JarFile jar)
           
 Message failure(Message mess)
           
 Message find(Message mess)
           
 Message findCorrespondences(Message mess)
           
 void flush()
           
 Message getResults(Message mess)
          Retrieve the results (all registered result) of a particular test
 Message groupEval(Message mess)
          Evaluate a track: a set of results
 Message harden(Message mess)
           
 void implementations(Class tosubclass, Set<String> list)
           
 Set<String> implementations(String interfaceName)
          Display all the classes inheriting or implementing a given interface in the currently loaded packages.
 boolean implementsInterface(String classname, Class tosubclass)
           
 void init(DBService connection, Properties prop)
           
 Message inverse(Message mess)
           
 Message join(Message mess)
           
 Set<String> listevaluators()
           
 Set<String> listmethods()
          Extra administration primitives
 Set<String> listrenderers()
           
 Set<String> listservices()
           
 Message load(Message mess)
          Basic protocol primitives
 Message meet(Message mess)
           
 Message metadata(Message mess)
           
private  int newId()
           
 Collection<URI> ontologies()
           
 String query(String query)
           
 LoadedOntology 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.
 void reset()
           
private  Message retrieveAlignment(Message mess)
          returns null if alignment not retrieved Otherwise returns AlignmentId or an ErrorMsg
 String serverURL()
           
 void shutdown()
           
 Message store(Message mess)
          Extended protocol primitives
 boolean storedAlignment(Message mess)
           
 Message storeEval(Message mess)
          Store evaluation result from its URI
 Message storeGroupEval(Message mess)
          Store the result
 Message translate(Message mess)
           
 Message trim(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static final org.slf4j.Logger logger

alignmentCache

CacheImpl alignmentCache

commandLineParams

Properties commandLineParams

renderers

Set<String> renderers

methods

Set<String> methods

services

Set<String> services

evaluators

Set<String> evaluators

directories

Hashtable<String,Directory> directories

localId

int localId

serverId

String serverId
Constructor Detail

AServProtocolManager

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

Method Detail

init

public void init(DBService connection,
                 Properties prop)
          throws SQLException,
                 AlignmentException
Throws:
SQLException
AlignmentException

close

public void close()

reset

public void reset()

flush

public void flush()

shutdown

public void shutdown()

newId

private int newId()

listmethods

public Set<String> listmethods()
Extra administration primitives

Specified by:
listmethods in interface Service

listrenderers

public Set<String> listrenderers()
Specified by:
listrenderers in interface Service

listservices

public Set<String> listservices()
Specified by:
listservices in interface Service

listevaluators

public Set<String> listevaluators()
Specified by:
listevaluators in interface Service

alignments

public Collection<Alignment> alignments()
Specified by:
alignments in interface Service

ontologies

public Collection<URI> ontologies()
Specified by:
ontologies in interface Service

alignments

public Collection<Alignment> alignments(URI uri1,
                                        URI uri2)
Specified by:
alignments in interface Service

query

public String query(String query)
Specified by:
query in interface Service

serverURL

public String serverURL()
Specified by:
serverURL in interface Service

argline

public String argline()
Specified by:
argline in interface Service

load

public Message load(Message mess)
Basic protocol primitives

Specified by:
load in interface Service

align

public Message align(Message mess)
Specified by:
align in interface Service

retrieveAlignment

private Message retrieveAlignment(Message mess)
returns null if alignment not retrieved Otherwise returns AlignmentId or an ErrorMsg


existingAlignments

public Message existingAlignments(Message mess)
Specified by:
existingAlignments in interface Service

findCorrespondences

public Message findCorrespondences(Message mess)
Specified by:
findCorrespondences in interface Service

find

public Message find(Message mess)
Specified by:
find in interface Service

translate

public Message translate(Message mess)
Specified by:
translate in interface Service

render

public Message render(Message mess)
Specified by:
render in interface Service

store

public Message store(Message mess)
Extended protocol primitives

Specified by:
store in interface Service

erase

public Message erase(Message mess)

metadata

public Message metadata(Message mess)
Specified by:
metadata in interface Service

trim

public Message trim(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

Specified by:
trim in interface Service

harden

public Message harden(Message mess)
Specified by:
harden in interface Service

inverse

public Message inverse(Message mess)
Specified by:
inverse in interface Service

meet

public Message meet(Message mess)
Specified by:
meet in interface Service

join

public Message join(Message mess)
Specified by:
join in interface Service

compose

public Message compose(Message mess)
Specified by:
compose in interface Service

eval

public Message eval(Message mess)
Specified by:
eval in interface Service

diff

public Message diff(Message mess)
Specified by:
diff in interface Service

storeEval

public Message storeEval(Message mess)
Store evaluation result from its URI


groupEval

public Message groupEval(Message mess)
Evaluate a track: a set of results


storeGroupEval

public Message storeGroupEval(Message mess)
Store the result


getResults

public Message getResults(Message mess)
Retrieve the results (all registered result) of a particular test


storedAlignment

public boolean storedAlignment(Message mess)
Specified by:
storedAlignment in interface Service

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 LoadedOntology reachable(URI uri)
Utilities: reaching and loading ontologies


implementations

public Set<String> 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

implementations

public void implementations(Class tosubclass,
                            Set<String> list)

exploreJar

public void exploreJar(Set<String> list,
                       Set<String> visited,
                       Class tosubclass,
                       JarFile jar)

implementsInterface

public boolean implementsInterface(String classname,
                                   Class tosubclass)

Alignment API and Server 4.6 (1875M)

(C) INRIA & friends, 2003-2014