public class CorporaApi extends Object
| Constructor and Description |
|---|
CorporaApi() |
CorporaApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
List<Component> |
components(String corpus,
String type,
String name)
List all edge components of the corpus.
|
okhttp3.Call |
componentsAsync(String corpus,
String type,
String name,
ApiCallback<List<Component>> _callback)
List all edge components of the corpus.
|
okhttp3.Call |
componentsCall(String corpus,
String type,
String name,
ApiCallback _callback)
Build call for components
|
ApiResponse<List<Component>> |
componentsWithHttpInfo(String corpus,
String type,
String name)
List all edge components of the corpus.
|
CorpusConfiguration |
corpusConfiguration(String corpus)
Get the corpus configuration object.
|
okhttp3.Call |
corpusConfigurationAsync(String corpus,
ApiCallback<CorpusConfiguration> _callback)
Get the corpus configuration object.
|
okhttp3.Call |
corpusConfigurationCall(String corpus,
ApiCallback _callback)
Build call for corpusConfiguration
|
ApiResponse<CorpusConfiguration> |
corpusConfigurationWithHttpInfo(String corpus)
Get the corpus configuration object.
|
void |
deleteCorpus(String corpus)
Delete the given corpus.
|
okhttp3.Call |
deleteCorpusAsync(String corpus,
ApiCallback<Void> _callback)
Delete the given corpus.
|
okhttp3.Call |
deleteCorpusCall(String corpus,
ApiCallback _callback)
Build call for deleteCorpus
|
ApiResponse<Void> |
deleteCorpusWithHttpInfo(String corpus)
Delete the given corpus.
|
List<Annotation> |
edgeAnnotations(String corpus,
String type,
String layer,
String name,
Boolean listValues,
Boolean onlyMostFrequentValues)
List all annotations of the corpus for a given edge component
|
okhttp3.Call |
edgeAnnotationsAsync(String corpus,
String type,
String layer,
String name,
Boolean listValues,
Boolean onlyMostFrequentValues,
ApiCallback<List<Annotation>> _callback)
List all annotations of the corpus for a given edge component (asynchronously)
|
okhttp3.Call |
edgeAnnotationsCall(String corpus,
String type,
String layer,
String name,
Boolean listValues,
Boolean onlyMostFrequentValues,
ApiCallback _callback)
Build call for edgeAnnotations
|
ApiResponse<List<Annotation>> |
edgeAnnotationsWithHttpInfo(String corpus,
String type,
String layer,
String name,
Boolean listValues,
Boolean onlyMostFrequentValues)
List all annotations of the corpus for a given edge component
|
ApiClient |
getApiClient() |
File |
getFile(String corpus,
String name)
Get an associated file for the corpus by its name.
|
okhttp3.Call |
getFileAsync(String corpus,
String name,
ApiCallback<File> _callback)
Get an associated file for the corpus by its name.
|
okhttp3.Call |
getFileCall(String corpus,
String name,
ApiCallback _callback)
Build call for getFile
|
ApiResponse<File> |
getFileWithHttpInfo(String corpus,
String name)
Get an associated file for the corpus by its name.
|
List<String> |
listCorpora()
Get a list of all corpora the user is authorized to use.
|
okhttp3.Call |
listCorporaAsync(ApiCallback<List<String>> _callback)
Get a list of all corpora the user is authorized to use.
|
okhttp3.Call |
listCorporaCall(ApiCallback _callback)
Build call for listCorpora
|
ApiResponse<List<String>> |
listCorporaWithHttpInfo()
Get a list of all corpora the user is authorized to use.
|
List<String> |
listFiles(String corpus,
String node)
List the names of all associated file for the corpus.
|
okhttp3.Call |
listFilesAsync(String corpus,
String node,
ApiCallback<List<String>> _callback)
List the names of all associated file for the corpus.
|
okhttp3.Call |
listFilesCall(String corpus,
String node,
ApiCallback _callback)
Build call for listFiles
|
ApiResponse<List<String>> |
listFilesWithHttpInfo(String corpus,
String node)
List the names of all associated file for the corpus.
|
List<Annotation> |
nodeAnnotations(String corpus,
Boolean listValues,
Boolean onlyMostFrequentValues)
List all node annotations of the corpus.
|
okhttp3.Call |
nodeAnnotationsAsync(String corpus,
Boolean listValues,
Boolean onlyMostFrequentValues,
ApiCallback<List<Annotation>> _callback)
List all node annotations of the corpus.
|
okhttp3.Call |
nodeAnnotationsCall(String corpus,
Boolean listValues,
Boolean onlyMostFrequentValues,
ApiCallback _callback)
Build call for nodeAnnotations
|
ApiResponse<List<Annotation>> |
nodeAnnotationsWithHttpInfo(String corpus,
Boolean listValues,
Boolean onlyMostFrequentValues)
List all node annotations of the corpus.
|
void |
setApiClient(ApiClient apiClient) |
File |
subgraphForNodes(String corpus,
SubgraphWithContext subgraphWithContext)
Get a subgraph of the corpus format given a list of nodes and a context.
|
okhttp3.Call |
subgraphForNodesAsync(String corpus,
SubgraphWithContext subgraphWithContext,
ApiCallback<File> _callback)
Get a subgraph of the corpus format given a list of nodes and a context.
|
okhttp3.Call |
subgraphForNodesCall(String corpus,
SubgraphWithContext subgraphWithContext,
ApiCallback _callback)
Build call for subgraphForNodes
|
ApiResponse<File> |
subgraphForNodesWithHttpInfo(String corpus,
SubgraphWithContext subgraphWithContext)
Get a subgraph of the corpus format given a list of nodes and a context.
|
File |
subgraphForQuery(String corpus,
String query,
QueryLanguage queryLanguage,
AnnotationComponentType componentTypeFilter)
Get a subgraph of the corpus format given a list of nodes and a context.
|
okhttp3.Call |
subgraphForQueryAsync(String corpus,
String query,
QueryLanguage queryLanguage,
AnnotationComponentType componentTypeFilter,
ApiCallback<File> _callback)
Get a subgraph of the corpus format given a list of nodes and a context.
|
okhttp3.Call |
subgraphForQueryCall(String corpus,
String query,
QueryLanguage queryLanguage,
AnnotationComponentType componentTypeFilter,
ApiCallback _callback)
Build call for subgraphForQuery
|
ApiResponse<File> |
subgraphForQueryWithHttpInfo(String corpus,
String query,
QueryLanguage queryLanguage,
AnnotationComponentType componentTypeFilter)
Get a subgraph of the corpus format given a list of nodes and a context.
|
public CorporaApi()
public CorporaApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call componentsCall(String corpus, String type, String name, ApiCallback _callback) throws ApiException
corpus - The name of the corpus to get the components for. (required)type - Only return components with this type. (optional)name - Only return components with this name. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic List<Component> components(String corpus, String type, String name) throws ApiException
corpus - The name of the corpus to get the components for. (required)type - Only return components with this type. (optional)name - Only return components with this name. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<Component>> componentsWithHttpInfo(String corpus, String type, String name) throws ApiException
corpus - The name of the corpus to get the components for. (required)type - Only return components with this type. (optional)name - Only return components with this name. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call componentsAsync(String corpus, String type, String name, ApiCallback<List<Component>> _callback) throws ApiException
corpus - The name of the corpus to get the components for. (required)type - Only return components with this type. (optional)name - Only return components with this name. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call corpusConfigurationCall(String corpus, ApiCallback _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic CorpusConfiguration corpusConfiguration(String corpus) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<CorpusConfiguration> corpusConfigurationWithHttpInfo(String corpus) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call corpusConfigurationAsync(String corpus, ApiCallback<CorpusConfiguration> _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call deleteCorpusCall(String corpus, ApiCallback _callback) throws ApiException
corpus - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void deleteCorpus(String corpus) throws ApiException
corpus - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteCorpusWithHttpInfo(String corpus) throws ApiException
corpus - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deleteCorpusAsync(String corpus, ApiCallback<Void> _callback) throws ApiException
corpus - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call edgeAnnotationsCall(String corpus, String type, String layer, String name, Boolean listValues, Boolean onlyMostFrequentValues, ApiCallback _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)type - The component type. (required)layer - The component layer. (required)name - The component name. (required)listValues - If true, possible values are returned. (optional, default to false)onlyMostFrequentValues - If true, only the most frequent value per annotation is returned. (optional, default to false)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic List<Annotation> edgeAnnotations(String corpus, String type, String layer, String name, Boolean listValues, Boolean onlyMostFrequentValues) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)type - The component type. (required)layer - The component layer. (required)name - The component name. (required)listValues - If true, possible values are returned. (optional, default to false)onlyMostFrequentValues - If true, only the most frequent value per annotation is returned. (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<Annotation>> edgeAnnotationsWithHttpInfo(String corpus, String type, String layer, String name, Boolean listValues, Boolean onlyMostFrequentValues) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)type - The component type. (required)layer - The component layer. (required)name - The component name. (required)listValues - If true, possible values are returned. (optional, default to false)onlyMostFrequentValues - If true, only the most frequent value per annotation is returned. (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call edgeAnnotationsAsync(String corpus, String type, String layer, String name, Boolean listValues, Boolean onlyMostFrequentValues, ApiCallback<List<Annotation>> _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)type - The component type. (required)layer - The component layer. (required)name - The component name. (required)listValues - If true, possible values are returned. (optional, default to false)onlyMostFrequentValues - If true, only the most frequent value per annotation is returned. (optional, default to false)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call getFileCall(String corpus, String name, ApiCallback _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)name - The name of the file node. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic File getFile(String corpus, String name) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)name - The name of the file node. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> getFileWithHttpInfo(String corpus, String name) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)name - The name of the file node. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getFileAsync(String corpus, String name, ApiCallback<File> _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)name - The name of the file node. (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call listCorporaCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic List<String> listCorpora() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<String>> listCorporaWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call listCorporaAsync(ApiCallback<List<String>> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call listFilesCall(String corpus, String node, ApiCallback _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)node - If given, only the files for the (sub-) corpus or document with this ID are returned. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic List<String> listFiles(String corpus, String node) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)node - If given, only the files for the (sub-) corpus or document with this ID are returned. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<String>> listFilesWithHttpInfo(String corpus, String node) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)node - If given, only the files for the (sub-) corpus or document with this ID are returned. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call listFilesAsync(String corpus, String node, ApiCallback<List<String>> _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)node - If given, only the files for the (sub-) corpus or document with this ID are returned. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call nodeAnnotationsCall(String corpus, Boolean listValues, Boolean onlyMostFrequentValues, ApiCallback _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)listValues - If true, possible values are returned. (optional, default to false)onlyMostFrequentValues - If true, only the most frequent value per annotation is returned. (optional, default to false)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic List<Annotation> nodeAnnotations(String corpus, Boolean listValues, Boolean onlyMostFrequentValues) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)listValues - If true, possible values are returned. (optional, default to false)onlyMostFrequentValues - If true, only the most frequent value per annotation is returned. (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<Annotation>> nodeAnnotationsWithHttpInfo(String corpus, Boolean listValues, Boolean onlyMostFrequentValues) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)listValues - If true, possible values are returned. (optional, default to false)onlyMostFrequentValues - If true, only the most frequent value per annotation is returned. (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call nodeAnnotationsAsync(String corpus, Boolean listValues, Boolean onlyMostFrequentValues, ApiCallback<List<Annotation>> _callback) throws ApiException
corpus - The name of the corpus to get the configuration for. (required)listValues - If true, possible values are returned. (optional, default to false)onlyMostFrequentValues - If true, only the most frequent value per annotation is returned. (optional, default to false)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call subgraphForNodesCall(String corpus, SubgraphWithContext subgraphWithContext, ApiCallback _callback) throws ApiException
corpus - The name of the corpus to get the subgraph for. (required)subgraphWithContext - The definition of the subgraph to extract. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic File subgraphForNodes(String corpus, SubgraphWithContext subgraphWithContext) throws ApiException
corpus - The name of the corpus to get the subgraph for. (required)subgraphWithContext - The definition of the subgraph to extract. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> subgraphForNodesWithHttpInfo(String corpus, SubgraphWithContext subgraphWithContext) throws ApiException
corpus - The name of the corpus to get the subgraph for. (required)subgraphWithContext - The definition of the subgraph to extract. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call subgraphForNodesAsync(String corpus, SubgraphWithContext subgraphWithContext, ApiCallback<File> _callback) throws ApiException
corpus - The name of the corpus to get the subgraph for. (required)subgraphWithContext - The definition of the subgraph to extract. (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call subgraphForQueryCall(String corpus, String query, QueryLanguage queryLanguage, AnnotationComponentType componentTypeFilter, ApiCallback _callback) throws ApiException
corpus - The name of the corpus to get the subgraph for. (required)query - The query which defines the nodes to include. (required)queryLanguage - (optional, default to AQL)componentTypeFilter - If given, restricts the included edges to components with the given type. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic File subgraphForQuery(String corpus, String query, QueryLanguage queryLanguage, AnnotationComponentType componentTypeFilter) throws ApiException
corpus - The name of the corpus to get the subgraph for. (required)query - The query which defines the nodes to include. (required)queryLanguage - (optional, default to AQL)componentTypeFilter - If given, restricts the included edges to components with the given type. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> subgraphForQueryWithHttpInfo(String corpus, String query, QueryLanguage queryLanguage, AnnotationComponentType componentTypeFilter) throws ApiException
corpus - The name of the corpus to get the subgraph for. (required)query - The query which defines the nodes to include. (required)queryLanguage - (optional, default to AQL)componentTypeFilter - If given, restricts the included edges to components with the given type. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call subgraphForQueryAsync(String corpus, String query, QueryLanguage queryLanguage, AnnotationComponentType componentTypeFilter, ApiCallback<File> _callback) throws ApiException
corpus - The name of the corpus to get the subgraph for. (required)query - The query which defines the nodes to include. (required)queryLanguage - (optional, default to AQL)componentTypeFilter - If given, restricts the included edges to components with the given type. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.