org.wsmo.factory
Interface WsmoFactory


public interface WsmoFactory

WsmoFactory interface, used to create WSMO entities (goals, ontologies, ...)

Version:
$Revision: 1761 $ $Date: 2006-06-21 10:46:29 +0300 (Wed, 21 Jun 2006) $
Author:
not attributable

Method Summary
 UnnumberedAnonymousID createAnonymousID()
          Creates an unnumbered ID (i.e.
 Axiom createAxiom(Identifier id)
          Creates a new Axiom object.
 Capability createCapability(IRI id)
          Creates a new Capability object.
 Concept createConcept(Identifier id)
          Creates a new Concept object.
 GGMediator createGGMediator(IRI id)
          Creates a mediator.
 Goal createGoal(IRI id)
          Creates a goal.
 Instance createInstance(Identifier id)
          Creates a new Instance object.
 Instance createInstance(Identifier id, Concept concept)
          Creates a new Instance object.
 Interface createInterface(IRI id)
          Creates a new Interface object.
 IRI createIRI(Namespace ns, String localPart)
          Creates a new IRI object (for example 'ns:x').
 IRI createIRI(String fullIRI)
          Creates a new IRI object.
 Namespace createNamespace(String prefix, IRI iri)
          Creates a new Namespace object.
 Ontology createOntology(IRI id)
          Creates a new Ontology object.
 OOMediator createOOMediator(IRI id)
          Creates a mediator.
 Relation createRelation(Identifier id)
          Creates a new Relation object.
 RelationInstance createRelationInstance(Identifier id, Relation rel)
          Creates a new RelationInstance object.
 RelationInstance createRelationInstance(Relation rel)
          Creates a new RelationInstance object.
 WebService createWebService(IRI id)
          Creates a new WebService object.
 WGMediator createWGMediator(IRI id)
          Creates a mediator.
 WWMediator createWWMediator(IRI id)
          Creates a mediator.
 Axiom getAxiom(Identifier id)
          Return existing Axiom instance
 Capability getCapability(IRI id)
          Return existing Capability instance
 Concept getConcept(Identifier id)
          Return existing Concept insatnce
 GGMediator getGGMediator(IRI id)
          Return exiasing GGMediator instance
 Goal getGoal(IRI id)
          Return an existing Goal instance
 Instance getInstance(Identifier id)
          Return existing Instance object
 Interface getInterface(IRI id)
          Return an existing Interface instance
 Ontology getOntology(IRI id)
          Return exisitng Ontology instance
 OOMediator getOOMediator(IRI id)
          Return an existing OOMediator instance
 Relation getRelation(Identifier id)
          Return existing Relation object
 RelationInstance getRelationInstance(Identifier id)
          Return existing RelationInstance object
 Variable getVariable(String name)
          Return existing Varible instance
 WebService getWebService(IRI id)
          Return existing WebService instance
 WGMediator getWGMediator(IRI id)
          Return existing WGMediator instance
 WWMediator getWWMediator(IRI id)
          Return existing WWMediator instance
 

Method Detail

createGoal

Goal createGoal(IRI id)
Creates a goal.

Parameters:
id - The ID of the new goal object.
Returns:
The newly created goal object.

createWebService

WebService createWebService(IRI id)
Creates a new WebService object.

Parameters:
id - The ID of the new service.
Returns:
The new WebService object.

createCapability

Capability createCapability(IRI id)
Creates a new Capability object.

Parameters:
id - The ID of the new Capapbility.
Returns:
The newly created Capability object.

createInterface

Interface createInterface(IRI id)
Creates a new Interface object.

Parameters:
id - The ID of the new interface object.
Returns:
The newly created interface object.

createOntology

Ontology createOntology(IRI id)
Creates a new Ontology object.

Parameters:
id - The ID of the new ontology.
Returns:
The new Ontology object.

createOOMediator

OOMediator createOOMediator(IRI id)
Creates a mediator.

Parameters:
id - The ID of the new mediator object.
Returns:
The newly created mediator.

createWWMediator

WWMediator createWWMediator(IRI id)
Creates a mediator.

Parameters:
id - The ID of the new mediator object.
Returns:
The newly created mediator.

createWGMediator

WGMediator createWGMediator(IRI id)
Creates a mediator.

Parameters:
id - The ID of the new mediator object.
Returns:
The newly created mediator.

createGGMediator

GGMediator createGGMediator(IRI id)
Creates a mediator.

Parameters:
id - The ID of the new mediator object.
Returns:
The newly created mediator.

createAxiom

Axiom createAxiom(Identifier id)
Creates a new Axiom object.

Parameters:
id - The ID of the new Axiom object.
Returns:
The newly created Axion object.

createConcept

Concept createConcept(Identifier id)
Creates a new Concept object.

Parameters:
id - The ID of the new Concept object.
Returns:
The newly created Concept object.

createRelation

Relation createRelation(Identifier id)
Creates a new Relation object.

Parameters:
id - The ID of the new relation.
Returns:
The newly created Relation object.

createInstance

Instance createInstance(Identifier id)
Creates a new Instance object.

Parameters:
id - The ID of the new instance object.
concept - The Concept this Instance object is an instance of
Returns:
The newly created Instance object.

createInstance

Instance createInstance(Identifier id,
                        Concept concept)
                        throws SynchronisationException,
                               InvalidModelException
Creates a new Instance object.

Parameters:
id - The ID of the new instance object.
concept - The Concept of the this Instance object is an instance of
Returns:
The newly created Instance object.
Throws:
SynchronisationException
InvalidModelException

createRelationInstance

RelationInstance createRelationInstance(Relation rel)
                                        throws SynchronisationException,
                                               InvalidModelException
Creates a new RelationInstance object.

Parameters:
rel - The relation this RelationInstance object is an instance of.
Returns:
The newly created RelationInstance object.
Throws:
SynchronisationException
InvalidModelException

createRelationInstance

RelationInstance createRelationInstance(Identifier id,
                                        Relation rel)
                                        throws SynchronisationException,
                                               InvalidModelException
Creates a new RelationInstance object.

Parameters:
id - The ID of the new RelationInstance object.
rel - The relation this RelationInstance object is an instance of.
Returns:
The newly created RelationInstance object.
Throws:
SynchronisationException
InvalidModelException

createNamespace

Namespace createNamespace(String prefix,
                          IRI iri)
Creates a new Namespace object.

Parameters:
prefix - namespace prefix. If null then the namespace should be used only as a default namespace
uri - the IRI of the namespace
Returns:
The newly created Namespace object.

createIRI

IRI createIRI(String fullIRI)
Creates a new IRI object. (for example 'http://www.wsmo.org/x/y/z/')

Parameters:
fullIRI - the IRI (as String)
Returns:
The newly created IRI object.
See Also:
createIRI(Namespace ns, String localPart)

createIRI

IRI createIRI(Namespace ns,
              String localPart)
Creates a new IRI object (for example 'ns:x').

Parameters:
ns - the namespace used
localPart - the local part of the IRI (as String)
Returns:
The newly created IRI object.
See Also:
createIRI(String fullIRI)

createAnonymousID

UnnumberedAnonymousID createAnonymousID()
Creates an unnumbered ID (i.e. '_#')

Returns:
The newly created IRI object.
See Also:
#createAnonymousID(byte number)

getGoal

Goal getGoal(IRI id)
Return an existing Goal instance

Parameters:
id - The ID of the existing Goal objec
Returns:
An existing Goal instance

getWebService

WebService getWebService(IRI id)
Return existing WebService instance

Parameters:
id - The identifier of the WebService
Returns:
WebService instance

getInterface

Interface getInterface(IRI id)
Return an existing Interface instance

Parameters:
id - The identifier of the Interface instance
Returns:
An exisiting Interface instance

getCapability

Capability getCapability(IRI id)
Return existing Capability instance

Parameters:
id - The Capability identifier
Returns:
existing Capability instance

getOntology

Ontology getOntology(IRI id)
Return exisitng Ontology instance

Parameters:
id - The Ontology
Returns:
existing Ontology instance

getOOMediator

OOMediator getOOMediator(IRI id)
Return an existing OOMediator instance

Parameters:
id - The ID of an existing OOMediator
Returns:
existing OOMediator insatnce

getWWMediator

WWMediator getWWMediator(IRI id)
Return existing WWMediator instance

Parameters:
d - Teh ID of the WWMediator instance
Returns:
xiasing WWMedaitor instance

getWGMediator

WGMediator getWGMediator(IRI id)
Return existing WGMediator instance

Parameters:
id - The ID of the WGMediator instance
Returns:
existing WGMediator instance

getGGMediator

GGMediator getGGMediator(IRI id)
Return exiasing GGMediator instance

Parameters:
id - The ID of the GGMediator instance
Returns:
existing GGMediator instance

getAxiom

Axiom getAxiom(Identifier id)
Return existing Axiom instance

Parameters:
id - The ID of the Axiom
Returns:
existing Axiom insatnce

getConcept

Concept getConcept(Identifier id)
Return existing Concept insatnce

Parameters:
id - The ID of the Concept
Returns:
existing Concept Instance

getInstance

Instance getInstance(Identifier id)
Return existing Instance object

Parameters:
id - The ID of the Instance
Returns:
existing Instance object

getRelation

Relation getRelation(Identifier id)
Return existing Relation object

Parameters:
id - The ID of the Relation
Returns:
existing Relation object

getRelationInstance

RelationInstance getRelationInstance(Identifier id)
Return existing RelationInstance object

Parameters:
id - The ID of the RelationInstance
Returns:
existing RelationInstance object

getVariable

Variable getVariable(String name)
Return existing Varible instance

Parameters:
name - The name of the var
Returns:
existing var


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.