Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用web资源的URL查找其命名空间_Url_Namespaces - Fatal编程技术网

使用web资源的URL查找其命名空间

使用web资源的URL查找其命名空间,url,namespaces,Url,Namespaces,我们如何概括web资源的名称空间? 我就是这样做的: 命名空间中名称的Backus Naur形式为: name = <namespace identifier> separator <local name> 可以考虑不同的情况: URL=scheme:[/[user:password@]主机[:端口][/]路径[#片段],命名空间=scheme:[/[user:password@]主机[:端口][/]路径[?查询] URL=scheme:[/[user:password

我们如何概括web资源的名称空间?

我就是这样做的:

命名空间中名称的Backus Naur形式为:

name = <namespace identifier> separator <local name>
可以考虑不同的情况:

  • URL=
    scheme:[/[user:password@]主机[:端口][/]路径[#片段]
    ,命名空间=
    scheme:[/[user:password@]主机[:端口][/]路径[?查询]

  • URL=
    scheme:[/[user:password@]host[:port][/]path
    ,namespace=
    scheme:[/[user:password@]host[:port][/]pathpart
    其中
    pathpart
    path
    的子字符串,其中包含最后一个“/”字符之前的所有字符

  • URL=
    scheme:[/[user:password@]主机[:端口][/]路径[?查询]
    ,命名空间=
    scheme:[/[user:password@]主机[:端口][/]路径

  • URL=
    scheme:[/[user:password@]主机[:端口][/]路径[?查询][#片段]
    ,命名空间=
    scheme:[/[user:password@]主机[:端口][/]路径[?查询]

  • 我的问题是:

  • 以上是确定web名称空间的 资源有效吗
  • 我漏了什么案子吗

  • 谢谢

    您在哪种情况下使用术语名称空间?您需要它的目的是什么?上下文或目的是否可以更改Web资源命名空间的定义?这只是一个问题,这一定义是否具有普遍性?
    `scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]`