forked from XiaoMi/mone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from TreasureJade/feat-neo4j
chore: update Node, MoneCodeParserTest, Relationship, and Relationshi…
- Loading branch information
Showing
4 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package run.mone.neo4j; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @author caobaoyu | ||
* @description: | ||
* @date 2024-08-19 17:25 | ||
*/ | ||
@Data | ||
public class Node { | ||
private String fullName; | ||
|
||
private String packageName; | ||
|
||
// todo 枚举 | ||
private Object label; | ||
|
||
// todo 枚举 | ||
private Object type; | ||
|
||
// 元数据 | ||
private String meta; | ||
|
||
private String desc; | ||
|
||
private String md5; | ||
|
||
private Float[] embedding; | ||
|
||
private String path; | ||
|
||
private String language; | ||
} |
20 changes: 20 additions & 0 deletions
20
jcommon/ai/neo4j/src/main/java/run/mone/neo4j/Relationship.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package run.mone.neo4j; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author caobaoyu | ||
* @description: | ||
* @date 2024-08-19 17:29 | ||
*/ | ||
@Data | ||
public class Relationship { | ||
|
||
private String fullName; | ||
|
||
private List<RelationshipDetail> relationshipDetails; | ||
|
||
|
||
} |
18 changes: 18 additions & 0 deletions
18
jcommon/ai/neo4j/src/main/java/run/mone/neo4j/RelationshipDetail.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package run.mone.neo4j; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @author caobaoyu | ||
* @description: | ||
* @date 2024-08-19 19:07 | ||
*/ | ||
@Data | ||
public class RelationshipDetail { | ||
|
||
private Object label; | ||
|
||
private String next; | ||
|
||
private String desc; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters