Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPG前台画布信息有误 #269

Closed
billc114 opened this issue May 29, 2024 · 3 comments
Closed

SPG前台画布信息有误 #269

billc114 opened this issue May 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@billc114
Copy link

schema:

Repository(Repository): EntityType
	properties:
		vid(vid): Text
		dependency(dependency): Repository
		    constraint: MultiValue

导入数据:

id,dependency
A,""
B,""
C,"A,B"

查询出结果:
image

数据显示应该有两条边C->A; C->B,但是画布里仅显示一条边:

image

@billc114 billc114 changed the title SPG前台画布信息不全 SPG前台画布信息有误 May 29, 2024
@YYGe01
Copy link

YYGe01 commented May 30, 2024

这个画布我用起来也一脸懵,展示信息过多。如果查看精确的return结果,建议用命令行执行

knext reasoner execute --file ./reasoner/dsl_task.dsl

@andylau-55
Copy link
Collaborator

schema:

Repository(Repository): EntityType
	properties:
		vid(vid): Text
		dependency(dependency): Repository
		    constraint: MultiValue

导入数据:

id,dependency
A,""
B,""
C,"A,B"

查询出结果: image

数据显示应该有两条边C->A; C->B,但是画布里仅显示一条边:

image

可通过knext reasoner execute 执行对应dsl语句以便查看是查询问题还是页面展示问题。

@billc114
Copy link
Author

billc114 commented Jun 1, 2024

执行

knext reasoner execute --dsl "
MATCH (s:PairCI.Repository)-[e:dependency]->(r:PairCI.Repository)
WHERE s.id='C'
RETURN s.id,r.name"

得到结果:

(0) [C, B]
(1) [C, A]

物理执行计划为:

└─Select(orderedFields=List(PropertyVar(s,id::KTString::true), PropertyVar(r,name::KTString::true)), as=List(s.id, r.name), distinct=false)
    └─Drop(fields=Set(EdgeVar(e,Set(__to_id__::KTString::true, __from_id__::KTString::true, __to_id_type__::KTString::true, __from_id_type__::KTString::true))))
        └─ExpandInto(target=(r:PairCI.Repository), pattern=NodePattern((r:PairCI.Repository)), meta=List(EdgeVar(e,Set(__to_id__::KTString::true, __from_id__::KTString::true, __to_id_type__::KTString::true, __from_id_type__::KTString::true)), NodeVar(s,Set(id::KTString::true)), NodeVar(r,Set(name::KTString::true))))
            └─PatternScan(pattern=PartialGraphPattern(s,Map(s -> (s:PairCI.Repository,BinaryOpExpr(name=BEqual)), r -> (r:PairCI.Repository)),Map(s -> Set((s)->[e:dependency]-(r))))), meta=List(EdgeVar(e,Set(__to_id__::KTString::true, __from_id__::KTString::true, __to_id_type__::KTString::true, __from_id_type__::KTString::true)), NodeVar(s,Set(id::KTString::true)), NodeVar(r,Set())))
                └─Start(graphName=KG, alias=s, meta=List(EdgeVar(e,Set(__to_id__::KTString::true, __from_id__::KTString::true, __to_id_type__::KTString::true, __from_id_type__::KTString::true)), NodeVar(s,Set(id::KTString::true)), NodeVar(r,Set(name::KTString::true))), types=Set(PairCI.Repository))

schema:

Repository(Repository): EntityType
	properties:
		vid(vid): Text
		dependency(dependency): Repository
		    constraint: MultiValue

导入数据:

id,dependency
A,""
B,""
C,"A,B"

查询出结果: image
数据显示应该有两条边C->A; C->B,但是画布里仅显示一条边:
image

可通过knext reasoner execute 执行对应dsl语句以便查看是查询问题还是页面展示问题。

@andylau-55 andylau-55 added the bug Something isn't working label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants