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:
- Pull the
inova8/lens2northwind
docker image:
$ docker pull inova8/lens2northwind
- 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
- Verify the Lens2Northwind docker container is accessible by loading the RDF4J Workbench on URL http://localhost:8080/rdf4j-workbench :
- Select the
northwind
repository from the list available and select theExplore -> Query
option from the left frame to execute a SPARQL query against the available Northwind RDF data:
- Clicking the
execute
button from the previous step, with suitable RDF query returns result set:
- Access the Quorum360’s Lens2OData user interface by opening the URL at http://localhost:8080/lens2odata/ with uid/pwd of
lens2odata/lens2odata
:
- Click the
Submit
button to load the Northwind RDF data (apartments):
- This loads the home page for accessing the Northwind RDF data:
- You are now ready to query, search, explore and navigate through these apartments graphs: