Skip to main content

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}

Metadata

Release files for isdn-ld 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isdn-ld 0.1.0
File Size Uploaded
isdn_ld-0.1.0.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for isdn-ld 0.1.0
File Interpreter ABI Platform
isdn_ld-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / isdn_ld-0.1.0.tar.gz

Download URL isdn_ld-0.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
31e08e25b54d0f799e6a8242d88a4a657a9722f1a05cf869469287be690152ea
BLAKE2b-256 checksum
How to use checksums
abbc279d7b8fdafd918cea6f354842ec15597bdce62f2f3701357ed89a92f8fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.1 Linux/6.11.0-1018-azure

Release files / isdn_ld-0.1.0-py3-none-any.whl

Download URL isdn_ld-0.1.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8efbfc881356c4cb899f891e2284076b5cb26e1dc88b91fe59fb4c3426071b25
BLAKE2b-256 checksum
How to use checksums
2c0d67cddfa211171892d61be1c8acea55f0d2599cf09d0cf09023b3f9e292c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.1 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page