Linked Data Import API

ImportStart

startImport

Start the process of Linked Data Import


/linked-data-import/start

Usage and SDK Samples

curl -X POST \
 "http://localhost/linked-data-import/start?fileUrl=fileUrl_example&contentType=contentType_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportStartApi;

import java.io.File;
import java.util.*;

public class ImportStartApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ImportStartApi apiInstance = new ImportStartApi();
        String fileUrl = fileUrl_example; // String | The URL of the file to be imported from S3
        String contentType = contentType_example; // String | Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default.

        try {
            apiInstance.startImport(fileUrl, contentType);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportStartApi#startImport");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String fileUrl = new String(); // String | The URL of the file to be imported from S3
final String contentType = new String(); // String | Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default.

try {
    final result = await api_instance.startImport(fileUrl, contentType);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->startImport: $e\n');
}

import org.openapitools.client.api.ImportStartApi;

public class ImportStartApiExample {
    public static void main(String[] args) {
        ImportStartApi apiInstance = new ImportStartApi();
        String fileUrl = fileUrl_example; // String | The URL of the file to be imported from S3
        String contentType = contentType_example; // String | Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default.

        try {
            apiInstance.startImport(fileUrl, contentType);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportStartApi#startImport");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ImportStartApi *apiInstance = [[ImportStartApi alloc] init];
String *fileUrl = fileUrl_example; // The URL of the file to be imported from S3 (default to null)
String *contentType = contentType_example; // Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default. (optional) (default to null)

[apiInstance startImportWith:fileUrl
    contentType:contentType
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var LinkedDataImportApi = require('linked_data_import_api');

// Create an instance of the API class
var api = new LinkedDataImportApi.ImportStartApi()
var fileUrl = fileUrl_example; // {String} The URL of the file to be imported from S3
var opts = {
  'contentType': contentType_example // {String} Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.startImport(fileUrl, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class startImportExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ImportStartApi();
            var fileUrl = fileUrl_example;  // String | The URL of the file to be imported from S3 (default to null)
            var contentType = contentType_example;  // String | Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default. (optional)  (default to null)

            try {
                apiInstance.startImport(fileUrl, contentType);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportStartApi.startImport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportStartApi();
$fileUrl = fileUrl_example; // String | The URL of the file to be imported from S3
$contentType = contentType_example; // String | Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default.

try {
    $api_instance->startImport($fileUrl, $contentType);
} catch (Exception $e) {
    echo 'Exception when calling ImportStartApi->startImport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportStartApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportStartApi->new();
my $fileUrl = fileUrl_example; # String | The URL of the file to be imported from S3
my $contentType = contentType_example; # String | Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default.

eval {
    $api_instance->startImport(fileUrl => $fileUrl, contentType => $contentType);
};
if ($@) {
    warn "Exception when calling ImportStartApi->startImport: $@\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.ImportStartApi()
fileUrl = fileUrl_example # String | The URL of the file to be imported from S3 (default to null)
contentType = contentType_example # String | Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default. (optional) (default to null)

try:
    api_instance.start_import(fileUrl, contentType=contentType)
except ApiException as e:
    print("Exception when calling ImportStartApi->startImport: %s\n" % e)
extern crate ImportStartApi;

pub fn main() {
    let fileUrl = fileUrl_example; // String
    let contentType = contentType_example; // String

    let mut context = ImportStartApi::Context::default();
    let result = client.startImport(fileUrl, contentType, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
fileUrl*
String
The URL of the file to be imported from S3
Required
contentType
String
Content type of the file to be imported (e.g., application/ld+json, text/turtle). JSON by default.

Responses