Skip to main content

A tool to generate the Linked Data dataset for ISDN

Project description

Linked Data for ISDN

ISDN (International Standard Dojin Numbering) の書誌情報を Linked Data (RDFデータセット) に変換する。

Installation

pip install isdn-ld

Usage

Convert

事前準備: ISDN-Python で書誌情報XMLファイルをダウンロードしておく。

isdnld convert /path/to/xml_files/ /path/to/output/isdnld.nq

Schema

isdn.jp が提供する書誌情報の XML Schema: https://isdn.jp/schemas/0.1/isdn.xsd

このXMLから少し意味的に理解を加えて設計した RDF モデルへマッピングしている。

Vocabulary

Schema.org の語彙をベースとしつつ、必要に応じて以下の名前空間で独自の語彙を定義している。

  • 独自語彙の名前空間: http://metadata.moe/ns/isdn/

Application Profile

DCTAP (DC Tabular Application Profiles) でアプリケーションプロファイルを記述している。

Convert DCTAP to SHACL:

tap2shacl -c ./dctap/dctap.yml \
  -a ./dctap/about.csv \
  -ns ./dctap/namespaces.csv \
  -s ./dctap/shapes.csv \
  ./dctap/tap.csv

Graph URIs

quads形式で変換すると、コンテンツのレーティングに応じてグラフURIを分ける。

  • デフォルトグラフ : 一般
  • http://metadata.moe/isdn/graph/ageRestricted15 : 15禁
  • http://metadata.moe/isdn/graph/ageRestricted18 : 18禁

Resource URI

http://metadata.moe/isdn/res/{ISDN}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isdn_ld-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isdn_ld-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file isdn_ld-0.1.0.tar.gz.

File metadata

  • Download URL: isdn_ld-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.1 Linux/6.11.0-1018-azure

File hashes

Hashes for isdn_ld-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31e08e25b54d0f799e6a8242d88a4a657a9722f1a05cf869469287be690152ea
MD5 cff3f1a3df4366e65872f1e5f50d720a
BLAKE2b-256 abbc279d7b8fdafd918cea6f354842ec15597bdce62f2f3701357ed89a92f8fd

See more details on using hashes here.

File details

Details for the file isdn_ld-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: isdn_ld-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.1 Linux/6.11.0-1018-azure

File hashes

Hashes for isdn_ld-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8efbfc881356c4cb899f891e2284076b5cb26e1dc88b91fe59fb4c3426071b25
MD5 631f1c2ae5d10f080fd703930a4e1788
BLAKE2b-256 2c0d67cddfa211171892d61be1c8acea55f0d2599cf09d0cf09023b3f9e292c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page