Skip to content

moriya-dbcls/endpoint_browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Endpoint browser

Endpoint browser is a web service to search RDF data in the endpoint using visualised network graph. User can select nodes and execute SPARQL queries from the GUI.

alt

For local usage

  • For private loocalhost-endpoint (Endpoint browser service page is only available for open access endpoints.)

A. Run Endpoint browser via Docker

Prerequisites

FROM --platform=linux/amd64 node:12

Usage

Run containers with docker-compose and open http://localhost:3000/html.

    $ git clone https://github.com/moriya-dbcls/endpoint_browser.git
    $ cd endpoint_browser
    $ docker-compose up --build -d

Start endpoint browser http://localhost:3000/html/

Stop containers

    $ cd endpoint_browser
    $ docker-compose down

B. Install Endpoint browser to local

    $ git clone https://github.com/moriya-dbcls/endpoint_browser.git
    $ cd endpoint_browser

SPARQlist

Node.js

v12.x by nodebre

    $ curl -L git.io/nodebrew | perl - setup
    [set a path to .nodebrew/current/bin, e.g. $ export PATH=$HOME/.nodebrew/current/bin:$PATH]
    $ nodebrew install v12
    $ nodebrew use v12

SPARQlist

    $ git clone https://github.com/dbcls/sparqlist.git
    $ cd sparqlist
    $ npm install
    $ npm run build
    $ cd ..

Togostanza

Download binary from ts release and set a path to 'ts' file

    $ curl -OL https://github.com/togostanza/ts/releases/download/v0.0.19/ts_0.0.19_linux_amd64.tar.gz
    $ tar zxvf ts_0.0.19_linux_amd64.tar.gz
    [set a path to 'ts']

Endpoint browser

Move files

    $ mv src/sparqlist/*.md sparqlist/repository/
    $ mv src/html sparqlist/public/

Start SPARQList

    $ cd sparqlist
    $ PORT=3000 ADMIN_PASSWORD=changeme npm start &
    $ cd ..

Start ts

    $ cd ts
    $ ts server &

Start endpoint browser

http://localhost:3000/html/

Opt.

Hard-coded port num and directory name

    ts/endpoint-browser/_header.html:2 src="//localhost:3000/html/endpoint-browser.js"
    sparqlist/public/html/index.html:7 href="//localhost:8080/stanza/endpoint-browser/"
    sparqlist/public/html/endpoint-browser.js:11 api: "//localhost:3000/api/"

About

sparqlist and togostanza for endpoint browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published