【问题标题】:Expressing quantities in RDF用 RDF 表示数量
【发布时间】:2010-10-18 15:25:43
【问题描述】:

我希望能够回答诸如“创建了多少条记录并且 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"

【问题讨论】:

标签: sparql rdf turtle-rdf


【解决方案1】:

我认为你得到的答案......

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

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

【讨论】:

  • 我想你的意思是:records_created rdfs:subPropertyOf scovo:dimension,还是? ;)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-03-25
  • 2013-05-04
  • 2012-03-09
  • 2013-05-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多