Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

API

HTTP Request

URL Template

Description

Process

GET

/process?inputFileURL=<input-file-url>

Tells the Lens to ingest the file located at the specified URL location

Config

GET

/config

Displays all Lens configuration as JSON

GET

/config?paths=<config-options>

Displays all Lens configuration specified in the comma-separated list

License

GET

/license

Displays license information

RML

GET

/rml

Displays the current RML mapping file, this is displayed as Turtle RDF serialisation

PUT

/rml

Deploys a new mapping file into Lens specified in the request body

Functions

PUT

/functions

Allows for the deploying of new custom functions to the Lens. Please note that the Lens’s UPLOAD_CUSTOM_FUNCTIONS configuration option must be set to true to expose this endpoint.

Config

The config endpoint is a GET request that allows you to view the configuration settings of a running lens. By sending GET http://<lens-ip>:<lens-port>/config (for example http://127.0.0.1:8080/config), you will receive the entire configuration represented as a JSON, as seen in this small snippet below. All confidential values (such as AWS credentials) are replaced with the fixed string “REDACTED“.

...