简体   繁体   English

是否在诸如RDF之类的语义语言中将“ http://”或“ mailto:”视为命名空间?

[英]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.

相关问题 RDF:用于标识编程语言(JS,C#等)的名称空间 - RDF: namespace to identify programming languages (JS, C#,…) 命名空间语义差异 - Namespace semantic differences 可以描述 SPARQL 查询的 RDF 命名空间? - RDF namespace that can describe SPARQL queries? 为什么“使用命名空间标准;” 被认为是不好的做法? - Why is "using namespace std;" considered bad practice? 在查找名称空间名称时可以考虑哪些其他名称,而不是命名空间名称? - What other names could be considered during the lookup for a namespace-name, different than namespace names? 以编程方式检查Http名称空间预留 - Programmatically check for Http namespace reservation 将XAML文件中的http名称空间引用与XamlParser一起使用 - Use http namespace references in XAML file with XamlParser 导入XSD以获取http://www.w3.org/2001/XMLSchema命名空间? - Import XSD for http://www.w3.org/2001/XMLSchema namespace? 具有名称空间http://xmlns.jcp.org/jsf/html的元素在名称空间http://xmlns.jcp.org/jsf中可能没有属性 - Elements with namespace http://xmlns.jcp.org/jsf/html may not have attributes in namespace http://xmlns.jcp.org/jsf 在Laravel 5.5中仍然在命名空间中定义控制器仍然发生App \\ Http \\ Controllers错误 - Defining controller in namespace still Class App\Http\Controllers error taking place in laravel 5.5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM