Skip to content

Commit a5879df

Browse files
committed
adding to avro analysis for isGranule and relationships analysis
1 parent b086f0a commit a5879df

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

schemas-core/src/main/resources/avro/psi/analysis.avsc

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@
7676
"default": null,
7777
"doc": "Indicates if the analyzed record has a hierarchy level name"
7878
},
79+
{
80+
"name": "isGranule",
81+
"type": [
82+
"null",
83+
"boolean"
84+
],
85+
"default": null,
86+
"doc": "Resolves to true if metadata content indicates a record is a granule. That is, a parent identifier is present and the hierarchy level name is 'granule'."
87+
},
7988
{
8089
"name": "matchesIdentifiers",
8190
"type": [
@@ -90,6 +99,61 @@
9099
],
91100
"default": null
92101
},
102+
{
103+
"name": "relationships",
104+
"doc": "Assessment of the relationships identified in the metadata.",
105+
"type": [
106+
"null",
107+
{
108+
"type": "record",
109+
"name": "RelationshipAnalysis",
110+
"fields": [
111+
{
112+
"name": "hasRelationships",
113+
"type": [
114+
"null",
115+
"boolean"
116+
],
117+
"default": null,
118+
"doc": "Indicates if a record has any identified relationships"
119+
},
120+
{
121+
"name": "relationships",
122+
"doc": "Summary of associated relationship RecordTypes and corresponding counts"
123+
"type": {
124+
"type": "array",
125+
"items": {
126+
"name": "RelationshipAnalysisElement",
127+
"type": "record",
128+
"fields": [
129+
{
130+
"name": "type",
131+
"type": [
132+
null,
133+
"RelationshipType"
134+
],
135+
"default": null,
136+
"doc": "RecordType of associated relationship(s)."
137+
},
138+
{
139+
"name": "count",
140+
"type": [
141+
"null",
142+
"int"
143+
],
144+
"default": null,
145+
"doc": "Count of associated relationships for the given RecordType."
146+
}
147+
]
148+
}
149+
},
150+
"default": []
151+
}
152+
]
153+
}
154+
],
155+
"default": null
156+
},
93157
{
94158
"name": "titles",
95159
"doc": "Assessment of the titles in the metadata.",

0 commit comments

Comments
 (0)