オントロジーとは何かを学ぶ
手を動かしながら進む短いレッスン。最初の考え方から R2RML、プロパティグラフ、SHACL まで、W3C 仕様に基づいて説明します。
選択した言語の翻訳がないため、Englishの内容を表示しています。
第 0 部 用語集
レッスンに出てくる用語を、1〜2 文でやさしく説明します。読みながら開いておくと便利です。
The big picture
Ontology, Vocabulary, Taxonomy, Thesaurus …
7 語
What a graph is made of
Triple, Subject, predicate, object, IRI, Prefix and namespace …
9 語
Parts of the blueprint
Class, Individual, Property, Object and datatype properties …
9 語
Languages and standards
RDF, RDFS, OWL, SKOS …
14 語
Inference and validation
Inference, Reasoner, Open-world assumption, Closed-world assumption …
8 語
Connecting and reusing
Linked data, Content negotiation, Import, Term reuse …
10 語
Storing and using
Triple store, SPARQL endpoint, Federated query, Property graph …
8 語
第 1 部 基礎
オントロジーとは何か、トリプル・クラス・推論・クエリの仕組み。
What an ontology is
A shared blueprint of the concepts and relations in a field, written so people and programs read it the same way.
Everything is a three-word sentence
Subject, predicate and object form a triple; triples together form a graph.
Classes, individuals and properties
Separate what belongs in the blueprint from what belongs in the data.
RDF, RDFS, OWL, SKOS, SHACL
Many names, each with a different job.
Finding facts nobody wrote
Inference is new facts following from the rules in the blueprint.
Asking questions, and building on others
Query a graph with SPARQL, and reuse existing ontologies by linking to them.
第 2 部 データの表現と接続
ファイル形式、名前付きグラフ、リンクトデータ、RDF とプロパティグラフの違い、R2RML による表のマッピング。
One graph, many file formats
Turtle, JSON-LD, RDF/XML and N-Triples are different notations for the same triples.
Who said so: named graphs and statements about statements
Ways to attach source and time to a triple: named graphs, intermediate nodes, RDF 1.2.
Linked data: data that connects like the web
Use IRIs as addresses, return a description when one is opened, and link elsewhere.
RDF graphs and property graphs (LPG)
Both are graphs; they differ in how edges carry values, in identifiers and in standards.
From tables to graphs: R2RML and mappings
Rules that turn relational databases and CSV into triples that fit an ontology.
第 3 部 設計と品質
OWL の詳細、SHACL による検証、SKOS とマッピング、設計手法、実際の利用。
OWL, one step further: property characteristics and class definitions
Inverses, transitivity, disjointness and restrictions let a reasoner conclude more.
SHACL: checking that data has the right shape
Write required properties, counts and value types as shapes, and get violations reported.
SKOS and mappings: connecting concept schemes
A concept in a taxonomy is not a class. How to connect terms across schemes.
Building an ontology, and upper ontologies
Start from the questions to answer, reuse, and publish so it lasts.
Where it is used: knowledge graphs, stores and LLMs
Triple stores and SPARQL endpoints, federated queries, and working with language models.