1

私はいくつかの郡の水質に関するデータをいくつか持っています。これは月平均指標のセットです。このデータの形式は

countyName | indicatorName | indicatorValue | indicatorMonth | indicatorYear

OWL と Protégé を使用して、このデータを表すオントロジーをモデル化するにはどうすればよいですか? 最初にすべてのインジケーターの郡​​とデータ プロパティのクラスを作成しようとしましたが、インジケーターの値に関連付けられたこの時間次元をモデル化する方法がわかりません。

4

1 に答える 1

0

countyName、indicatorName、indicatorValue、indicatorMonth、indicatorYear などの列を含む表形式のデータがある場合、これをエンコードする一般的な方法は n-ary リレーションです。詳細について は、セマンティック Webでの N 項関係の定義を参照してください。ただし、一般的な考え方は、次のようにすることです。

_:record72 rdf:type :WaterQualityRecord ;
           countryName "some country" ;
           indicatorName "some indicator" ;
           indicatorValue 42 ;
           indicatorMonth 9 ;     # e.g., for September
           indicatorYear 2013 .   # e.g., for 2013

_:record73 rdf:type :WaterQualityRecord ;
           countryName "some other country" ;
           indicatorName "some other indicator" ;
           indicatorValue 89 ;
           indicatorMonth 3 ;     # e.g., for March
           indicatorYear 2014 .   # e.g., for 2014

次に、日付による並べ替えは、最初に indicatorYear で並べ替え、次に indicatorMonth で並べ替えるだけです。これらのプロパティを組み合わせて、値が xsd:dateTime である単一のプロパティにすることも検討できますが、それほど重要ではありません。

于 2014-07-14T20:18:56.953 に答える