Skip to content
Jim Amsden edited this page Feb 16, 2016 · 3 revisions

ldp-app: A sample LDP client application

ldp-app is an OSLC4JS sub-project that implements an sample LDP Web application server. ldp-app uses the ldp-service and other Express.js middleware components to add LDP capabilities to the application. The server uses MongoDB for persistance.

This Web application provides a simple Browser based UI that can be used to do CRUD operations on LDP containers and resources. The entity request and response bodies are given in RDF source using Turtle. Resources are also displayed in a simple graph as shown in the following figure. ldp-app screenshot Selecting the GET method and pressing the GET button with the http://ldp-app.mybluemix.net/r/ specified returns RDF Turtle source representing the content of the root LDPC r.

<http://ldp-app.mybluemix.net/r/> 
  a <http://www.w3.org/ns/ldp#Resource>, 
    <http://www.w3.org/ns/ldp#RDFSource>, 
    <http://www.w3.org/ns/ldp#Container>, <http://www.w3.org/ns/ldp#BasicContainer>; 
  <http://purl.org/dc/terms/title> "LDP.js root container"; 
  <http://www.w3.org/ns/ldp#contains> 
      <http://ldp-app.mybluemix.net/r/res1455571793748>, 
      <http://ldp-app.mybluemix.net/r/res1455571806059>.

When using POST to create new Bug or Feature resources, be sure to include a URI for the resource in the provided template.

@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix bt:      <http://example.org/vocab/bugtracker#>.
@base <http://acme.com/project1/cm> .

<#bug4> a bt:Bug;
  dcterms:title "Product D will not start up.";
  bt:isInState "New" .

The example above uses the Turtle @base directive to establish a base URI for the entity request body. This allows you to use simple fragment identifiers for the new change request. ldp-app is deployed as an IBM Bluemix app so that it is readily available for experimental use.

Governance

ldp-app, like all the OSLC4JS projects is Open Source software using the Apache v2 license.

  • OSLC/ldp-app GitHub Project: provides source code management
  • Wiki This Wiki: provides project design and detailed documentation
  • Track & Plan IBM DevOps Services Track & Plan: used for project planning and issue management
  • oslc-server Bluemix App A deployed instance of the app for experimental use
  • application route The root URI for the server, point your Web browser client here
Clone this wiki locally