-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat(reasoner): support spo inference #280
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 1692 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
1584 | 2 | 106 | 0 |
Click to see the invalid file list
- reasoner/thinker/src/test/java/com/antgroup/openspg/reasoner/thinker/RuleGenerator.java
- reasoner/thinker/src/test/java/com/antgroup/openspg/reasoner/thinker/logic/rule/QlExpressTest.java
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
@@ -0,0 +1,149 @@ | |||
package com.antgroup.openspg.reasoner.thinker; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package com.antgroup.openspg.reasoner.thinker; | |
/* | |
* Copyright 2023 OpenSPG Authors | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License | |
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
* or implied. | |
*/ | |
package com.antgroup.openspg.reasoner.thinker; |
@@ -0,0 +1,70 @@ | |||
package com.antgroup.openspg.reasoner.thinker.logic.rule; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package com.antgroup.openspg.reasoner.thinker.logic.rule; | |
/* | |
* Copyright 2023 OpenSPG Authors | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License | |
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
* or implied. | |
*/ | |
package com.antgroup.openspg.reasoner.thinker.logic.rule; |
@@ -40,13 +40,8 @@ public TreeLogger(String currentNodeName) { | |||
} | |||
|
|||
public TreeLogger log(Object msg) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为啥不是append的逻辑了?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
每个Treelogger都是当前Node记录的信息,所以不需要append。最后打印拼接时才append
return instance; | ||
} | ||
synchronized (QlExpressRunner.class) { | ||
QlExpressRunner runner = new QlExpressRunner(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
单例模式,synchronized里面还需做一次if判断
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.