Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.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
笛卡尔积SPARQL_Sparql_Cartesian Product - Fatal编程技术网

笛卡尔积SPARQL

笛卡尔积SPARQL,sparql,cartesian-product,Sparql,Cartesian Product,我想问一下笛卡尔积在SPARQL中是如何表达的。 对于变量x1、x2、x3,以下是否正确 SELECT ?x1 ?x2 ?x3 WHERE { ?x1 a ex:C . ?x2 a ex:S . ?x3 ex:q ?n . } 或者类似于: SELECT ?x1 ?x2 ?x3 WHERE { ?x0 ex:c ?x1 . ?x0 ex:s ?x2 . ?x0 ex:n ?x3 . } 提前谢谢。第一个是笛卡尔,第二个不是因为在关系世界中有一个基本上是自联接的共享变量第一个是笛卡尔,第二个不

我想问一下笛卡尔积在SPARQL中是如何表达的。 对于变量x1、x2、x3,以下是否正确

SELECT ?x1 ?x2 ?x3
WHERE {
?x1 a ex:C .
?x2 a ex:S .
?x3 ex:q ?n .
}
或者类似于:

SELECT ?x1 ?x2 ?x3
WHERE {
?x0 ex:c ?x1 .
?x0 ex:s ?x2 .
?x0 ex:n ?x3 .
}

提前谢谢。

第一个是笛卡尔,第二个不是因为在关系世界中有一个基本上是自联接的共享变量第一个是笛卡尔,第二个不是因为在关系世界中有一个基本上是自联接的共享变量