Class RemoteTopicIndex
java.lang.Object
net.ontopia.topicmaps.utils.tmrap.RemoteTopicIndex
- All Implemented Interfaces:
IndexIF,TopicIndexIF
EXPERIMENTAL: An implementation that looks up topics on remote
servers using the TM RAP protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected TopicMapStoreFactoryIFprotected Stringprotected Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionRemoteTopicIndex(String editBaseuri, String viewBaseuri) RemoteTopicIndex(String editBaseuri, String viewBaseuri, TopicMapStoreFactoryIF factory) RemoteTopicIndex(String editBaseuri, String viewBaseuri, TopicMapStoreFactoryIF factory, String tmid) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Lets go of any underlying resources used by the index.protected InputSourcegetInputSource(String method, String params, boolean compress) getTopicPages(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects) Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.getTopicPages2(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects) Returns all known topic pages for the topics whose identity matches one of the locators passed as arguments.getTopics(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects) Returns all topics the index knows about whose identity matches one the of the locators passed as arguments.static booleanisVirtualReference(String address) voidloadAssociationTypes(TopicMapIF topicmap) voidloadQuery(TopicMapIF topicmap, String query) loadRelatedTopics(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects, boolean two_steps) voidloadTopicTypes(TopicMapIF topicmap) static StringresolveVirtualReference(String address, String tmid) voidsetStoreFactory(TopicMapStoreFactoryIF storefactory) static StringsourceTopicMapFromVirtualReference(String address)
-
Field Details
-
VIRTUAL_URN
- See Also:
-
editBaseuri
-
viewBaseuri
-
storefactory
-
tmid
-
-
Constructor Details
-
RemoteTopicIndex
-
RemoteTopicIndex
-
RemoteTopicIndex
public RemoteTopicIndex(String editBaseuri, String viewBaseuri, TopicMapStoreFactoryIF factory, String tmid)
-
-
Method Details
-
getTopics
public Collection<TopicIF> getTopics(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects) Description copied from interface:TopicIndexIFReturns all topics the index knows about whose identity matches one the of the locators passed as arguments.- Specified by:
getTopicsin interfaceTopicIndexIF- Parameters:
indicators- A collection of subject identifiers as LocatorIF objects.sources- A collection of source locators as LocatorIF objects.subjects- A colleciton of subject locators as LocatorIF objects.- Returns:
- Collection of TopicIF
-
loadRelatedTopics
public Collection<TopicIF> loadRelatedTopics(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects, boolean two_steps) - Specified by:
loadRelatedTopicsin interfaceTopicIndexIF
-
getTopicPages
public Collection<TopicPage> getTopicPages(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects) Description copied from interface:TopicIndexIFReturns all known topic pages for the topics whose identity matches one of the locators passed as arguments.- Specified by:
getTopicPagesin interfaceTopicIndexIF- Parameters:
indicators- A collection of subject identifiers as LocatorIF objects.sources- A collection of source locators as LocatorIF objects.subjects- A colleciton of subject locators as LocatorIF objects.- Returns:
- Collection of TopicPage
-
getTopicPages2
public TopicPages getTopicPages2(Collection<LocatorIF> indicators, Collection<LocatorIF> sources, Collection<LocatorIF> subjects) Description copied from interface:TopicIndexIFReturns all known topic pages for the topics whose identity matches one of the locators passed as arguments.- Specified by:
getTopicPages2in interfaceTopicIndexIF- Parameters:
indicators- A collection of subject identifiers as LocatorIF objects.sources- A collection of source locators as LocatorIF objects.subjects- A colleciton of subject locators as LocatorIF objects.- Returns:
- Collection of TopicPage
-
loadAssociationTypes
- Throws:
IOException
-
loadTopicTypes
- Throws:
IOException
-
loadQuery
- Throws:
IOException
-
close
public void close()Description copied from interface:TopicIndexIFLets go of any underlying resources used by the index. Must be called when used with the RDBMS backend.- Specified by:
closein interfaceTopicIndexIF
-
setStoreFactory
-
getInputSource
protected InputSource getInputSource(String method, String params, boolean compress) throws IOException - Throws:
IOException
-
isVirtualReference
-
resolveVirtualReference
-
sourceTopicMapFromVirtualReference
-