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

文档黑产场景一些问题 #419

Open
ganhb opened this issue Dec 11, 2024 · 1 comment
Open

文档黑产场景一些问题 #419

ganhb opened this issue Dec 11, 2024 · 1 comment
Assignees

Comments

@ganhb
Copy link

ganhb commented Dec 11, 2024

很期待你们能回复。
我下载KAG代码以及spg代码,均用master分支,
环境信息:mysql和neo4j(docker),运行机器为windows;

目前代码能正常run起来,但是在执行example黑产任务

MATCH
    (phone:STD.ChinaMobile)<-[:hasPhone]-(u:RiskMining.Person)
RETURN
    u.id,phone.id

spg异常如下:

2024-12-11 11:29:33,427 [] [] [http-nio-8887-exec-4] INFO  lube - benchmark main plan plan2UnresolvedLogicalPlan cost = 2
2024-12-11 11:29:33,427 [] [] [http-nio-8887-exec-4] INFO  lube - benchmark LogicalPlannerContext cost = 0
2024-12-11 11:29:33,429 [] [] [http-nio-8887-exec-4] ERROR c.a.o.r.r.l.LocalReasonerRunner - KGReasonerLocalRunner,error:Cannot find phone in Map(u -> Set(), anonymous_4 -> Set(), phone -> Set())
com.antgroup.openspg.reasoner.common.exception.SchemaException: Cannot find phone in Map(u -> Set(), anonymous_4 -> Set(), phone -> Set())
	at com.antgroup.openspg.reasoner.lube.logical.validate.Validator$$anonfun$com$antgroup$openspg$reasoner$lube$logical$validate$Validator$$fieldToVar$1.apply(Validator.scala:132)
	at com.antgroup.openspg.reasoner.lube.logical.validate.Validator$$anonfun$com$antgroup$openspg$reasoner$lube$logical$validate$Validator$$fieldToVar$1.apply(Validator.scala:128)
	at scala.collection.immutable.List.foreach(List.scala:392)
	at com.antgroup.openspg.reasoner.lube.logical.validate.Validator$.com$antgroup$openspg$reasoner$lube$logical$validate$Validator$$fieldToVar(Validator.scala:128)
	at com.antgroup.openspg.reasoner.lube.logical.validate.Validator$$anonfun$com$antgroup$openspg$reasoner$lube$logical$validate$Validator$$resolve$1.apply(Validator.scala:114)
	at com.antgroup.openspg.reasoner.lube.logical.validate.Validator$$anonfun$com$antgroup$openspg$reasoner$lube$logical$validate$Validator$$resolve$1.apply(Validator.scala:109)
	at com.antgroup.openspg.reasoner.common.trees.Transform.transform(TreeTransformer.scala:179)
	at com.antgroup.openspg.reasoner.common.trees.Transform.transform(TreeTransformer.scala:174)
	at com.antgroup.openspg.reasoner.common.trees.AbstractTreeNode.transform(AbstractTreeNode.scala:60)
	at com.antgroup.openspg.reasoner.lube.logical.validate.Validator$.com$antgroup$openspg$reasoner$lube$logical$validate$Validator$$resolve(Validator.scala:109)
	at com.antgroup.openspg.reasoner.lube.logical.validate.Validator$.validate(Validator.scala:52)
	at com.antgroup.openspg.reasoner.session.KGReasonerSession.plan2LogicalPlan(KGReasonerSession.scala:325)
	at com.antgroup.openspg.reasoner.session.KGReasonerSession.plan2OptimizedLogicalPlan(KGReasonerSession.scala:189)
	at com.antgroup.openspg.reasoner.session.KGReasonerSession.planBlock(KGReasonerSession.scala:172)
	at com.antgroup.openspg.reasoner.session.KGReasonerSession.plan(KGReasonerSession.scala:165)
	at com.antgroup.openspg.reasoner.runner.local.LocalReasonerRunner.doRun(LocalReasonerRunner.java:114)
	at com.antgroup.openspg.reasoner.runner.local.LocalReasonerRunner.run(LocalReasonerRunner.java:70)
	at com.antgroup.openspg.server.core.reasoner.service.runner.ReasonerRunner.run(ReasonerRunner.java:73)
	at com.antgroup.openspg.server.core.reasoner.service.impl.ReasonerServiceImpl.runTask(ReasonerServiceImpl.java:72)
	at com.antgroup.openspg.server.biz.service.impl.ReasonerManagerImpl.reason(ReasonerManagerImpl.java:71)
	at com.antgroup.openspg.server.api.http.server.openapi.ReasonController$1.action(ReasonController.java:48)
	at com.antgroup.openspg.server.api.http.server.openapi.ReasonController$1.action(ReasonController.java:42)
	at com.antgroup.openspg.server.api.http.server.HttpBizTemplate.execute(HttpBizTemplate.java:39)
	at com.antgroup.openspg.server.api.http.server.openapi.ReasonController.reason(ReasonController.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at com.alipay.sofa.tracer.plugins.springmvc.SpringMvcSofaTracerFilter.doFilter(SpringMvcSofaTracerFilter.java:87)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:891)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1784)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)



语法2:
执行dsl

Define (s:RiskMining.App)-[p:belongTo]->(o:`RiskMining.TaxOfRiskApp`/`赌博应用`) {
    Structure {
        (s)
    }
    Constraint {
        R1("风险标记为赌博"): s.riskMark like "%赌博%"
    }
}

spg正常运行,如下:

2024-12-11 11:02:06,006 [] [] [http-nio-8887-exec-16] INFO  c.a.o.r.r.l.r.LocalRDG - LocalRDG patternScan,root=(s:RiskMining.App,BinaryOpExpr(name=BLike)),matchCount=5 cost time=637
2024-12-11 11:02:06,061 [] [] [http-nio-8887-exec-16] INFO  c.a.o.r.r.c.SinkRelationImpl - SinkRelation,start,index=0,size=5
2024-12-11 11:02:06,156 [] [] [http-nio-8887-exec-16] INFO  c.a.o.r.r.l.r.LocalRDG - LocalRDG.addRelation,sinkCount=5 addPredicate=AddPredicate(PredicateElement(belongTo,p,(s:RiskMining.App),EntityElement(赌博应用,RiskMining.TaxOfRiskApp,o),Map(__to_id_type__->VString(value=RiskMining.TaxOfRiskApp/赌博应用),__to_id__->VString(value=赌博应用),__from_id__->UnaryOpExpr(name=GetField(id)),__from_id_type__->VString(value=RiskMining.App)),OUT),false)
2024-12-11 11:02:06,780 [] [] [http-nio-8887-exec-16] INFO  c.a.o.r.r.l.LocalReasonerRunner - dsl,index=0,result=edge_list_start
(0) Edge(s=RiskMining.App_1876365350029308852,p=RiskMining.App_belongTo_RiskMining.TaxOfRiskApp,o=RiskMining.TaxOfRiskApp_7536487052572438658,direction=OUT,version=0,property={"__to_id__":"赌博应用","process":{"hitRule":[],"targetId":"赌博应用","failedRule":[],"startNode":{"bizId":"com.HOfs.aOnwJ.fFHM.QoXx","label":"RiskMining.App","id":{"bizId":"com.HOfs.aOnwJ.fFHM.QoXx","byteBase64String":"swa4ulSxeVsaCjBYLVkztA==","bytes":"swa4ulSxeVsaCjBYLVkztA==","internalId":1876365350029308852,"type":"RiskMining.App","typeId":-5546542780635842213}},"targetLabel":"RiskMining.TaxOfRiskApp"},"__to_id_type__":"RiskMining.TaxOfRiskApp/赌博应用","__from_id__":"com.HOfs.aOnwJ.fFHM.QoXx","__from_id_type__":"RiskMining.App"})
(1) Edge(s=RiskMining.App_-2342303308142167857,p=RiskMining.App_belongTo_RiskMining.TaxOfRiskApp,o=RiskMining.TaxOfRiskApp_7536487052572438658,direction=OUT,version=0,property={"__to_id__":"赌博应用","process":{"hitRule":[],"targetId":"赌博应用","failedRule":[],"startNode":{"bizId":"com.qIu.VJbJ","label":"RiskMining.App","id":{"bizId":"com.qIu.VJbJ","byteBase64String":"swa4ulSxeVvffneNIfa4zw==","bytes":"swa4ulSxeVvffneNIfa4zw==","internalId":-2342303308142167857,"type":"RiskMining.App","typeId":-5546542780635842213}},"targetLabel":"RiskMining.TaxOfRiskApp"},"__to_id_type__":"RiskMining.TaxOfRiskApp/赌博应用","__from_id__":"com.qIu.VJbJ","__from_id_type__":"RiskMining.App"})
(2) Edge(s=RiskMining.App_-5727118214335070936,p=RiskMining.App_belongTo_RiskMining.TaxOfRiskApp,o=RiskMining.TaxOfRiskApp_7536487052572438658,direction=OUT,version=0,property={"__to_id__":"赌博应用","process":{"hitRule":[],"targetId":"赌博应用","failedRule":[],"startNode":{"bizId":"com.ziNtg.tSIuhlG","label":"RiskMining.App","id":{"bizId":"com.ziNtg.tSIuhlG","byteBase64String":"swa4ulSxeVuwhTBT3+N9KA==","bytes":"swa4ulSxeVuwhTBT3+N9KA==","internalId":-5727118214335070936,"type":"RiskMining.App","typeId":-5546542780635842213}},"targetLabel":"RiskMining.TaxOfRiskApp"},"__to_id_type__":"RiskMining.TaxOfRiskApp/赌博应用","__from_id__":"com.ziNtg.tSIuhlG","__from_id_type__":"RiskMining.App"})
(3) Edge(s=RiskMining.App_-7726028946427551154,p=RiskMining.App_belongTo_RiskMining.TaxOfRiskApp,o=RiskMining.TaxOfRiskApp_7536487052572438658,direction=OUT,version=0,property={"__to_id__":"赌博应用","process":{"hitRule":[],"targetId":"赌博应用","failedRule":[],"startNode":{"bizId":"com.Yirmf.MZx.NKC.Xqp","label":"RiskMining.App","id":{"bizId":"com.Yirmf.MZx.NKC.Xqp","byteBase64String":"swa4ulSxeVuUx6Gbg8ziTg==","bytes":"swa4ulSxeVuUx6Gbg8ziTg==","internalId":-7726028946427551154,"type":"RiskMining.App","typeId":-5546542780635842213}},"targetLabel":"RiskMining.TaxOfRiskApp"},"__to_id_type__":"RiskMining.TaxOfRiskApp/赌博应用","__from_id__":"com.Yirmf.MZx.NKC.Xqp","__from_id_type__":"RiskMining.App"})
(4) Edge(s=RiskMining.App_3790506962208434182,p=RiskMining.App_belongTo_RiskMining.TaxOfRiskApp,o=RiskMining.TaxOfRiskApp_7536487052572438658,direction=OUT,version=0,property={"__to_id__":"赌博应用","process":{"hitRule":[],"targetId":"赌博应用","failedRule":[],"startNode":{"bizId":"com.CYUwwpj.ceCCEm.LCtzt.NCrUKX","label":"RiskMining.App","id":{"bizId":"com.CYUwwpj.ceCCEm.LCtzt.NCrUKX","byteBase64String":"swa4ulSxeVs0mpX/yRQoBg==","bytes":"swa4ulSxeVs0mpX/yRQoBg==","internalId":3790506962208434182,"type":"RiskMining.App","typeId":-5546542780635842213}},"targetLabel":"RiskMining.TaxOfRiskApp"},"__to_id_type__":"RiskMining.TaxOfRiskApp/赌博应用","__from_id__":"com.CYUwwpj.ceCCEm.LCtzt.NCrUKX","__from_id_type__":"RiskMining.App"})
edge_list_end
2024-12-11 11:02:06,781 [] [] [http-nio-8887-exec-16] INFO  c.a.o.s.c.r.s.r.ReasonerRunner - └─SUBQUERY, addRelation(belongTo) @11:02:05.367
    ├─NUM=200, startId(s), [pass]{ RiskMining.App_6677173246953519010() RiskMining.App_5634910951019944707() RiskMining.App_608731713071813324() RiskMining.App_-841837298756659434() RiskMining.App_-8271619273657005117() RiskMining.App_-2483272351836832726() RiskMining.App_-5727118214335070936() RiskMining.App_291656734075338619() RiskMining.App_3087943386592655708() RiskMining.App_443667396709275778() RiskMining.App_-5257229494234387416() RiskMining.App_-8927077162301722843() RiskMining.App_7715999441414894946() RiskMining.App_-4405925732637477232() RiskMining.App_1265175324907916018() RiskMining.App_1604446475021477961() RiskMining.App_3497662677858514246() RiskMining.App_-4283503985085052284() RiskMining.App_-3948329405407958449() RiskMining.App_1876365350029308852() RiskMining.App_-3151124744082670137() RiskMining.App_1309105032100225862() RiskMining.App_-7990840761008277923() RiskMining.App_-1123054582458719974() RiskMining.App_3049605338001524889() RiskMining.App_-4315403930561465198() RiskMining.App_4718791872917792472() RiskMining.App_-3296189111189177890() RiskMining.App_-5759914868122010651() RiskMining.App_-2058742886277254116() RiskMining.App_3880022963563839994() RiskMining.App_-4483051169427881256() RiskMining.App_-5709093046287065761() RiskMining.App_4831605989026276154() RiskMining.App_-2733794594306543869() RiskMining.App_-586771971281917591() RiskMining.App_7691707473452607729() RiskMining.App_8691786634474736621() RiskMining.App_2741975831968635918() RiskMining.App_2528290125478367856() RiskMining.App_818216427233214122() RiskMining.App_-80746043910734577() RiskMining.App_-5498051699648591779() RiskMining.App_1208763361692632997() RiskMining.App_3197800771955024232() RiskMining.App_-5590277140580761264() RiskMining.App_729944935548047863() RiskMining.App_-7923795269452689243() RiskMining.App_4933253472490276399() RiskMining.App_5709649995285807439() RiskMining.App_-854249163144548326() RiskMining.App_-1055796189924230731() RiskMining.App_-1630004637171833901() RiskMining.App_2592292603350332062() RiskMining.App_3375520138596639378() RiskMining.App_1368448924302639837() RiskMining.App_-2628757309113875793() RiskMining.App_4280246452336111848() RiskMining.App_8193274609463085209() RiskMining.App_6174644450447344273() RiskMining.App_7359222524662958270() RiskMining.App_-7172563087627567933() RiskMining.App_6813640421139268982() RiskMining.App_2984489283731594590() RiskMining.App_-5845604285408700061() RiskMining.App_-6070331345738031130() RiskMining.App_3638142535413157734() RiskMining.App_837350835354647584() RiskMining.App_-3126192551716253333() RiskMining.App_-3237087044547243790() RiskMining.App_8792606008896501448() RiskMining.App_-6379203719552085536() RiskMining.App_-2059729770392673671() RiskMining.App_5985424304393816217() RiskMining.App_-7661234500370947660() RiskMining.App_-6759390025826793615() RiskMining.App_-3974719961428458557() RiskMining.App_4948203628586642623() RiskMining.App_31202026771499005() RiskMining.App_-8367907965294448508() RiskMining.App_-1726072030538008159() RiskMining.App_-297149909923956073() RiskMining.App_-1429054042377345920() RiskMining.App_-8896575028065748660() RiskMining.App_-5973058070721300891() RiskMining.App_2688600050608318347() RiskMining.App_-5132490773057203192() RiskMining.App_-398821218511619467() RiskMining.App_-965312798947637316() RiskMining.App_-1622875723741152439() RiskMining.App_-6338559576780713510() RiskMining.App_-3297317031285899696() RiskMining.App_-2228070427579571154() RiskMining.App_-2199081886977627675() RiskMining.App_6539946804680562817() RiskMining.App_1206551655584340837() RiskMining.App_268453049820273993() RiskMining.App_5603238631017593946() RiskMining.App_5419396894458748139() RiskMining.App_405355457826286408() RiskMining.App_-7945306533596085494() RiskMining.App_8631242681222358879() RiskMining.App_-4360018567602885206() RiskMining.App_-6783623533777003267() RiskMining.App_-888646208825302438() RiskMining.App_-5798437236846015641() RiskMining.App_-8634529912640972536() RiskMining.App_-5859123069884213252() RiskMining.App_-1038491380748445967() RiskMining.App_2194223769809806841() RiskMining.App_-4988870134063592288() RiskMining.App_-6592869992650822959() RiskMining.App_6777644325633671917() RiskMining.App_1944370747024006928() RiskMining.App_-766089012845658489() RiskMining.App_1363364483310551485() RiskMining.App_7497151955225282452() RiskMining.App_-8922585897377378964() RiskMining.App_5139509496684541156() RiskMining.App_5741226688039048548() RiskMining.App_7668568414313373674() RiskMining.App_-1698805254640582988() RiskMining.App_8117099713466252396() RiskMining.App_535794269160117510() RiskMining.App_6494856029953240027() RiskMining.App_8012520931534229688() RiskMining.App_1275945942780870275() RiskMining.App_-5054050619192868607() RiskMining.App_6013433922296335560() RiskMining.App_-1230517996420388143() RiskMining.App_-8645797873360009918() RiskMining.App_-8422949161817732128() RiskMining.App_686568050681596696() RiskMining.App_-422546668024847005() RiskMining.App_6249782358439840052() RiskMining.App_8519927747277474051() RiskMining.App_-7640839296434929613() RiskMining.App_-9028647323617141224() RiskMining.App_5676839018748288800() RiskMining.App_7668763701666884603() RiskMining.App_6729388450542312073() RiskMining.App_699111485186620036() RiskMining.App_2841138788744173179() RiskMining.App_6204657154747963815() RiskMining.App_4488346289786621912() RiskMining.App_-5157349957412127620() RiskMining.App_7300885590259853098() RiskMining.App_-4846347135106785157() RiskMining.App_-4235804694407757427() RiskMining.App_1449610905108583854() RiskMining.App_-8595627477471348213() RiskMining.App_-2342303308142167857() RiskMining.App_2781376373496171707() RiskMining.App_-2787412518273603861() RiskMining.App_8057891414102775726() RiskMining.App_-563670889366058577() RiskMining.App_5262489280759373089() RiskMining.App_-2424838713299576002() RiskMining.App_8657708261500126399() RiskMining.App_3518694513387575731() RiskMining.App_3326884802712249465() RiskMining.App_5923698550433015778() RiskMining.App_-140155039389179731() RiskMining.App_-2502930669398212009() RiskMining.App_6719997028950116017() RiskMining.App_900085121860868777() RiskMining.App_-7992828366494880250() RiskMining.App_5993998002088965274() RiskMining.App_-41975715118768095() RiskMining.App_-1044484132859863166() RiskMining.App_-2838403705560621658() RiskMining.App_3790506962208434182() RiskMining.App_7439083175049954548() RiskMining.App_8968187707491973876() RiskMining.App_-6665492986169249861() RiskMining.App_5461738524399509136() RiskMining.App_-273134741594700492() RiskMining.App_-6835284369543080764() RiskMining.App_-5774570000197038393() RiskMining.App_5210053968332488639() RiskMining.App_-2658083715590698195() RiskMining.App_1649708466198035730() RiskMining.App_-1318612188569164071() RiskMining.App_4473614713386084735() RiskMining.App_-3482344323374248370() RiskMining.App_8910311493633255500() RiskMining.App_2043694981848353435() RiskMining.App_-7726028946427551154() RiskMining.App_1648678198559351947() RiskMining.App_5561756343945238261() RiskMining.App_-5783359206045849265() RiskMining.App_-1837257626718444534() RiskMining.App_-1954982028705304059() RiskMining.App_-1355666339421370402() RiskMining.App_-2660210817653039326() RiskMining.App_6353548856571238342() RiskMining.App_-8881313544655968174() RiskMining.App_2252353606146022094() RiskMining.App_4984545727609067195() RiskMining.App_-1464345700095376654()}, [failed]{} @11:02:05.369
    ├─NUM=5, patternScan(root=s,rule=s.riskMark like "%赌博%"), [pass]{ RiskMining.App_3790506962208434182(s.riskMark=赌博) RiskMining.App_1876365350029308852(s.riskMark=赌博) RiskMining.App_-7726028946427551154(s.riskMark=赌博) RiskMining.App_-5727118214335070936(s.riskMark=赌博) RiskMining.App_-2342303308142167857(s.riskMark=赌博)}, [failed]{ RiskMining.App_6677173246953519010() RiskMining.App_5634910951019944707() RiskMining.App_608731713071813324() RiskMining.App_-841837298756659434() RiskMining.App_-8271619273657005117() RiskMining.App_-2483272351836832726() RiskMining.App_291656734075338619() RiskMining.App_3087943386592655708() RiskMining.App_443667396709275778() RiskMining.App_-5257229494234387416() RiskMining.App_-8927077162301722843() RiskMining.App_7715999441414894946() RiskMining.App_-4405925732637477232() RiskMining.App_1265175324907916018() RiskMining.App_1604446475021477961() RiskMining.App_3497662677858514246() RiskMining.App_-4283503985085052284() RiskMining.App_-3948329405407958449() RiskMining.App_-3151124744082670137() RiskMining.App_1309105032100225862() RiskMining.App_-7990840761008277923() RiskMining.App_-1123054582458719974() RiskMining.App_3049605338001524889() RiskMining.App_-4315403930561465198() RiskMining.App_4718791872917792472() RiskMining.App_-3296189111189177890() RiskMining.App_-5759914868122010651() RiskMining.App_-2058742886277254116() RiskMining.App_3880022963563839994() RiskMining.App_-4483051169427881256() RiskMining.App_-5709093046287065761() RiskMining.App_4831605989026276154() RiskMining.App_-2733794594306543869() RiskMining.App_-586771971281917591() RiskMining.App_7691707473452607729() RiskMining.App_8691786634474736621() RiskMining.App_2741975831968635918() RiskMining.App_2528290125478367856() RiskMining.App_818216427233214122() RiskMining.App_-80746043910734577() RiskMining.App_-5498051699648591779() RiskMining.App_1208763361692632997() RiskMining.App_3197800771955024232() RiskMining.App_-5590277140580761264() RiskMining.App_729944935548047863() RiskMining.App_-7923795269452689243() RiskMining.App_4933253472490276399() RiskMining.App_5709649995285807439() RiskMining.App_-854249163144548326() RiskMining.App_-1055796189924230731() RiskMining.App_-1630004637171833901() RiskMining.App_2592292603350332062() RiskMining.App_3375520138596639378() RiskMining.App_1368448924302639837() RiskMining.App_-2628757309113875793() RiskMining.App_4280246452336111848() RiskMining.App_8193274609463085209() RiskMining.App_6174644450447344273() RiskMining.App_7359222524662958270() RiskMining.App_-7172563087627567933() RiskMining.App_6813640421139268982() RiskMining.App_2984489283731594590() RiskMining.App_-5845604285408700061() RiskMining.App_-6070331345738031130() RiskMining.App_3638142535413157734() RiskMining.App_837350835354647584() RiskMining.App_-3126192551716253333() RiskMining.App_-3237087044547243790() RiskMining.App_8792606008896501448() RiskMining.App_-6379203719552085536() RiskMining.App_-2059729770392673671() RiskMining.App_5985424304393816217() RiskMining.App_-7661234500370947660() RiskMining.App_-6759390025826793615() RiskMining.App_-3974719961428458557() RiskMining.App_4948203628586642623() RiskMining.App_31202026771499005() RiskMining.App_-8367907965294448508() RiskMining.App_-1726072030538008159() RiskMining.App_-297149909923956073() RiskMining.App_-1429054042377345920() RiskMining.App_-8896575028065748660() RiskMining.App_-5973058070721300891() RiskMining.App_2688600050608318347() RiskMining.App_-5132490773057203192() RiskMining.App_-398821218511619467() RiskMining.App_-965312798947637316() RiskMining.App_-1622875723741152439() RiskMining.App_-6338559576780713510() RiskMining.App_-3297317031285899696() RiskMining.App_-2228070427579571154() RiskMining.App_-2199081886977627675() RiskMining.App_6539946804680562817() RiskMining.App_1206551655584340837() RiskMining.App_268453049820273993() RiskMining.App_5603238631017593946() RiskMining.App_5419396894458748139() RiskMining.App_405355457826286408() RiskMining.App_-7945306533596085494() RiskMining.App_8631242681222358879() RiskMining.App_-4360018567602885206() RiskMining.App_-6783623533777003267() RiskMining.App_-888646208825302438() RiskMining.App_-5798437236846015641() RiskMining.App_-8634529912640972536() RiskMining.App_-5859123069884213252() RiskMining.App_-1038491380748445967() RiskMining.App_2194223769809806841() RiskMining.App_-4988870134063592288() RiskMining.App_-6592869992650822959() RiskMining.App_6777644325633671917() RiskMining.App_1944370747024006928() RiskMining.App_-766089012845658489() RiskMining.App_1363364483310551485() RiskMining.App_7497151955225282452() RiskMining.App_-8922585897377378964() RiskMining.App_5139509496684541156() RiskMining.App_5741226688039048548() RiskMining.App_7668568414313373674() RiskMining.App_-1698805254640582988() RiskMining.App_8117099713466252396() RiskMining.App_535794269160117510() RiskMining.App_6494856029953240027() RiskMining.App_8012520931534229688() RiskMining.App_1275945942780870275() RiskMining.App_-5054050619192868607() RiskMining.App_6013433922296335560() RiskMining.App_-1230517996420388143() RiskMining.App_-8645797873360009918() RiskMining.App_-8422949161817732128() RiskMining.App_686568050681596696() RiskMining.App_-422546668024847005() RiskMining.App_6249782358439840052() RiskMining.App_8519927747277474051() RiskMining.App_-7640839296434929613() RiskMining.App_-9028647323617141224() RiskMining.App_5676839018748288800() RiskMining.App_7668763701666884603() RiskMining.App_6729388450542312073() RiskMining.App_699111485186620036() RiskMining.App_2841138788744173179() RiskMining.App_6204657154747963815() RiskMining.App_4488346289786621912() RiskMining.App_-5157349957412127620() RiskMining.App_7300885590259853098() RiskMining.App_-4846347135106785157() RiskMining.App_-4235804694407757427() RiskMining.App_1449610905108583854() RiskMining.App_-8595627477471348213() RiskMining.App_2781376373496171707() RiskMining.App_-2787412518273603861() RiskMining.App_8057891414102775726() RiskMining.App_-563670889366058577() RiskMining.App_5262489280759373089() RiskMining.App_-2424838713299576002() RiskMining.App_8657708261500126399() RiskMining.App_3518694513387575731() RiskMining.App_3326884802712249465() RiskMining.App_5923698550433015778() RiskMining.App_-140155039389179731() RiskMining.App_-2502930669398212009() RiskMining.App_6719997028950116017() RiskMining.App_900085121860868777() RiskMining.App_-7992828366494880250() RiskMining.App_5993998002088965274() RiskMining.App_-41975715118768095() RiskMining.App_-1044484132859863166() RiskMining.App_-2838403705560621658() RiskMining.App_7439083175049954548() RiskMining.App_8968187707491973876() RiskMining.App_-6665492986169249861() RiskMining.App_5461738524399509136() RiskMining.App_-273134741594700492() RiskMining.App_-6835284369543080764() RiskMining.App_-5774570000197038393() RiskMining.App_5210053968332488639() RiskMining.App_-2658083715590698195() RiskMining.App_1649708466198035730() RiskMining.App_-1318612188569164071() RiskMining.App_4473614713386084735() RiskMining.App_-3482344323374248370() RiskMining.App_8910311493633255500() RiskMining.App_2043694981848353435() RiskMining.App_1648678198559351947() RiskMining.App_5561756343945238261() RiskMining.App_-5783359206045849265() RiskMining.App_-1837257626718444534() RiskMining.App_-1954982028705304059() RiskMining.App_-1355666339421370402() RiskMining.App_-2660210817653039326() RiskMining.App_6353548856571238342() RiskMining.App_-8881313544655968174() RiskMining.App_2252353606146022094() RiskMining.App_4984545727609067195() RiskMining.App_-1464345700095376654()} @11:02:06.009
    └─NUM=5, addRelation(alias=p,type=belongTo,from=(s:RiskMining.App),to=EntityElement(赌博应用,RiskMining.TaxOfRiskApp,o)) @11:02:06.062



但是在python的KAG异常

  File "D:\software\02coder\anaconda\anaconda3\envs\kag-demo\lib\site-packages\knext\common\rest\api_client.py", line 361, in __deserialize
    return self.__deserialize_model(data, klass)
  File "D:\software\02coder\anaconda\anaconda3\envs\kag-demo\lib\site-packages\knext\common\rest\api_client.py", line 759, in __deserialize_model
    instance = klass(**kwargs)
  File "D:\software\02coder\anaconda\anaconda3\envs\kag-demo\lib\site-packages\knext\reasoner\rest\models\table_result.py", line 64, in __init__
    self.header = header
  File "D:\software\02coder\anaconda\anaconda3\envs\kag-demo\lib\site-packages\knext\reasoner\rest\models\table_result.py", line 115, in header
    raise ValueError(
ValueError: Invalid value for `header`, must not be `None`
  File "D:\software\02coder\anaconda\anaconda3\envs\kag-demo\lib\site-packages\knext\common\rest\api_client.py", line 361, in __deserialize
    return self.__deserialize_model(data, klass)
  File "D:\software\02coder\anaconda\anaconda3\envs\kag-demo\lib\site-packages\knext\common\rest\api_client.py", line 759, in __deserialize_model
    instance = klass(**kwargs)
  File "D:\software\02coder\anaconda\anaconda3\envs\kag-demo\lib\site-packages\knext\reasoner\rest\models\table_result.py", line 64, in __init__
    self.header = header
  File "D:\software\02coder\anaconda\anaconda3\envs\kag-demo\lib\site-packages\knext\reasoner\rest\models\table_result.py", line 115, in header
    raise ValueError(
ValueError: Invalid value for `header`, must not be `None`

是语法问题吗,刚入手spg,正在看代码中

@ganhb
Copy link
Author

ganhb commented Dec 11, 2024

还有一个SPG的代码结构跟白皮书上的架构图哪些模块映射哪些,这里面有没有一些资料可以参考,刚拜读代码,突然发现目前spg结构没有那么直观,kag项目结构则是很直观

白皮书架构图
image

spg代码结构
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants