Skip to content

Commit

Permalink
Merge pull request #279 from mimiro-io/feature-266-add-resourceType
Browse files Browse the repository at this point in the history
Feature 266 add resource type
  • Loading branch information
gra-moore authored Feb 21, 2022
2 parents 295d54d + 13322f1 commit d58bbae
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/icarResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
},

"properties": {
"resourceType" : {
"type": "string",
"description": "Uniform resource identifier (URI) or shortname of the logical resourceType. The ResourceType catalog defines the set of allowed resourceTyps."
},
"@self": {
"type": "string",
"description": "Uniform resource identifier (URI) of the resource (rel=self)."
Expand Down
58 changes: 58 additions & 0 deletions resources/resourceTypeCatalog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# ICAR Resource Type Catalog

This document defines a set of URI identifiers and string short codes and maps them to ICAR resource types.

The catalog is represented as a table with the columns, shortname, URI, link to resource resource type in github.

To help with readability and conciseness the URIs are represnted as CURIs (concise URIs) where the prefix is:

`icar`

and the expansion is:

`http://data.adewg.icar.org/core/`


Short Name | URI | JSON Resource Type Definition
--- | --- | ---
Animal | icar:Animal | icarAnimalCoreResource.json
AnimalSetJoinEvent | icar:AnimalSetJoinEvent | icarAnimalSetJoinEventResource.json
AnimalSetLeaveEvent | icar:AnimalSetLeaveEvent | icarAnimalSetLeaveEventResource.json
AnimalSet | icar:AnimalSet | icarAnimalSetResource.json
BreedingValue | icar:BreedingValue | icarBreedingValueResource.json
ConformationScoreEvent | icar:ConformationScoreEvent | icarConformationScoreEventResource.json
DailyMilkingAverages | icar:DailyMilkingAverages | icarDailyMilkingAveragesResource.json
Device | icar:Device | icarDeviceResource.json
DiagnosisEvent | icar:DiagnosisEvent | icarDiagnosisEventResource.json
FeedIntakeEvent | icar:FeedIntakeEvent | icarFeedIntakeEventResource.json
FeedRecommendation | icar:FeedRecommendation | icarFeedRecommendationResource.json
FeedReport | icar:FeedReport | icarFeedReportResource.json
Feed | icar:Feed | icarFeedResource.json
FeedStorage | icar:FeedStorage | icarFeedStorageResource.json
Gestation | icar:Gestation | icarGestationResource.json
Lactation | icar:Lactation | icarLactationResource.json
LactationStatusObservedEvent | icar:LactationStatusObservedEvent | icarLactationStatusObservedEventResource.json
Location | icar:Location | icarLocationResource.json
Medicine | icar:Medicine | icarMedicineResource.json
MilkingDryOffEvent | icar:MilkingDryOffEvent | icarMilkingDryOffEventResource.json
MilkingVisitEvent | icar:MilkingVisitEvent | icarMilkingVisitEventResource.json
MovementArrivalEvent | icar:MovementArrivalEvent | icarMovementArrivalEventResource.json
MovementBirthEvent | icar:MovementBirthEvent | icarMovementBirthEventResource.json
MovementDeathEvent | icar:MovementDeathEvent | icarMovementDeathEventResource.json
MovementDepartureEvent | icar:MovementDepartureEvent | icarMovementDepartureEventResource.json
Ration | icar:Ration | icarRationResource.json
ReproAbortionEvent | icar:ReproAbortionEvent | icarReproAbortionEventResource.json
ReproDoNotBreedEvent | icar:ReproDoNotBreedEvent | icarReproDoNotBreedEventResource.json
ReproEmbryo | icar:ReproEmbryo | icarReproEmbryoResource.json
ReproHeatEvent | icar:ReproHeatEvent | icarReproHeatEventResource.json
ReproInseminationEvent | icar:ReproInsemonationEvent | icarReproInsemonationEventResource.json
ReproMatingRecommendation | icar:ReproMatingRecommendation | icarReproMatingRecommendationResource.json
ReproParturitionEvent | icar:ReproParturitionEvent | icarReproParturitionEventResource.json
ReproSemenStraw | icar:ReproSemenStraw | icarReproSemenStrawResource.json
ReproStatusObservedEvent | icar:ReproStatusObservedEvent | icarReproStatusObservedEventResource.json
TestDay | icar:TestDay | icarTestDayResource.json
TestDayResult | icar:TestDayResult | icarTestDayResultResource.json
TreatmentEvent | icar:TreatmentEvent | icarTreatmentEventResource.json
TreatmentProgramEvent | icar:TreatmentProgramEvent | icarTreatmentProgramEventResource.json
WeightEvent | icar:WeightEvent | icarWeightEventResource.json

0 comments on commit d58bbae

Please sign in to comment.