mirror of
https://github.com/Babibubebon/lodfe.git
synced 2024-09-22 17:34:19 +09:00
A frontend for Linked Open Data via SPARQL
7e558fc04e
Bumps [symfony/http-kernel](https://github.com/symfony/http-kernel) from 6.1.7 to 6.2.6. - [Release notes](https://github.com/symfony/http-kernel/releases) - [Changelog](https://github.com/symfony/http-kernel/blob/6.2/CHANGELOG.md) - [Commits](https://github.com/symfony/http-kernel/compare/v6.1.7...v6.2.6) --- updated-dependencies: - dependency-name: symfony/http-kernel dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
app | ||
bootstrap | ||
config | ||
database | ||
docker | ||
public | ||
resources/views | ||
routes | ||
storage | ||
tests | ||
.dockerignore | ||
.editorconfig | ||
.env.example | ||
.gitignore | ||
.styleci.yml | ||
artisan | ||
compose.dev.yml | ||
compose.yml | ||
composer.json | ||
composer.lock | ||
LICENSE | ||
phpunit.xml | ||
README.md |
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