You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: unoplat-code-confluence-commons/schema_documentation.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,7 @@ class CodeConfluenceGitRepository(BaseNode):
126
126
-`git_repository` (AsyncRelationshipTo → CodeConfluenceGitRepository, 'PART_OF_GIT_REPOSITORY', cardinality=AsyncOne): Connects to the parent git repository.
127
127
128
128
**Code**:
129
+
129
130
```python
130
131
from neomodel import (
131
132
StringProperty,
@@ -208,6 +209,7 @@ class CodeConfluenceCodebase(BaseNode):
208
209
-`codebase` (AsyncRelationshipFrom ← CodeConfluenceCodebase, 'HAS_PACKAGE_MANAGER_METADATA', cardinality=AsyncOne): Connection back to the parent codebase.
209
210
210
211
**Code**:
212
+
211
213
```python
212
214
from neomodel import (
213
215
StringProperty,
@@ -271,6 +273,7 @@ class CodeConfluencePackageManagerMetadata(BaseNode):
271
273
-`files` (AsyncRelationshipTo → CodeConfluenceFile, 'CONTAINS_FILE', cardinality=AsyncZeroOrMore): Connects to files within the package.
272
274
273
275
**Code**:
276
+
274
277
```python
275
278
from neomodel import (
276
279
StringProperty,
@@ -326,22 +329,23 @@ class CodeConfluencePackage(BaseNode):
326
329
**Properties**:
327
330
328
331
-`file_path` (StringProperty, required=True, unique_index=True): Path to the file.
329
-
-`content` (StringProperty): Content of the file.
332
+
-`content` (StringProperty, fulltext_index=FulltextIndex(analyzer="english")): Content of the file with full-text search support.
330
333
-`checksum` (StringProperty): Checksum of the file content.
331
334
-`structural_signature` (JSONProperty): Structural signature of the file.
332
335
-`global_variables` (ArrayProperty(StringProperty), default=[]): List of global variables in the file.
333
336
-`class_variables` (JSONProperty): Class variables information.
334
-
-`imports` (ArrayProperty(StringProperty), default=[]): List of imports in the file.
337
+
-`imports` (ArrayProperty(StringProperty), default=[], fulltext_index=FulltextIndex(analyzer="english")): List of imports in the file with full-text search support.
338
+
-`poi_labels` (ArrayProperty(StringProperty), fulltext_index=FulltextIndex(analyzer="english")): Points of interest labels with full-text search support.
335
339
336
340
**Relationships**:
337
341
338
342
-`package` (AsyncRelationshipTo → CodeConfluencePackage, 'PART_OF_PACKAGE', cardinality=AsyncOne): Connection to the parent package.
339
343
340
344
**Code**:
341
-
```python
342
-
from neomodel import AsyncStructuredNode, StringProperty, AsyncRelationshipTo, AsyncRelationship, AsyncOne, AsyncZeroOrMore
343
-
from neomodel import JSONProperty, ArrayProperty
344
345
346
+
```python
347
+
from neomodel import AsyncStructuredNode, StringProperty, AsyncRelationshipTo, AsyncOne
348
+
from neomodel import JSONProperty, ArrayProperty, FulltextIndex
345
349
from unoplat_code_confluence_commons.graph_models.base_models import ContainsRelationship
346
350
347
351
classCodeConfluenceFile(AsyncStructuredNode):
@@ -353,13 +357,20 @@ class CodeConfluenceFile(AsyncStructuredNode):
This schema represents a comprehensive graph model for code analysis and representation, capturing the relationships between repositories, codebases, packages, and files.
398
+
This schema represents a comprehensive graph model for code analysis and representation, capturing the relationships between repositories, codebases, packages, and files.
0 commit comments