セマンティック・ウェブ入門5:実例で学ぶOWL
実例を紹介しながらOWLを勉強。
[ヘッダー]
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#">
<owl:Ontology rdf:about=""/>
[クラス要素]
<owl:Class rdf:ID="OS">
<rdfs:comment>OSs form a class.</rdfs:comment>
</owl:Class>
<owl:Class rdf:ID="Application">
<rdfs:comment>
Applications form a class.
</rdfs:comment>
<owl:disjointWith rdf:resource="#OS"/>
</owl:Class>
<owl:Class rdf:ID="MailClient">
<rdfs:comment>MailClients are a type of Application.</rdfs:comment>
<rdfs:subClassOf rdf:resource="#Application"/>
</owl:Class>
<owl:Class rdf:ID="AddressBook">
<rdfs:comment>AddressBooks are parts of Mail Clients.</rdfs:comment>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="#is_part_of"/>
<owl:allValuesFrom rdf:resource="#MailClient"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
[フッター]
</rdf:RDF>
このほかにも[プロパティ要素]、[プロパティ制約]、[列挙]、[インスタンス]などがある。
詳しくは「CD-ROMで始めるセマンティックWeb」にわかりやすく説明あり。おすすめ良書。
ラベル: OWL, RDF, Schema, Semantic Web, セマンティック・ウェブ

0 件のコメント:
コメントを投稿
登録 コメントの投稿 [Atom]
この投稿へのリンク:
リンクを作成
<< ホーム