『ヒエラティック古書体学』データベース

API & SPARQL

SPARQLエンドポイントまたはLinked Data URIでHPDBナレッジグラフにアクセスできます。

SPARQLエンドポイント

SPARQL 1.1を使ってHPDBデータセット全体をクエリできます。

エンドポイントURL

https://dydra.com/ut-digital-archives/hpdb/sparql
SPARQLブラウザを開く(Snorql)

クエリ例

List items (100)全アイテム一覧(100件)
PREFIX hpdb: <https://w3id.org/hpdb/api/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?item ?label WHERE {
  ?item a hpdb:classes/Item ;
        rdfs:label ?label .
}
LIMIT 100
Signs with Unicode code pointsUnicodeコードポイント付き字形一覧
PREFIX hpdb: <https://w3id.org/hpdb/api/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?item ?mollerNo ?hieroglyphNo WHERE {
  ?item a hpdb:classes/Item ;
        hpdb:properties/möllerNo ?mollerNo .
  OPTIONAL { ?item hpdb:properties/hieroglyphNo ?hn .
             ?hn rdfs:label ?hieroglyphNo . }
}
ORDER BY ?mollerNo
LIMIT 50
DESCRIBE a single item単一アイテムの詳細
DESCRIBE <https://w3id.org/hpdb/api/items/201001>

Linked Data URI

各アイテムにはJSON-LDまたはTurtleとして解決される永続URIがあります。

アイテムURIパターン

https://w3id.org/hpdb/api/items/{id}

— item 201001

https://w3id.org/hpdb/api/items/201001JSON-LD
Snorqlで開く (item 201001)

名前空間

プレフィックスURI
hpdb
https://w3id.org/hpdb/api/
rdfs
http://www.w3.org/2000/01/rdf-schema#
rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#
schema
http://schema.org/
dct
http://purl.org/dc/terms/
xsd
http://www.w3.org/2001/XMLSchema#