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

feat(reasoner): support spo inference #280

Merged
merged 26 commits into from
Jun 12, 2024
Merged

feat(reasoner): support spo inference #280

merged 26 commits into from
Jun 12, 2024

Conversation

fishjoy
Copy link
Collaborator

@fishjoy fishjoy commented Jun 12, 2024

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为啥不是append的逻辑了?

Copy link
Collaborator Author

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();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

单例模式,synchronized里面还需做一次if判断

Copy link
Collaborator

@wangsff wangsff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@yixianlzz yixianlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fishjoy fishjoy merged commit b568ddc into master Jun 12, 2024
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants