{"id":22340748,"url":"https://github.com/masao/ttl2html","last_synced_at":"2026-04-29T06:01:28.736Z","repository":{"id":46058348,"uuid":"201838989","full_name":"masao/ttl2html","owner":"masao","description":"Static site generator for Linked Data","archived":false,"fork":false,"pushed_at":"2026-04-27T05:34:40.000Z","size":376,"stargazers_count":12,"open_issues_count":19,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-27T07:18:28.771Z","etag":null,"topics":["html-files","linked-data","rdf","static-site-generator","turtle"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masao.png","metadata":{"files":{"readme":"README-ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-08-12T01:53:49.000Z","updated_at":"2026-04-27T05:34:45.000Z","dependencies_parsed_at":"2025-06-01T08:34:28.117Z","dependency_job_id":"c372396a-3670-40ba-9ad9-4ab0f4ca78b6","html_url":"https://github.com/masao/ttl2html","commit_stats":{"total_commits":289,"total_committers":2,"mean_commits":144.5,"dds":0.00692041522491349,"last_synced_commit":"81e121148ef99aea30968506c3300a2727719e7c"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"purl":"pkg:github/masao/ttl2html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masao%2Fttl2html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masao%2Fttl2html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masao%2Fttl2html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masao%2Fttl2html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masao","download_url":"https://codeload.github.com/masao/ttl2html/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masao%2Fttl2html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32412890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T05:20:56.964Z","status":"ssl_error","status_checked_at":"2026-04-29T05:19:54.749Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-files","linked-data","rdf","static-site-generator","turtle"],"created_at":"2024-12-04T07:12:40.887Z","updated_at":"2026-04-29T06:01:28.726Z","avatar_url":"https://github.com/masao.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ttl2html [![Ruby test](https://github.com/masao/ttl2html/actions/workflows/ruby.yml/badge.svg)](https://github.com/masao/ttl2html/actions/workflows/ruby.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/6897bef51f3280ae64e5/maintainability)](https://codeclimate.com/github/masao/ttl2html/maintainability)\n\n\u003cdiv align=\"right\"\u003eEnglish: https://github.com/masao/ttl2html/blob/master/README.md\u003c/div\u003e\n\n## 📘 ドキュメント\n\n詳細なドキュメントは以下をご覧ください： https://ttl2html-doc.readthedocs.io/ja/\n\n## 概要\n\nLinked Dataのための静的サイト生成ツールです。\n\n本ツールは、RDF/Turtle形式のファイルを入力として受けつけ、そのコンテンツに対応したHTMLファイル群を生成します。\n\n「Linked Data原則」の提案[TBL:2006]では、事物はそれに対応するHTTP URIリソースを同定し、ウェブ上のURIとして解決できるようにすべきと推奨されています。本ツールは、Linked Dataデータセット用のウェブサイトを生成し、Web上で公開することを支援します。\n\n## 機能一覧\n\nまず始めに以下のコマンドによりインストールしてください: `gem install ttl2html`\n\n* RDF/TurtleファイルからHTMLファイル群の生成\n* プロパティラベルの変換（ラベル置換）\n* タイトルプロパティの指定\n* BootstrapベースのERBテンプレート\n\n## 使用法\n\nコマンドラインツール ``ttl2html`` が使えます。\n\nまず始めに、実行時に使うディレクトリ上に``config.yml``というファイル名の設定ファイルが必要です。\nこのファイル内における設定項目では1つの設定項目 ``base_uri`` だけが必須で、他の設定項目は任意オプションとなっています。\n以下のように、設定項目とその値を指定します:\n\n```yaml\nbase_uri: https://www.example.org/\n```\n\n上記の設定ファイルを作成したら、以下のようにデータセットのRDF/Turtle形式のファイルを引数に指定して、コマンドを実行します:\n\n```sh\nttl2html dataset.ttl\n```\n\nコマンドが正常に終了すれば、HTMLファイル群の生成が終わりです。\n\n### コマンドラインオプション\n\n```sh\nttl2html --config test.yml dataset.ttl\n```\n\nコマンド ``ttl2html`` では以下のオプション引数を指定できます:\n\n* ``--config file``:  設定ファイルを``file``から読み込みます (Default: ```config.yml```).\n\n### 設定ファイル\n\n設定ファイルでは、以下のような設定項目を指定できます:\n\n```yaml\nbase_uri: https://www.example.org/\noutput_dir: /var/www/html/dataset/\nlabels:\n  http://www.w3.org/1999/02/22-rdf-syntax-ns#type: Class\n  http://schema.org/name: Title\nsite_title: A sample dataset\ntitle_property: https://www.example.org/title\ntop_class: http://schema.org/Book\n```\n\n* ``base_uri``: (必須) データセット用のベースURIを指定します。ベースURIは出力されるファイル群に対する接頭辞とみなし、先頭一致したURIリソースのみが生成対象となります。\n* ``output_dir``: 出力ディレクトリを指定します。\n* ``labels``: 個別プロパティの出力ラベル名を指定します。\n* ``site_title``: ウェブサイト全体のメインタイトルを指定します。\n* ``title_property``: 指定したURIをタイトルとして指定します。指定されていない場合、もしくは指定したプロパティが存在しない場合は以下のプロパティの存在を走査して、その値をタイトルとみなします:\n  - https://www.w3.org/TR/rdf-schema/#label\n  - http://purl.org/dc/terms/title\n  - http://purl.org/dc/elements/1.1/title\n  - http://schema.org/name\n  - http://www.w3.org/2004/02/skos/core#prefLabel\n* ``top_class``: トップページに表示すべきレコード一覧に対応するクラスURIを指定する。デフォルトではトップページは生成されない。\n\nより詳細な説明マニュアルは https://ttl2html-doc.readthedocs.io/ja/ をご覧ください。\n\n## ニュース\n\n### 2024-12-22\n\n:trophy: [LODチャレンジ2024](https://2024.lodc.jp/)において **「技術賞」** を受賞しました。\n\n（関連情報）\n* Linked Open Data チャレンジ 2024 実行委員会. [【プレスリリース】Linked Open Data チャレンジ Japan 2024 受賞作品発表](https://2024.lodc.jp/awardPressRelease2024.html). 2024-11-27.\n* Linked Open Data チャレンジ 2024 実行委員会. [【開催報告】LODチャレンジ2024 授賞式シンポジウム](https://2024.lodc.jp/awardSymposium2024Report.html). 2025-01-11.\n* 江草由佳. [「LODチャレンジ2024」で「技術賞」を受賞しました](https://www.nier.go.jp/03_laboratory/pdf/222.pdf#page=10). NIER NEWS. 2025, No.222, p.10.\n\n## 関連ツール\n\nSHACLに基づくデータセットスキーマ記述を簡便に行うためのツール **`xlsx2shape`** も同梱しています。詳細は [README-xlsx2shape-ja.md](README-xlsx2shape-ja.md) をご覧ください。\n\n本ツールの開発にあたっては教科書LODデータセット[JP-TEXTBOOK:2017]における経験をもとにしています。\n\n## 参照文献\n\n* [TBL:2006] Tim-Berner Lee (2006). \"Linked Data\". https://www.w3.org/DesignIssues/LinkedData.html\n* [JP-TEXTBOOK:2017] Y. Egusa \u0026 M. Takaku (2017). \"Japanese Textbook LOD\". https://w3id.org/jp-textbook/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasao%2Fttl2html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasao%2Fttl2html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasao%2Fttl2html/lists"}