HowTo - Lens2Northwind (Lens2OData + OData2SPARQL + RDF4J + northwind data) Docker container Usage

HowTo - Lens2Northwind (Lens2OData + OData2SPARQL + RDF4J + northwind data) Docker container Usage

lens2odata makes query answering over OData and Linked-Data far easier, using a graphical experience for composing even complex queries, and is available as a Docker image, using the well known Northwind database as an example.

Assuming you have a working docker installation:

  1. Pull the inova8/lens2northwind docker image:
$ docker pull inova8/lens2northwind
  1. Run the inova8/lens2northwind docker image, publishing itself on port 8080:
$ docker run --publish 8080:8080 inova8/lens2northwind
20-Jun-2019 14:20:26.287 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/9.0.11
20-Jun-2019 14:20:26.289 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Aug 11 2018 19:47:23 UTC
20-Jun-2019 14:20:26.289 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         9.0.11.0
.
.
.
20-Jun-2019 14:20:37.207 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
20-Jun-2019 14:20:37.217 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
20-Jun-2019 14:20:37.226 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 10853 ms
  1. Verify the Lens2Northwind docker container is accessible by loading the RDF4J Workbench on URL http://localhost:8080/rdf4j-workbench :

  1. Select the northwind repository from the list available and select the Explore -> Query option from the left frame to execute a SPARQL query against the available Northwind RDF data:

  1. Clicking the execute button from the previous step, with suitable RDF query returns result set:

  1. Access the Quorum360’s Lens2OData user interface by opening the URL at http://localhost:8080/lens2odata/ with uid/pwd of lens2odata/lens2odata:

  1. Click the Submit button to load the Northwind RDF data (apartments):

  1. This loads the home page for accessing the Northwind RDF data:

  1. You are now ready to query, search, explore and navigate through these apartments graphs:

Related