简体   繁体   English

sparql 中路径的结果返回空

[英]result return empty for the path in sparql

why the result of path2 is empty?为什么 path2 的结果为空?

When I try to concat two paths in one iri, it returns null.当我尝试在一个 iri 中连接两条路径时,它返回 null。 Why is the result of path2 empty?为什么path2的结果是空的?

PREFIX xx:   <http://xx.xx/xxx/xx#>                     
SELECT * {
bind(IRI(xx:A.B/xx:B.C) as $path1)
bind(IRI(concat(str(xx:A.B), "/", str(xx:B.C))) as $path2)
  bind(IRI(str("http://xx.xx/xxx/xx#A.B/http://xx.xx/xxx/xx#B.C")) as $path3)
}

"http://xx.xx/xxx/xx#AB/http://xx.xx/xxx/xx#BC" “http://xx.xx/xxx/xx#AB/http://xx.xx/xxx/xx#BC”

is not a legal IRI because it has two # .不是合法的 IRI,因为它有两个# A URI can have only one fragment.一个 URI 只能有一个片段。

In $path1:: / is numeric divide.在 $path1:: /中是数字除法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM