Interface SearchStrategy
- All Superinterfaces:
Extension
- All Known Implementing Classes:
AbstractSearchStrategy
Common interface abstracting different search mechanisms.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
void
initialize
(String projectName, org.eclipse.rdf4j.repository.RepositoryConnection connection, boolean forceCreation) Performs initialization steps, such as the creation of indexes.boolean
isSearchPossible
(String projectName, org.eclipse.rdf4j.repository.RepositoryConnection connection, boolean throwExceptionIfNotSearchNotPossible) searchInstancesOfClass
(STServiceContext stServiceContext, List<List<org.eclipse.rdf4j.model.IRI>> clsListList, String searchString, boolean useLexicalizations, boolean useLocalName, boolean useURI, boolean useNotes, SearchMode searchMode, List<String> langs, boolean includeLocales, boolean searchStringCanBeNull, boolean searchInSubTypes, org.eclipse.rdf4j.model.IRI lexModel, boolean searchInRDFSLabel, boolean searchInSKOSLabel, boolean searchInSKOSXLLabel, boolean searchInOntolex, List<List<org.eclipse.rdf4j.model.IRI>> schemes, SearchStrategy.StatusFilter statusFilter, List<Pair<org.eclipse.rdf4j.model.IRI, List<org.eclipse.rdf4j.model.Value>>> outgoingLinks, List<TripleForSearch<org.eclipse.rdf4j.model.IRI, String, SearchMode>> outgoingSearch, List<Pair<org.eclipse.rdf4j.model.IRI, List<org.eclipse.rdf4j.model.Value>>> ingoingLinks, SearchStrategy searchStrategy, String baseURI, Map<String, String> prefixToNamespaceMap, boolean includeNonDirect) searchLexicalEntry
(STServiceContext stServiceContext, String searchString, boolean useLexicalizations, boolean useLocalName, boolean useURI, boolean useNotes, SearchMode searchMode, List<org.eclipse.rdf4j.model.IRI> lexicons, List<String> langs, boolean includeLocales, org.eclipse.rdf4j.model.IRI iri, boolean searchInRDFSLabel, boolean searchInSKOSLabel, boolean searchInSKOSXLLabel, boolean searchInOntolex, Map<String, String> prefixToNamespaceMap) searchResource
(STServiceContext stServiceContext, String searchString, String[] rolesArray, boolean useLexicalizations, boolean useLocalName, boolean useURI, boolean useNotes, SearchMode searchMode, List<org.eclipse.rdf4j.model.IRI> schemes, String schemeFilter, List<String> langs, boolean includeLocales, org.eclipse.rdf4j.model.IRI lexModel, boolean searchInRDFSLabel, boolean searchInSKOSLabel, boolean searchInSKOSXLLabel, boolean searchInOntolex, Map<String, String> prefixToNamespaceMap) searchSpecificModePrepareQuery
(String variable, String value, SearchMode searchMode, String indexToUse, List<String> langs, boolean includeLocales, boolean forLocalName) searchStringList
(STServiceContext stServiceContext, String searchString, String[] rolesArray, boolean useLocalName, SearchMode searchMode, List<org.eclipse.rdf4j.model.IRI> schemes, String schemeFilter, List<String> langs, org.eclipse.rdf4j.model.IRI cls, boolean includeLocales) searchURIList
(STServiceContext stServiceContext, String searchString, String[] rolesArray, SearchMode searchMode, List<org.eclipse.rdf4j.model.IRI> schemes, String schemeFilter, org.eclipse.rdf4j.model.IRI cls, Map<String, String> prefixToNamespaceMap, int maxNumResults) void
Updates support resources (usually created insideinitialize(String, RepositoryConnection, boolean)
).
-
Method Details
-
initialize
void initialize(String projectName, org.eclipse.rdf4j.repository.RepositoryConnection connection, boolean forceCreation) throws Exception Performs initialization steps, such as the creation of indexes. It may be a no-op method, if no specific initialization is required.- Throws:
Exception
-
update
void update(String projectName, org.eclipse.rdf4j.repository.RepositoryConnection connection) throws Exception Updates support resources (usually created insideinitialize(String, RepositoryConnection, boolean)
).- Throws:
Exception
-
searchResource
String searchResource(STServiceContext stServiceContext, String searchString, String[] rolesArray, boolean useLexicalizations, boolean useLocalName, boolean useURI, boolean useNotes, SearchMode searchMode, @Nullable List<org.eclipse.rdf4j.model.IRI> schemes, String schemeFilter, @Nullable List<String> langs, boolean includeLocales, org.eclipse.rdf4j.model.IRI lexModel, boolean searchInRDFSLabel, boolean searchInSKOSLabel, boolean searchInSKOSXLLabel, boolean searchInOntolex, Map<String, String> prefixToNamespaceMap) throws IllegalStateException, STPropertyAccessException, SearchStatusException -
searchStringList
Collection<String> searchStringList(STServiceContext stServiceContext, String searchString, @Optional String[] rolesArray, boolean useLocalName, SearchMode searchMode, @Nullable List<org.eclipse.rdf4j.model.IRI> schemes, String schemeFilter, @Nullable List<String> langs, @Nullable org.eclipse.rdf4j.model.IRI cls, boolean includeLocales) throws IllegalStateException, STPropertyAccessException, SearchStatusException -
searchURIList
Collection<String> searchURIList(STServiceContext stServiceContext, String searchString, @Optional String[] rolesArray, SearchMode searchMode, @Nullable List<org.eclipse.rdf4j.model.IRI> schemes, String schemeFilter, @Nullable org.eclipse.rdf4j.model.IRI cls, Map<String, String> prefixToNamespaceMap, int maxNumResults) throws IllegalStateException, STPropertyAccessException, SearchStatusException -
searchInstancesOfClass
String searchInstancesOfClass(STServiceContext stServiceContext, List<List<org.eclipse.rdf4j.model.IRI>> clsListList, String searchString, boolean useLexicalizations, boolean useLocalName, boolean useURI, boolean useNotes, SearchMode searchMode, @Nullable List<String> langs, boolean includeLocales, boolean searchStringCanBeNull, boolean searchInSubTypes, org.eclipse.rdf4j.model.IRI lexModel, boolean searchInRDFSLabel, boolean searchInSKOSLabel, boolean searchInSKOSXLLabel, boolean searchInOntolex, @Nullable List<List<org.eclipse.rdf4j.model.IRI>> schemes, SearchStrategy.StatusFilter statusFilter, @Nullable List<Pair<org.eclipse.rdf4j.model.IRI, List<org.eclipse.rdf4j.model.Value>>> outgoingLinks, @Nullable List<TripleForSearch<org.eclipse.rdf4j.model.IRI, throws IllegalStateException, STPropertyAccessException, SearchStatusExceptionString, SearchMode>> outgoingSearch, @JsonSerialized List<Pair<org.eclipse.rdf4j.model.IRI, List<org.eclipse.rdf4j.model.Value>>> ingoingLinks, SearchStrategy searchStrategy, String baseURI, Map<String, String> prefixToNamespaceMap, boolean includeNonDirect) -
searchSpecificModePrepareQuery
-
searchLexicalEntry
String searchLexicalEntry(STServiceContext stServiceContext, String searchString, boolean useLexicalizations, boolean useLocalName, boolean useURI, boolean useNotes, SearchMode searchMode, List<org.eclipse.rdf4j.model.IRI> lexicons, List<String> langs, boolean includeLocales, org.eclipse.rdf4j.model.IRI iri, boolean searchInRDFSLabel, boolean searchInSKOSLabel, boolean searchInSKOSXLLabel, boolean searchInOntolex, Map<String, String> prefixToNamespaceMap) throws IllegalStateException, STPropertyAccessException, SearchStatusException -
isSearchPossible
boolean isSearchPossible(String projectName, org.eclipse.rdf4j.repository.RepositoryConnection connection, boolean throwExceptionIfNotSearchNotPossible) throws SearchStatusException - Throws:
SearchStatusException
-
getAllPathRestToLexicalEntry
-