关于RDF和OWL
这是否意味着我们可以编写一个RDF文件来描述一些资源,并且我们可以在另一个文件中使用OWL来描述这些资源之间的关系?那么在使用 OWL 之前我应该有 RDF 文件吗? 如果我想使用RDF来描述Web资源(网页),URI应该是URL,对吗?但是在那个网页中,可能需要描述很多(不止一个)资源,但是URL只是针对整个网页的,这样的话,对于这个网页中的其他资源我该怎么办呢?
Does it mean that we can write a RDF file to describe some resources, and we can describe the relationship between those resources by using OWL in an another file? So I should have the RDF file before using OWL?
If I want to use RDF to describe the web resource (a web page), the URI is should be the URL, is that right? But in that web page, maybe a lot of (more than one) resources need to be described, but the URL is only for the whole web page, in this case, what can I do for the other resources in this web page??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RDF 可以描述资源以及它们之间的关系。
OWL(可选)用于您在 RDF 中使用的属性(关系类型)。通常人们会重用现有的本体/模式(例如 FOAF、DOAP、Dublin Core、SKOS,它们是使用 RDFS 或 OWL 编写的),以使其他人更容易理解他们的数据。如果您描述的是非常具体的东西,或者您需要超越通用模式,那么您可以发明自己的属性,并根据需要在 RDFS 或 OWL 中描述它们。
URI 不一定是 URL,因此,例如,如果您想描述伦敦市(它不是网页),那么您可以为其发明一个 URI,或重复使用现有的 URI,例如伦敦的 DBPedia URI 是 < a href="http://dbpedia.org/resource/London" rel="nofollow">http://dbpedia.org/resource/London - 如果您将其粘贴到网络浏览器中,您将被重定向到关于该 URI 的页面,但 URI 本身不是 URL。
RDF can describe both the resources, and the relationships between them.
OWL is (optionally) used to properties (relationship types) that you use in the RDF. Usually people reuse an existing ontology/schema (e.g. FOAF, DOAP, Dublin Core, SKOS, which are written using RDFS or OWL) to make it easier for other people to understand their data. If you're describing something very specific though, or you need to go beyond a common schema, then you can invent your own properties, and describe them in RDFS or OWL if you like.
URIs do not have to be URLs, so if for example you want to describe the city of London, which is not a webpage, then you can invent a URI for it, or reuse an existing one, e.g. the DBPedia URI for London is http://dbpedia.org/resource/London - if you paste that into a web browser you will be redirected to a page about that URI, but the URI itself isn't a URL.