代码之家  ›  专栏  ›  技术社区  ›  significance

用RDF表示量

  •  1
  • significance  · 技术社区  · 14 年前

    我希望能够回答诸如“创建了多少条记录并具有log id 001”或“使用属性“00EA”删除了多少条记录”之类的查询。

    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"
    
    1 回复  |  直到 8 年前
        1
  •  2
  •   Manuel Salvadores    12 年前

    我想你得到的答案。。。

    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 .
    (...)
    

    当您向系统中添加更多的数据源时,您将意识到在模式级别定义它对于探索它非常有用。