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

Add acq-objective.json schema and example file #295

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions examples/acq-objective.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"objective": [
{
"objectiveId": "objective ID",
"identifier": [ ],
"priority": "objective priority",
"objectiveType": ["MI_ObjectiveTypeCode"],
J-Oliveros marked this conversation as resolved.
Show resolved Hide resolved
"function": ["objective function one"],
"extent": [ ],
"objectiveOccurrence": ["eventId"],
"pass": ["passId"],
"sensingInstrument": ["instrumentId"]
}
]
}
71 changes: 65 additions & 6 deletions schema/acq-objective.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,69 @@
{
"id": "acq-.json",
"id": "acq-objective.json",
"$schema": "https://json-schema.org/draft-04/schema#",
"description": "",
"type": "object",
"example": "../examples/acq-.json",
"description": "describes the characteristics, spatial and temporal extent of the intended object to be observed",
"type": "array",
"example": "../examples/acq-objective.json",
"additionalProperties": false,
"required": [],
"properties": {}
"required": ["objectiveId","identifier"],
"properties": {
"objectiveId": {
"type": "string",
"description": "a unique identifier for the objective"
},
"identifier": {
"type": "array",
"description": "code used to identify the objective",
"items": {
"$ref": "./identifier.json"
}
},
"priority": {
"type": "string",
"description": "priority applied to the target"
},
"objectiveType": {
"type": "array",
"items": {
"$ref": "MI_ObjectiveTypeCode"
J-Oliveros marked this conversation as resolved.
Show resolved Hide resolved
},
"description": "collection techniques for the objective"
},
"function": {
"type": "array",
"items": {
"type": "string"
},
"description": "role or purpose performed by or activity performed at the objective"
},
"extent": {
"type": "array",
"items": {
"$ref": "./extent.json"
},
"description": "extent information including the bounding box, bounding polygon, vertical and temporal extent of the objective"
},
"objectiveOccurrence": {
"type": "array",
"items": {
"type": "string"
},
"description": "event or events associated with objective completion"
},
"pass": {
"type": "array",
"items": {
"type": "string"
},
"description": "pass of the platform over the objective"
},
"sensingInstrument": {
"type": "array",
"items": {
"type": "string"
},
"description": "instrument which senses the objective data"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs to be updated to use the $ref of their corresponding classes

}
}