RDF实际上是否包含数据?

时间:2016-10-21 22:35:07

标签: rdf semantic-web owl semantics google-knowledge-graph

我对语义技术很陌生,最近开始阅读各种网络资源。我读完后理解的是RDF包含数据。但当我开始使用cambridge semantics Web Semantics Anzo Enterprise工具时,.trig。我意识到它从各种数据源获取数据。每次需要实时数据。我们还必须创建.trig个文件并将其导入Anzo应用程序。

我不明白是否实时捕获数据,这些RDF文件包含什么。这些文件是OWL还是 var panels = [document.querySelector(".cd-panel"), document.querySelector(".cd-panel-mp"), document.querySelector(".cd-panel-ha")]; var btns = [document.querySelector(".cd-btn"), document.querySelector(".cd-btn-mp"), document.querySelector(".cd-btn-ha")]; function openPanel(x) { x.classList.add("is-visible") } function closePanel(x) { return x.classList.remove("is-visible"); } function panelClick(x) { for (var i = 0; i < 3; i++){ if(x === panels[i]) continue; event.preventDefault(); closePanel(panels[i]); } } function btOpen(x) { var index = [].indexOf.call(btns, x); for (var i = 0; i < 3; i++) { if (i === index) openPanel(panels[i]); else closePanel(panels[i]); } } panels.forEach(function (x) { x.onclick = function () { panelClick(this) }}); btns.forEach(function (x) { x.onclick = function () { btOpen(this) } }) //This should work. I tried it and it works. I am not familiar with jQuery, that is why do not see any jQuery script. However, you can replace the script with jQuery script. //If you do not understand a script above, tell it in a comment, so i wil help you understand the code. Hope it helps 。如果这些trig文件包含数据,那么数据将如何更新。

1 个答案:

答案 0 :(得分:1)

RDF可用于编写数据,即关于个体的断言(例如人的名称),以及编写关于知识库结构的公理(例如类和子类,属性范围,属性域,等等。)

不同的数据源可以访问RDF文件(例如.trig文件)或完全动态 - 这意味着它们是从其他一些数据源(数据库,远程URL)即时构建的 - 这取决于特定数据源,而不是RDF本身的特征。

简而言之,如果您通过数据引用有关个体的断言(OWL中的内容称为ABox),则此数据可以包含在RDF本身中,但这只是它如何使用它。它可以静态存在于文件中,也可以动态构建(例如,作为SPARQL查询的答案。