Basic Http In to Console
Used Components
Setup
For this setup, we will start with a Http Listener who will take in data and write it back out via the console
ldio.config.yaml:
orchestrator:
pipelines:
- name: data
description: "This pipeline uses a HTTP listener to read incoming RDF data and writes them to the console"
input:
name: Ldio:HttpIn
adapter:
name: Ldio:RdfAdapter
outputs:
- name: Ldio:ConsoleOut
Execution
We can now post the following data to http://{hostname}:{port}/data
whilst including the header Content-Type: application/n-quads
:
{
"@context": "http://schema.org/",
"@type": "Person",
"name": "Jane Doe",
"jobTitle": "Professor",
"telephone": "(425) 123-4567",
"url": "http://www.janedoe.com"
}
If done successfully, you will see in the console the converted model which defaults to application/n-quads:
_:b0 <http://schema.org/jobTitle> "Professor" .
_:b0 <http://schema.org/name> "Jane Doe" .
_:b0 <http://schema.org/telephone> "(425) 123-4567" .
_:b0 <http://schema.org/url> <http://www.janedoe.com> .
_:b0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> .