com.apelon.dts.client.concept
Class OntylogConceptQuery
java.lang.Object
com.apelon.apelonserver.client.BasicQuery
com.apelon.dts.client.attribute.QualifierTypeQuery
com.apelon.dts.client.attribute.PropertyTypeQuery
com.apelon.dts.client.concept.BaseConceptQuery
com.apelon.dts.client.concept.BaseOntylogConceptQuery
com.apelon.dts.client.concept.OntylogConceptQuery
public abstract class OntylogConceptQuery
- extends BaseOntylogConceptQuery
OntylogConceptQuery
is a subclass of
BaseOntylogConceptQuery
. It can be instantiated to invoke the
methods in BaseOntylogConceptQuery
, which operate on Ontylog
concepts, by using methods createInstance(ServerConnection sc)
or
createInstance(ServerConnection sc, boolean isValidating)
. Ontylog
concepts reside in a standard terminology namespace, provided by subscription
from Apelon, or loaded from a TDE or existing DTS 2.4 database. Concepts in
an Ontylog namespace cannot be added or deleted using DTS (TDE must be used
for this purpose), but properties and synonyms of concepts may be added,
deleted, or modified.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
- Since:
- DTS 3.0.0
- Version:
- DTS 3.0.0
- Author:
- Apelon, Inc.
Methods inherited from class com.apelon.dts.client.concept.BaseOntylogConceptQuery |
addRoleType, assertIsNotNull, deleteRoleType, deleteRoleType, fetchParentReferences, fetchRightIdentityReferences, findRoleTypeByCode, findRoleTypeById, findRoleTypeByName, getAllKinds, getAllRoleTypes, getKinds, getResponse, getRoleTypes, isRoleTypeUsed, updateRoleType |
Methods inherited from class com.apelon.dts.client.concept.BaseConceptQuery |
addConceptListener, addProperty, addSynonym, deleteProperty, deleteSynonym, findConceptByCode, findConceptById, findConceptByName, findConceptsByCode, findConceptsById, findConceptsByName, fireConceptAction, getAllConceptPropertyTypes, getConceptListener, getConceptPropertyTypes, getNamespaceQuery, removeConceptListener, updateProperty, updateSynonym |
Methods inherited from class com.apelon.dts.client.attribute.QualifierTypeQuery |
addKBTypeListener, addQualifierType, deleteQualifierType, findQualifierTypeByCode, findQualifierTypeById, findQualifierTypeByName, fireKBTypeAction, getAllConceptAssociationQualifierTypes, getAllConceptPropertyQualifierTypes, getAllQualifierTypes, getAllTermAssociationQualifierTypes, getAllTermPropertyQualifierTypes, getConceptAssociationQualifierTypes, getConceptPropertyQualifierTypes, getKBTypeListener, getTermAssociationQualifierTypes, getTermPropertyQualifierTypes, removeKBTypeListener, updateQualifierType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createInstance
public static OntylogConceptQuery createInstance(ServerConnection sc)
throws IllegalArgumentException
- Creates an instance of
OntylogConceptQuery
. Depending on the
type of ServerConnection object passed in the argument, the server may be
local (JDBC), socket, or another implementation. When using a socket
connection, the Apelon DTS server must be configured with the following
query servers to support OntylogConceptQuery:
com.apelon.dts.server.OntylogConceptServer
com.apelon.dts.server.NamespaceServer
If you're using a JDBC connection, you'll need to add something like the
following lines:
ServerConnectionJDBC scJDBC = new ServerConnectionJDBC(user, password,
host, port, instance);
OntylogConceptQuery ontylogConceptQuery =
OntylogConceptQuery.createInstance(scJDBC);
scJDBC.setQueryServer(com.apelon.dts.server.OntylogConceptServer.class,
DTSHeader.ONTYLOGCONCEPTSERVER_HEADER);
scJDBC.setQueryServer(com.apelon.dts.server.NamespaceServer.class,
DTSHeader.NAMESPACESERVER_HEADER);
- Parameters:
sc
- the server connection
- Returns:
- the created OntylogConceptQuery
- Throws:
IllegalArgumentException
- if a null server connection is passed- See Also:
ServerConnectionJDBC
,
ServerConnectionSocket
,
ServerConnectionSecureSocket
createInstance
public static OntylogConceptQuery createInstance(ServerConnection sc,
boolean isValidating)
throws IllegalArgumentException
- Creates an instance of
OntylogConceptQuery
. Depending on the
type of ServerConnection object passed in the first argument, the server
may be local (JDBC), socket, or another implementation. The second
argument is a boolean value for XML validation. When using a socket
connection, the Apelon DTS server must be configured with the following
query servers to support OntylogConceptQuery:
com.apelon.dts.server.OntylogConceptServer
com.apelon.dts.server.NamespaceServer
If you're using a JDBC connection, you'll need to add something like the
following lines:
ServerConnectionJDBC scJDBC = new ServerConnectionJDBC(user, password,
host, port, instance);
OntylogConceptQuery ontylogConceptQuery =
OntylogConceptQuery.createInstance(scJDBC, true);
scJDBC.setQueryServer(com.apelon.dts.server.OntylogConceptServer.class,
DTSHeader.ONTYLOGCONCEPTSERVER_HEADER);
scJDBC.setQueryServer(com.apelon.dts.server.NamespaceServer.class,
DTSHeader.NAMESPACESERVER_HEADER);
- Parameters:
sc
- the server connectionisValidating
- true
if XML needs to be
validated, false
otherwise.
- Returns:
- the created OntylogConceptQuery
- Throws:
IllegalArgumentException
- if a null server connection is passed- See Also:
ServerConnectionJDBC
,
ServerConnectionSocket
,
ServerConnectionSecureSocket
Copyright © 2011. All Rights Reserved.