getFailedLines
Downloads CSV file with failed RDF lines for the specified job
/linked-data-import/jobs/{jobId}/failed-lines
Usage and SDK Samples
curl -X GET \
-H "Accept: text/csv" \
"http://localhost/linked-data-import/jobs/{jobId}/failed-lines"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportJobApi;
import java.io.File;
import java.util.*;
public class ImportJobApiExample {
public static void main(String[] args) {
// Create an instance of the API class
ImportJobApi apiInstance = new ImportJobApi();
Long jobId = 789; // Long | The ID of the Import Job Instance
try {
File result = apiInstance.getFailedLines(jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ImportJobApi#getFailedLines");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Long jobId = new Long(); // Long | The ID of the Import Job Instance
try {
final result = await api_instance.getFailedLines(jobId);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->getFailedLines: $e\n');
}
import org.openapitools.client.api.ImportJobApi;
public class ImportJobApiExample {
public static void main(String[] args) {
ImportJobApi apiInstance = new ImportJobApi();
Long jobId = 789; // Long | The ID of the Import Job Instance
try {
File result = apiInstance.getFailedLines(jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ImportJobApi#getFailedLines");
e.printStackTrace();
}
}
}
// Create an instance of the API class
ImportJobApi *apiInstance = [[ImportJobApi alloc] init];
Long *jobId = 789; // The ID of the Import Job Instance (default to null)
[apiInstance getFailedLinesWith:jobId
completionHandler: ^(File output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var LinkedDataImportApi = require('linked_data_import_api');
// Create an instance of the API class
var api = new LinkedDataImportApi.ImportJobApi()
var jobId = 789; // {Long} The ID of the Import Job Instance
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getFailedLines(jobId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getFailedLinesExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new ImportJobApi();
var jobId = 789; // Long | The ID of the Import Job Instance (default to null)
try {
File result = apiInstance.getFailedLines(jobId);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ImportJobApi.getFailedLines: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportJobApi();
$jobId = 789; // Long | The ID of the Import Job Instance
try {
$result = $api_instance->getFailedLines($jobId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ImportJobApi->getFailedLines: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportJobApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportJobApi->new();
my $jobId = 789; # Long | The ID of the Import Job Instance
eval {
my $result = $api_instance->getFailedLines(jobId => $jobId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ImportJobApi->getFailedLines: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.ImportJobApi()
jobId = 789 # Long | The ID of the Import Job Instance (default to null)
try:
api_response = api_instance.get_failed_lines(jobId)
pprint(api_response)
except ApiException as e:
print("Exception when calling ImportJobApi->getFailedLines: %s\n" % e)
extern crate ImportJobApi;
pub fn main() {
let jobId = 789; // Long
let mut context = ImportJobApi::Context::default();
let result = client.getFailedLines(jobId, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
| Name | Description |
|---|---|
| jobId* |
Long
(int64)
The ID of the Import Job Instance
Required
|
Responses
| Name | Type | Format | Description |
|---|---|---|---|
| Content-Disposition | String | Attachment header for file download |