com.ontotext.ordi.repository
Class TripleRepository

java.lang.Object
  extended by com.ontotext.ordi.repository.TripleRepository
All Implemented Interfaces:
Repository, org.wsmo.datastore.DataStore, org.wsmo.datastore.WsmoRepository

public class TripleRepository
extends java.lang.Object
implements Repository

Title:

Description:

Copyright: Copyright (c) 2004-2005

Company: Ontotext Lab., Sirma AI

Version:
1.0
Author:
unascribed

Field Summary
static java.lang.String DEFAULT_TRIPLESTORE_PROVIDER_CLASS
           
static java.lang.String TRIPLESTORE_PROVIDER_CLASS
           
static java.lang.String WSMO_DATAFACTORY_INSTANCE
           
static java.lang.String WSMO_FACTORY_INSTANCE
           
static java.lang.String WSMO_LEFACTORY_INSTANCE
           
 
Constructor Summary
TripleRepository()
           
TripleRepository(java.util.Map params)
           
 
Method Summary
 void addGoal(org.wsmo.service.Goal goal)
           
 void addMediator(org.wsmo.mediator.Mediator mediator)
           
 void addOntology(org.omwg.ontology.Ontology ontology)
           
 void addWebService(org.wsmo.service.WebService service)
           
 void deleteGoal(org.wsmo.common.IRI id)
           
 void deleteMediator(org.wsmo.common.IRI id)
           
 void deleteOntology(org.wsmo.common.IRI id)
           
 void deleteWebService(org.wsmo.common.IRI id)
           
 QueryResult evaluate(Query query)
          invoke a query against this repository
 java.lang.String getDescription()
           
 org.wsmo.service.Goal getGoal(org.wsmo.common.IRI id)
           
 org.wsmo.mediator.Mediator getMediator(org.wsmo.common.IRI id)
           
 org.omwg.ontology.Ontology getOntology(org.wsmo.common.IRI id)
           
 java.lang.String getVersion()
           
 org.wsmo.service.WebService getWebService(org.wsmo.common.IRI id)
           
 void init(java.util.Map params)
          invoked to initialize the repository
 java.util.List listGoals()
           
 java.util.List listMediators()
           
 java.util.List listOntologies()
           
 java.util.List listWebServices()
           
 java.util.Set load(org.wsmo.common.Identifier id)
           
 org.wsmo.common.Entity load(org.wsmo.common.Identifier id, java.lang.Class cls)
           
 void remove(org.wsmo.common.Identifier id)
           
 void remove(org.wsmo.common.Identifier id, java.lang.Class cls)
           
 void save(org.wsmo.common.Entity item)
           
 void saveGoal(org.wsmo.service.Goal arg0)
           
 void saveMediator(org.wsmo.mediator.Mediator arg0)
           
 void saveOntology(org.omwg.ontology.Ontology arg0)
           
 void saveWebService(org.wsmo.service.WebService arg0)
           
 void setDescription(java.lang.String arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRIPLESTORE_PROVIDER_CLASS

public static java.lang.String TRIPLESTORE_PROVIDER_CLASS

DEFAULT_TRIPLESTORE_PROVIDER_CLASS

public static java.lang.String DEFAULT_TRIPLESTORE_PROVIDER_CLASS

WSMO_FACTORY_INSTANCE

public static java.lang.String WSMO_FACTORY_INSTANCE

WSMO_LEFACTORY_INSTANCE

public static java.lang.String WSMO_LEFACTORY_INSTANCE

WSMO_DATAFACTORY_INSTANCE

public static java.lang.String WSMO_DATAFACTORY_INSTANCE
Constructor Detail

TripleRepository

public TripleRepository()

TripleRepository

public TripleRepository(java.util.Map params)
Method Detail

init

public void init(java.util.Map params)
Description copied from interface: Repository
invoked to initialize the repository

Specified by:
init in interface Repository
Parameters:
params - a Map contaion initialization parameters for the repository usualy Strings are used as keys and the types of the values are key dependadnd

evaluate

public QueryResult evaluate(Query query)
Description copied from interface: Repository
invoke a query against this repository

Specified by:
evaluate in interface Repository
Returns:
the QueryResult

load

public org.wsmo.common.Entity load(org.wsmo.common.Identifier id,
                                   java.lang.Class cls)
Specified by:
load in interface org.wsmo.datastore.DataStore

load

public java.util.Set load(org.wsmo.common.Identifier id)
Specified by:
load in interface org.wsmo.datastore.DataStore

save

public void save(org.wsmo.common.Entity item)
Specified by:
save in interface org.wsmo.datastore.DataStore

remove

public void remove(org.wsmo.common.Identifier id)
Specified by:
remove in interface org.wsmo.datastore.DataStore

remove

public void remove(org.wsmo.common.Identifier id,
                   java.lang.Class cls)
Specified by:
remove in interface org.wsmo.datastore.DataStore

addGoal

public void addGoal(org.wsmo.service.Goal goal)
             throws org.wsmo.common.exception.SynchronisationException
Specified by:
addGoal in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

addMediator

public void addMediator(org.wsmo.mediator.Mediator mediator)
                 throws org.wsmo.common.exception.SynchronisationException
Specified by:
addMediator in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

addOntology

public void addOntology(org.omwg.ontology.Ontology ontology)
                 throws org.wsmo.common.exception.SynchronisationException
Specified by:
addOntology in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

addWebService

public void addWebService(org.wsmo.service.WebService service)
                   throws org.wsmo.common.exception.SynchronisationException
Specified by:
addWebService in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

deleteGoal

public void deleteGoal(org.wsmo.common.IRI id)
                throws org.wsmo.common.exception.SynchronisationException
Specified by:
deleteGoal in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

deleteMediator

public void deleteMediator(org.wsmo.common.IRI id)
                    throws org.wsmo.common.exception.SynchronisationException
Specified by:
deleteMediator in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

deleteOntology

public void deleteOntology(org.wsmo.common.IRI id)
                    throws org.wsmo.common.exception.SynchronisationException
Specified by:
deleteOntology in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

deleteWebService

public void deleteWebService(org.wsmo.common.IRI id)
                      throws org.wsmo.common.exception.SynchronisationException
Specified by:
deleteWebService in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

getGoal

public org.wsmo.service.Goal getGoal(org.wsmo.common.IRI id)
                              throws org.wsmo.common.exception.SynchronisationException
Specified by:
getGoal in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

getMediator

public org.wsmo.mediator.Mediator getMediator(org.wsmo.common.IRI id)
                                       throws org.wsmo.common.exception.SynchronisationException
Specified by:
getMediator in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

getOntology

public org.omwg.ontology.Ontology getOntology(org.wsmo.common.IRI id)
                                       throws org.wsmo.common.exception.SynchronisationException
Specified by:
getOntology in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

getWebService

public org.wsmo.service.WebService getWebService(org.wsmo.common.IRI id)
                                          throws org.wsmo.common.exception.SynchronisationException
Specified by:
getWebService in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

listGoals

public java.util.List listGoals()
                         throws org.wsmo.common.exception.SynchronisationException
Specified by:
listGoals in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

listMediators

public java.util.List listMediators()
                             throws org.wsmo.common.exception.SynchronisationException
Specified by:
listMediators in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

listOntologies

public java.util.List listOntologies()
                              throws org.wsmo.common.exception.SynchronisationException
Specified by:
listOntologies in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

listWebServices

public java.util.List listWebServices()
                               throws org.wsmo.common.exception.SynchronisationException
Specified by:
listWebServices in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

saveGoal

public void saveGoal(org.wsmo.service.Goal arg0)
              throws org.wsmo.common.exception.SynchronisationException
Specified by:
saveGoal in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

saveMediator

public void saveMediator(org.wsmo.mediator.Mediator arg0)
                  throws org.wsmo.common.exception.SynchronisationException
Specified by:
saveMediator in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

saveOntology

public void saveOntology(org.omwg.ontology.Ontology arg0)
                  throws org.wsmo.common.exception.SynchronisationException
Specified by:
saveOntology in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

saveWebService

public void saveWebService(org.wsmo.service.WebService arg0)
                    throws org.wsmo.common.exception.SynchronisationException
Specified by:
saveWebService in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

setDescription

public void setDescription(java.lang.String arg0)
Specified by:
setDescription in interface org.wsmo.datastore.WsmoRepository

getVersion

public java.lang.String getVersion()
                            throws org.wsmo.common.exception.SynchronisationException
Specified by:
getVersion in interface org.wsmo.datastore.WsmoRepository
Throws:
org.wsmo.common.exception.SynchronisationException

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface org.wsmo.datastore.WsmoRepository


Copyright © 2005-2006 Ontotext Lab., GNU LGPL License applies.