[英]Is “http://” or “mailto:” considered as a namespace in semantic languages such as RDF?
Is it correct to say that http://
or mailto:
are a namespace in RDF? 说
http://
或mailto:
是RDF中的名称空间是否正确?
Where can I find a definition what a namespace is? 在哪里可以找到定义什么是名称空间? An can I say that a namspace is a URI?
我可以说namspace是URI吗?
RDF itself has no notion of namespaces. RDF本身没有名称空间的概念。 However several RDF serialization formats (like RDF/XML and Turtle) use namespaces to abbreviate URIs such as by using CURIEs .
但是,一些RDF序列化格式(例如RDF / XML和Turtle)使用名称空间来缩写URI,例如通过使用CURIEs 。 The CURIE spec mandates the prefix to be mapped to an IRI, so you couldn't map it to just "http://".
CURIE规范要求将前缀映射到IRI,因此您不能仅将其映射到“ http://”。
Found the solution by myself. 自己找到解决方案。 Here is the answer:
答案是:
A uri consists of the following format: uri由以下格式组成:
URI = scheme:[//authority]path[?query][#fragment]
A URI must contain a scheme and a path. URI必须包含方案和路径。 http and mailto are only schemes and not considered as a URI because the path is missing.
http和mailto只是方案,由于缺少路径,因此不视为URI。
A namespace is definied by a uri. 名称空间由uri定义。 However, http:// and mailto: is not a URI and that is why they are not a namespace.
但是,http://和mailto:不是URI,这就是为什么它们不是名称空间的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.