Giter Club home page Giter Club logo

simple-lodi-frontend's Introduction

SimpleLodiFrontend

Simple LODIのHTMLレンダリングで使用しているソースコードです。 React による シングルページアプリケーション として作成しています。

このアプリは、Simple LODI以外でもRDF(Turtleファイルのみ)をHTMLとして表示することができます。 また、CORSに対応するLODサイトのRDFデータも対応します。


表示例

デモサイト:
https://uedayou.net/simple-lodi-frontend/
window.uri = "http://uedayou.net/loa/東京都千代田区永田町一丁目1";を指定しています。

以下のサイトについて、表示できることを確認しています。

表示方法は、index.htmlwindow.uri を定義して、URLを代入してください。

<script>
// [DBpedia]
// window.uri = "http://dbpedia.org/resource/Tokyo_Station";
// [DBpedia Japanese]
// window.uri = "http://ja.dbpedia.org/data/東京駅.ttl";
// [Wikidata]
// window.uri = "https://www.wikidata.org/wiki/Special:EntityData/Q283196";
// [Linked Open Addresses Japan]
// window.uri = "http://uedayou.net/loa/東京都千代田区永田町一丁目";
// window.uri = "http://uedayou.net/loa/東京都千代田区";
// [Simple LODI Demo]
window.uri = "http://uedayou.net/simplelodi/uedayou";
</script>

DBpedia日本語版, Wikidata については、以下のようにURIを変更してください

DBpedia日本語版

http://ja.dbpedia.org/recouse/東京駅

http://ja.dbpedia.org/data/東京駅.ttl

Wikidata

http://www.wikidata.org/entity/Q283196

https://www.wikidata.org/wiki/Special:EntityData/Q283196

インストール方法

$ npm install

ビルド方法

$ npm run build

デバッグ

$ npm start

src/conf.tsDEBUG_MODEtrue にすると Linked Open Addresses Japan を利用して表示を確認することもできます。

// for debug
const DEBUG_MODE: boolean = true;
const DEBUG_REPLACE_URL: string = "https://uedayou.net/loa/";
const DEBUG_REPLACE_HOSTNAME: string | null = null;

simple-lodi-frontend's People

Contributors

uedayou avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.