在RDF

2010-10-18 47 views
1

表达量我希望能够解答疑问,如“多少条记录被创建并LOG_ID 001”或“多少记录已被删除与属性‘00EA’。在RDF

34 records are created with attribute "00EC" and log_id "001" 
32 records are updated with attribute "00EC" and log_id "001" 
31 records are deleted with attribute "00EC" and log_id "001" 

12 records are created with attribute "00EA" and log_id "001" 
31 records are updated with attribute "00EA" and log_id "001" 
33 records are deleted with attribute "00EA" and log_id "001" 

9 records are created with attribute "00EB" and log_id "001" 
2 records are updated with attribute "00EB" and log_id "001" 
3 records are deleted with attribute "00EB" and log_id "001" 

19 records are created with attribute "00EA" and log_id "002" 
22 records are updated with attribute "00EA" and log_id "002" 
33 records are deleted with attribute "00EA" and log_id "002" 
+0

也问及回答在http://www.semanticoverflow.com/questions/1997/how-do-i-represent-this-data-as-an-rdf-graph – RobV 2010-10-19 10:23:15

回答

2

我想你得到的答案...

http://www.semanticoverflow.com/questions/1997/how-do-i-represent-this-data-as-an-rdf-graph

是相当不错的。添加的唯一的事情是,你拥有的数据是统计数据,因此它们可以表示为一个多维结构。一个好的本体代表这种类型的数据是SCOVO

所以这个记录的表示......

[] a :LogEvent; 
    :attribute "00EC"; 
    :log_id "001"; 
    :records_created 34; 
    :records_updated 32; 
    :records_deleted 31; 
    . 

可以与下面的架构级表示可以改善....

:LogEvent rdfs:subClassOf scovo:Item . 
:records_created rdfs:subPropertyOf scovo:Dimension . 
(...) 

此架构将“标记”您的数据增加关于谓词和类的额外知识。 随着您添加更多数据源到您的系统中,您将意识到在模式级别定义它对探索它非常有用。

+0

我想你的意思是:records_created rdfs: subPropertyOf scovo:维度还是? ;) – zazi 2012-03-07 19:14:58

+0

为真,已修复。谢谢! – 2012-03-07 19:36:35