在RDF

2010-10-18 51 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