ADAPT - ContextItem Discussion

Note: ContextItems do not have IDs because they never stand alone; they are always embedded within other objects.

ContextItem  

AttributeTypeMultiplicityDescription
ContextItemTypeInteger1

Essentially a Representation ID. We are talking about an ID of an abstract class because ContextItem values can correspond to:

  • NumericRepresentationValues (e.g., FSA Area of a field)
  • EnumeratedRepresentationValues (e.g., PLSS Prime Meridians)
  • String Representations (e.g., US Driver's License number)
ValueString0..1Optional because container ContextItems (e.g., PLSS) would not have a Value.
ContextItemsContextItem0..*Mechanism to implement hierarchy, e.g., PLSS
CodeString1
ValueUOMString0..1
NestedItemsContextItem0..*
TimeScopesTimeScope0..*

ContextItemDefinition

AttributeTypeMultiplicityDescription
IdCompoundIdentifier1
ParentIdInteger0..1
CodeString0..1
VersionInteger1
ValueTypeContextItemValueTypeEnum0..1
DescriptionString0..1
KeywordsString0..*
AgGlossaryURLString0..1
AgrovocURLString0..1
LexicalizationsLexicalization0..*
PropertiesContextItem0..*
NestedDefIdsInteger0..*
PresentationsPresentations0..*
EnumItemsContextItemEnumItem0..*
DefaultUOMString0..1
AllowConversionBoolean1
TimeScopesTimeScope0..*
ModelScopeIdsInteger0..*
GeoPoliticalContextIdsInteger0..*

ContextItemEnumItem

AttributeTypeMultiplicityDescription
ValueString0..1
VersionInteger1
DescriptionString0..1
AgGlossaryURLString0..1
AgrovocURLString0..1
LexicalizationsLexicalization0..*
PropertiesContextItem0..*

GeoPoliticalContext

AttributeTypeMultiplicityDescription
IdCompoundIdentifier1
CodeString1
DescriptionString0..1
GPCLevelGPCLevelEnum0..1
GPCVocSourceGPCSourceVocEnum0..1
LexicalizationsLexicalization0..*

Lexicalization

AttributeTypeMultiplicityDescription
TextString1
LanguageIdInteger1
GeoPoliticalContextIdsInteger0..*


GPCLevelEnum

Enumeration LiteralDescription
Country
ADM1
ADM2

GPCSourceVocEnum

Enumeration LiteralDescription
ISO3166_1A3
ISO3166_2
GeoNames
FAOGPO

Some ContextItem Examples

Note: As of 200160617, the most comprehensive list of ContextItems is in  the /wiki/spaces/SPADE2/pages/58654742 page.

ItemType?

Proposed?Why do we need it?
StandardPayableMoisture_USNumeric
Numeric
Property of a commodity, and jurisdiction-specific.
SeedLotIdstring0..*Context?

SeedSourcestring
Context?

CropInsuranceIdstring
Context?

PermitIdstring
Context?

SiteIdstring
Context?

CropZonePermitIdstring
Context?

TillagePracticestring
Context currently.

ISO11783 ASP Type enumerationstring

1 (Planned)

4 (Effective)

20150818 GroupNeeded for ISO11783 compatibility.
ISO11783 TIM Type enumerationstring

1 (Planned)

2 (Preliminary)

3 (Preparation)

4 (Effective)

5 (Ineffective)

6 (Repair)

7 (Clearing)

8 (Powered down)

20150818 GroupNeeded for ISO11783 compatibility.
ISO11783 DLV.D (DataLogPGN)Unsigned Long Integer
0 to (218-1)20150818 GroupTakes care of an ISOBUS-architecture-specific attribute for ISO11783 compatibility.
ISO11783 DLV.E (DataLogPGNStartBit)Unsigned byte
0 to 6320150818 GroupTakes care of an ISOBUS-architecture-specific attribute for ISO11783 compatibility.
ISO11783 DLV.F (DataLogPGNStopBit)Unsigned byte
0 to 6320150818 GroupTakes care of an ISOBUS-architecture-specific attribute for ISO11783 compatibility.

 

Users of ContextItems?

Unclear what this is...

AttributeTypeMultiplicityDescription
IdInteger1Unique identifier
PlanIdInteger0..1A list of Document references indicating which documents resulted in the creation of this work item
RecommendationIdInteger0..1
WorkOrderIdInteger0..1
NoteIdInteger0..*Unbounded note field objects
WorkDatesTimeScope0..1Interval of time within which the work must be done: Start --> When the work can begin; End–> Due date by which the work must be done
PriorityEnumeration0..1Immediately / SoonAsPossible (no due date) / High / Medium / Low? Some kind of scale?
CreationDateDateTime1

When the work item was created.

ModifiedDateDateTime1The last date the work item was modified
SeasonTimeScope1The season the work item should be performed in
ApprovalAuthorityIdInteger0..*A list of IDs of authorities that authorized this work
ClientIdInteger0..1A reference to the Client/Grower to use for the work
FarmIdInteger0..1A reference to the Farm to use for the work
FieldIdInteger0..1A reference to the Field to use for the work
CropZoneIdInteger0..*A list of CropZone references.
OperatorIdInteger0..1A reference to the Operator to use for the work
MachineIdInteger0..1A reference to the Machine to use for the work
SpatialLayerIdInteger0..*A list of spatial layers needed to do the work (e.g. VarietyLocator layer)
FieldBoundaryIdInteger0..1A reference to the field boundary to use for the work
WorkItemOperationIdInteger0..*A list of WorkItemOperation references that define various objects to use with a given operation
GuidanceIdInteger0..nA list of guidance objects to be used for the work
StatusIdInteger0..*Defines the current status of the work item. It's a reference to a StatusUpdate object