A frontend for Linked Open Data via SPARQL
Find a file
2022-11-06 19:03:52 +09:00
app Update Lumen v8 2021-11-22 03:14:24 +09:00
bootstrap Update EasyRdf to v1.0.0 2020-08-27 01:00:58 +09:00
config bump version to v1.2.5 2020-09-01 03:29:37 +09:00
database first commit 2020-01-19 21:24:54 +09:00
docker Add Dockerfiles 2020-09-01 03:28:41 +09:00
public first commit 2020-01-19 21:24:54 +09:00
resources/views Update EasyRdf to v1.0.0 2020-08-27 01:00:58 +09:00
routes fix error in routing when running artisan 2020-01-20 01:07:11 +09:00
storage first commit 2020-01-19 21:24:54 +09:00
tests first commit 2020-01-19 21:24:54 +09:00
.dockerignore Add Dockerfiles 2020-09-01 03:28:41 +09:00
.editorconfig Add Dockerfiles 2020-09-01 03:28:41 +09:00
.env.example Add Dockerfiles 2020-09-01 03:28:41 +09:00
.gitignore change .gitignore 2020-01-19 22:19:14 +09:00
.styleci.yml first commit 2020-01-19 21:24:54 +09:00
artisan first commit 2020-01-19 21:24:54 +09:00
composer.json Update Lumen v8 2021-11-22 03:14:24 +09:00
composer.lock Bump illuminate/database from 6.18.36 to 6.20.26 2021-04-29 22:56:44 +00:00
docker-compose.dev.yml Add Dockerfiles 2020-09-01 03:28:41 +09:00
docker-compose.yml Add Dockerfiles 2020-09-01 03:28:41 +09:00
LICENSE create LICENSE 2020-01-20 01:48:11 +09:00
phpunit.xml first commit 2020-01-19 21:24:54 +09:00
README.md Update README.md 2020-09-01 03:55:31 +09:00

lodfe

SPARQLエンドポイントを用いたLinked Open Dataフロントエンド( Pubby みたいなやつ)

Installation

From source

$ git clone https://github.com/Babibubebon/lodfe.git
$ cd lodfe
$ composer install
$ cp config/datasets.php{.example,}

And configure your Web server.

Docker image

Create docker-compose.yml

version: "3"
services:
  php:
    image: babibubebon/lodfe:latest-php
    volumes:
      - ./datasets.php:/var/www/lodfe/config/datasets.php:ro

  nginx:
    image: babibubebon/lodfe:latest-nginx
    ports:
      - 80:80
    depends_on:
      - php

Create datasets.php like the below example:

<?php

return [
    'dbpedia-ja' => [
        'host_name' => 'localhost',
        'resource_uri' => 'http://ja.dbpedia.org/resource/{id}',
        'html_uri' => 'http://ja.dbpedia.org/page/{id}',
        'data_uri' => 'http://ja.dbpedia.org/data/{id}',
        'endpoint' => 'http://ja.dbpedia.org/sparql',
        'http' => [
            'timeout' => 30,
        ]
    ],
];

Launch the containers

$ docker-compose up -d

Open browser and goto http://localhost/resource/WHITE_ALBUM2