Skip to content
Linked data resources to feed LODMAP2D applications
PHP Dockerfile
Branch: master
Clone or download
Configuration Manager
Configuration Manager fixed
Latest commit b7cfb74 Oct 16, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker bug fixed and published on dockerhub Oct 4, 2019
public doc refined Oct 8, 2019
src added data endpoint Oct 15, 2019
tests ready to staging Oct 6, 2019
.gitignore develoment done Sep 23, 2019 develoment done Sep 23, 2019 fixed Oct 16, 2019
LICENSE develoment done Sep 23, 2019 added data endpoint Oct 15, 2019
composer.json development done Oct 4, 2019
composer.lock Aligned to BGO Oct 9, 2019
docker-compose.yml Bugs fixed Oct 6, 2019
phpcs.xml.dist simplified Sep 26, 2019
phpunit.xml.dist simplified Sep 26, 2019


API for LODMAP2D application

LODMAP2D-api is a set of linked data resources to feed a LODMAP2D application. The code queries a Bubble Graph Ontology contained into a knowledge graph through a SPARQL service endpoint.

LODMAP2D-api exposes the following resources:

resource payload
/app[.extension] common LODMAP2D application layout data.
/partitions[.extension] LODMAP2D data for all partition views with account index
/accounts[.extension] LODMAP2D data for AccountView and related perspective
/account/account_id[.extension] LODMAP2D data for a account_id account.
/credits[.extension] LODMAP2D application credits data
/terms[.extension] LODMAP2D application terms & conditions data
/data[.extension] returns all LODMAP2D data

It is also possible to query a subdomain prefixing the resources with the sub domain id, e.g.:

  • /my_domain/app
  • /my_domain/partitions
  • /my_domain/accounts
  • /my_domain/account/account_id
  • /my_domain/credits
  • /my_domain/terms

If no resources found, an empty RDF graph is returned.

LODMAP2D-api supports HTTP content negotiation and the extensions: ttl, turtle, n3, txt, nt, ntriples, rdf, xml, rdfs, owl, jsonld, json . If none specified, turtle is used.

Only UTF8 charset supported.

Quickstart with docker

The project is shipped with a Docker setup that makes it easy to get a containerized environment up and running. If you do not already have Docker on your computer, it's the right time to install it.

docker-compose up -d

This process will run and populate a knowledge graph with the BGO test data and will run an instance of the latest LODMAP2D-api image:

let the system warm-up for about 30 seconds and than try APIs from Postman of from your browser:

Using LODMAP2D-api with LODMAP2D:

LODMAP2D-api supports out-of-the-box the default LODMAP2D docker image . Just let the environment variable LODMAP2D_DATA pointing to your api server. Try with:

docker run -d --name app -e LODMAP2D_DATA=http://localhost:8000/ -p 80:80 linkeddatacenter/lodmap2d

Point your browser to http://localhost/ and enjoy.

cleanup docker resources:

docker rm -f app
docker-compose down


See CONTRIBUTING file for more info.


MIT. Please see License File for more information.

You can’t perform that action at this time.