Repository navigation
Expand file tree
/
Copy pathLearningOpportunityRequest.cs
More file actions
965 lines (801 loc) · 38.9 KB
/
Copy pathLearningOpportunityRequest.cs
File metadata and controls
965 lines (801 loc) · 38.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
// <copyright file="LearningOpportunityRequest.cs" company="Credential Engine">
// Copyright (c) Credential Engine. All rights reserved.
// </copyright>
// <license>Apache License 2.0 - https://www.apache.org/licenses/LICENSE-2.0</license>
using System.Collections.Generic;
using Newtonsoft.Json;
namespace RA.Models.Input
{
public class LearningOpportunityRequest : BaseRequest
{
public LearningOpportunityRequest()
{
LearningOpportunity = new LearningOpportunity();
}
public LearningOpportunity LearningOpportunity { get; set; }
}
public class LearningProgramRequest : LearningOpportunityRequest
{
public LearningProgramRequest()
{
LearningOpportunity = new LearningOpportunity()
{
Type = "LearningProgram"
};
}
}
/// <summary>
/// A course will have all of the properties of LearningOpportunityProfile, except:
/// - ceterms:instructionalProgramType
/// </summary>
public class CourseRequest : LearningOpportunityRequest
{
public CourseRequest()
{
LearningOpportunity = new LearningOpportunity()
{
Type = "Course"
};
}
}
/// <summary>
/// LearningOpportunity request input class
/// Note: the following are inverse properties and NOT published with the resource:
/// - ceterms:hasProxy
/// - ceterms:isPartOf
/// - ceterms:objectOfAction
/// - ceterms:targetPathway
/// - qdata:relevantDataSet
/// </summary>
public class LearningOpportunity : BaseRequestHelper
{
public LearningOpportunity()
{
Subject = new List<string>();
Keyword = new List<string>();
DeliveryType = new List<string>();
LearningMethodType = new List<string>();
EstimatedCost = new List<CostProfile>();
AudienceType = new List<string>();
AudienceType = new List<string>();
AvailabilityListing = new List<string>();
AvailableOnlineAt = new List<string>();
AccreditedBy = new List<Input.OrganizationReference>();
ApprovedBy = new List<Input.OrganizationReference>();
RecognizedBy = new List<Input.OrganizationReference>();
RegulatedBy = new List<Input.OrganizationReference>();
Teaches = new List<CredentialAlignmentObject>();
AdvancedStandingFrom = new List<ConditionProfile>();
IsAdvancedStandingFor = new List<ConditionProfile>();
PreparationFrom = new List<ConditionProfile>();
IsPreparationFor = new List<ConditionProfile>();
IsRecommendedFor = new List<ConditionProfile>();
IsRequiredFor = new List<ConditionProfile>();
InLanguage = new List<string>();
AvailableAt = new List<Place>();
CommonConditions = new List<string>();
CommonCosts = new List<string>();
HasPart = new List<EntityReference>();
IsPartOf = new List<EntityReference>();
VersionIdentifier = new List<IdentifierValue>();
}
/// <summary>
/// Helper property for use with blank nodes
/// </summary>
public string Type { get; set; } = "LearningOpportunityProfile";
/// <summary>
/// Handle both forms of input for type
/// </summary>
[JsonProperty( "@type" )]
public string AtType
{
get { return Type; }
set { Type = value; }
}
#region *** Required Properties ***
/// <summary>
/// Name or title of the resource.
/// Required
/// </summary>
public string Name { get; set; }
/// <summary>
/// LanguageMap for Name
/// </summary>
[JsonProperty( PropertyName = "ceterms:name" )]
public LanguageMap NameLangMap { get; set; } = new LanguageMap();
/// <summary>
/// Description
/// REQUIRED and must be a minimum of 15 characters.
/// </summary>
public string Description { get; set; }
/// <summary>
/// Alternately can provide a language map
/// </summary>
[JsonProperty( PropertyName = "ceterms:description" )]
public LanguageMap DescriptionLangMap { get; set; } = new LanguageMap();
/// <summary>
/// Credential Identifier
/// format:
/// ce-UUID (guid)
/// Required
/// </summary>
public string CTID { get; set; }
/// <summary>
/// The primary language or languages of the entity, even if it makes use of other languages; e.g., a course offered in English to teach Spanish would have an inLanguage of English, while a credential in Quebec could have an inLanguage of both French and English.
/// List of language codes. ex: en, es
/// </summary>
public List<string> InLanguage { get; set; }
/// <summary>
/// Webpage that describes this entity.
/// 24-03-18 no longer required for course, but is still required for the others
/// URL
/// </summary>
public string SubjectWebpage { get; set; }
/// <summary>
/// Type of official status of this resource. Select a valid concept from the LifeCycleStatus concept scheme.
/// Provide the string value. API will format correctly. The name space of lifecycle doesn't have to be included
/// Required
/// lifecycle:Developing, lifecycle:Active", lifecycle:Suspended, lifecycle:Ceased
/// <see href="https://credreg.net/ctdl/terms/LifeCycleStatus">ceterms:LifeCycleStatus</see>
/// </summary>
public string LifeCycleStatusType { get; set; } = "lifeCycle:Active";
#region at least one of
/// <summary>
/// Organization that owns this resource
/// </summary>
public List<OrganizationReference> OwnedBy { get; set; } = new List<OrganizationReference>();
// OR
/// <summary>
/// Organization(s) that offer this resource
/// </summary>
public List<OrganizationReference> OfferedBy { get; set; } = new List<Input.OrganizationReference>();
#endregion
#endregion
#region *** Recommended Benchmark ***
/// <summary>
/// Provide credit information in a ValueProfile value
/// A credit-related value.
/// 21-07-19 - updating Creditvalue to also allow a list. It is defined as an object. The API will accept either a ValueProfile object or List of ValueProfiles
/// 21-08-18 - Changing permanently to the List, as only existing use was from the publisher (and the latter is updated to use the list)
/// </summary>
public List<ValueProfile> CreditValue { get; set; } = new List<ValueProfile>();
/// <summary>
/// Competency that the learning opportunity is intended to teach.
/// List of CredentialAlignmentObjects where TargetNodeName is the only required property.
/// </summary>
public List<CredentialAlignmentObject> Teaches { get; set; }
/// <summary>
/// Teaches Competency Framework - Helper property
/// A list of CTIDs for frameworks, where this resource teaches all competencies in a framework.
/// API will look up framework, get all competencies and add as Teaches for this resource.
/// Only provide Teaches or TeachesCompetencyFramework, but not both (will result in an error).
/// </summary>
public List<string> TeachesCompetencyFramework { get; set; }
/// <summary>
/// Types of methods used to conduct the learning opportunity;
/// Concepts: Applied, Gaming, Laboratory, Lecture, Prerecorded, SelfPaced, Seminar, WorkBased
/// ConceptScheme: <see href="https://credreg.net/ctdl/terms/LearningMethod">LearningMethod</see>
/// </summary>
public List<string> LearningMethodType { get; set; }
/// <summary>
/// Learning Method Description
/// Description of the learning methods for a resource.
///
/// </summary>
public string LearningMethodDescription { get; set; }
/// <summary>
/// Alternately can provide a language map
/// </summary>
[JsonProperty( PropertyName = "ceterms:learningMethodDescription" )]
public LanguageMap LearningMethodDescriptionLangMap { get; set; } = null;
/// <summary>
/// Type indicating how part of a learning opportunity is distinguished from others.
/// ConceptScheme: ceterms:PartType
/// </summary>
public List<string> LearningPartType { get; set; }
/// <summary>
/// Type of means by which a learning opportunity or assessment is delivered to credential seekers and by which they interact; select from an existing enumeration of such types.
/// deliveryType:BlendedDelivery deliveryType:InPerson deliveryType:OnlineOnly
/// <see href="https://credreg.net/ctdl/terms/Delivery"></see>
/// </summary>
public List<string> DeliveryType { get; set; }
/// <summary>
/// Detailed description of the delivery type of an assessment or learning opportunity.
/// </summary>
public string DeliveryTypeDescription { get; set; }
[JsonProperty( PropertyName = "ceterms:deliveryTypeDescription" )]
public LanguageMap DeliveryTypeDescriptionLangMap { get; set; } = null;
/// <summary>
/// An inventory or listing of resources that includes this resource.
/// </summary>
public object InCatalog { get; set; }
#endregion
#region Online or Physical Location
// 23-11-13 - there is no longer a requirement to have at least one of the following
// 24-03-25 mp - TBD, this may only apply to a Course, that is for other types, at least one of the properties must be provided
/// <summary>
/// Online location where the credential, assessment, or learning opportunity can be pursued.
/// URL
/// </summary>
public List<string> AvailableOnlineAt { get; set; }
/// <summary>
/// Listing of online and/or physical locations where a credential can be pursued.
/// URL
/// </summary>
public List<string> AvailabilityListing { get; set; }
/// <summary>
/// Physical location where the credential, assessment, or learning opportunity can be pursued.
/// Place
/// </summary>
public List<Place> AvailableAt { get; set; }
#endregion
// =========== optional ================================
/// <summary>
/// An additional free text note about the quality assurance or licensing of an organisation or a qualification.
/// </summary>
public Note AdditionalNote { get; set; } = null;
/// <summary>
/// List of Alternate Names for this learning opportunity
/// </summary>
public List<string> AlternateName { get; set; } = new List<string>();
/// <summary>
/// LanguageMap for AlternateName
/// </summary>
[JsonProperty( PropertyName = "ceterms:alternateName" )]
public LanguageMapList AlternateNameLangMap { get; set; } = null;
/// <summary>
/// Resource containing summary/statistical employment outcome, earnings, and/or holders information.
/// For deeper information, include qdata:DataSetProfile.
/// </summary>
public List<AggregateDataProfile> AggregateData { get; set; } = new List<AggregateDataProfile>();
/// <summary>
/// Approximate date after which this resource is available or applicable.
/// The value should be in ISO 8601 date format; specifically YYYY or YYY-MM.
/// </summary>
public string ApproximateDateEffective { get; set; }
/// <summary>
/// Approximate date after which this resource is no longer offered or available.
/// The value should be in ISO 8601 date format; specifically YYYY or YYY-MM.
/// </summary>
public string ApproximateExpirationDate { get; set; }
/// <summary>
/// Competency evaluated through the learning opportunity.
/// </summary>
public List<CredentialAlignmentObject> Assesses { get; set; }
/// <summary>
/// Assessment Method Description
/// Description of the assessment methods for a resource.
/// </summary>
public string AssessmentMethodDescription { get; set; }
/// <summary>
/// Alternately can provide a language map
/// </summary>
[JsonProperty( PropertyName = "ceterms:assessmentMethodDescription" )]
public LanguageMap AssessmentMethodDescriptionLangMap { get; set; } = null;
/// <summary>
/// Type of method used to conduct an assessment; select from an existing enumeration of such types.
/// assessMethod:Artifact, assessMethod:Exam, assessMethod:Performance
/// <see href="https://credreg.net/ctdl/terms/AssessmentMethod"></see>
/// </summary>
public List<string> AssessmentMethodType { get; set; } = new List<string>();
/// <summary>
/// Description of resources that support, supplement or are referenced during learning and assessment to which access may be required or recommended.
/// </summary>
public string AssociatedResourceDescription { get; set; }
/// <summary>
/// LanguageMap for AssociatedResourceDescription
/// </summary>
[JsonProperty( PropertyName = "ceterms:associatedResourceDescription" )]
public LanguageMap AssociatedResourceDescriptionLangMap { get; set; } = null;
/// <summary>
/// Indicates the stage or level of achievement in a progression of learning.
/// range: ceterms:CredentialAlignmentObject
/// </summary>
public List<CredentialAlignmentObject> AtLevel { get; set; }
/// <summary>
/// The type of credential seeker for whom the entity is applicable; select from an existing enumeration of such types.
/// audience:Citizen audience:CurrentMilitary audience:CurrentMilitaryDependent audience:CurrentMilitarySpouse audience:CurrentStudent audience:FormerMilitary audience:FormerMilitaryDependent audience:FormerMilitarySpouse audience:FormerStudent audience:FullTime audience:Member audience:NonCitizen audience:NonMember audience:NonResident audience:PartTime audience:PrivateEmployee audience:PublicEmployee audience:Resident
/// <see href="https://credreg.net/ctdl/terms/Audience"></see>
/// </summary>
public List<string> AudienceType { get; set; }
/// <summary>
/// Type of level indicating a point in a progression through an educational or training context, for which the credential is intended; select from an existing enumeration of such types.
/// audLevel:AdvancedLevel audLevel:AssociatesDegreeLevel audLevel:BachelorsDegreeLevel audLevel:BeginnerLevel audLevel:DoctoralDegreeLevel audLevel:GraduateLevel audLevel:IntermediateLevel audLevel:LowerDivisionLevel audLevel:MastersDegreeLevel audLevel:PostSecondaryLevel audLevel:ProfessionalLevel audLevel:SecondaryLevel audLevel:UndergraduateLevel audLevel:UpperDivisionLevel
/// <see href="https://credreg.net/ctdl/terms/AudienceLevel"></see>
/// </summary>
public List<string> AudienceLevelType { get; set; } = new List<string>();
/// <summary>
/// Set of alpha-numeric symbols that uniquely identifies an item and supports its discovery and use.
/// ceterms:codedNotation
/// </summary>
public string CodedNotation { get; set; }
/// <summary>
/// List of CTIDs (recommended) or full URLs for a CostManifest published by the owning organization.
/// Set of costs maintained at an organizational or sub-organizational level, which apply to this learning opportunity.
/// </summary>
public List<string> CommonCosts { get; set; }
/// <summary>
/// Description of the topics, concepts, theories, and practices addressed by this resource.
/// </summary>
public string ContentDescription { get; set; }
/// <summary>
/// LanguageMap for ContentDescription
/// </summary>
[JsonProperty( PropertyName = "ceterms:contentDescription" )]
public LanguageMap ContentDescriptionLangMap { get; set; } = null;
/// <summary>
/// Detailed description of credit unit.
/// Recommendation is to use CreditValue rather than this property.
/// </summary>
public string CreditUnitTypeDescription { get; set; }
/// <summary>
/// LanguageMap for CreditUnitTypeDescription
/// </summary>
[JsonProperty( PropertyName = "ceterms:creditUnitTypeDescription" )]
public LanguageMap CreditUnitTypeDescriptionLangMap { get; set; } = null;
/// <summary>
/// Start Date of the Learning opportunity
/// </summary>
public string DateEffective { get; set; }
/// <summary>
/// Estimated cost of a credential, learning opportunity or assessment.
/// </summary>
public List<CostProfile> EstimatedCost { get; set; }
/// <summary>
/// Estimated time it will take to complete a credential, learning opportunity or assessment.
/// </summary>
public List<DurationProfile> EstimatedDuration { get; set; }
/// <summary>
/// End date of the learning opportunity if applicable
/// </summary>
public string ExpirationDate { get; set; }
/// <summary>
/// Entity that describes financial assistance that is offered or available.
/// </summary>
public List<FinancialAssistanceProfile> FinancialAssistance { get; set; } = new List<FinancialAssistanceProfile>();
/// <summary>
/// Helper property for referencing existing financial assistance profiles by CTID
/// </summary>
public List<string> CommonFinancialAssistance { get; set; }
/// <summary>
/// Indicates an offering and typical schedule.
/// NOTE: Only use this property when it is necessary and useful to provide data about specific offerings of a learning opportunity or assessment, such as particular combinations of schedule, location, and delivery.
/// </summary>
public List<string> HasOffering { get; set; } = new List<string>();
/// <summary>
/// Indicates a separately identifiable and independently useful component of the entity.
/// 2026-01-30 An assessment Profile is now in the range of hasPart.
/// </summary>
public List<EntityReference> HasPart { get; set; }
/// <summary>
/// Indicates a resource that acts as a stand-in for the resource.
/// full URL OR CTID (recommended)
/// </summary>
public string HasProxy { get; set; }
/// <summary>
/// Rubric related to this resource.
/// <see cref="https://credreg.net/ctdl/terms/hasRubric"/>
/// ceterms:hasRubric
/// </summary>
public List<string> HasRubric { get; set; } = new List<string>();
/// <summary>
/// Reference to a relevant support service.
/// List of CTIDs that reference one or more published support services
/// </summary>
public List<string> HasSupportService { get; set; } = new List<string>();
/// <summary>
/// Alphanumeric token that identifies this resource and information about the token's originating context or scheme.
/// <see href="https://purl.org/ctdl/terms/identifier"></see>
/// ceterms:identifier
/// </summary>
public List<IdentifierValue> Identifier { get; set; } = new List<IdentifierValue>();
/// <summary>
/// Is Non-Credit
/// Resource carries or confers no official academic credit towards a program or a credential.
/// </summary>
public bool? IsNonCredit { get; set; }
/// <summary>
/// The resource is registered with a governmental agency or other authorized organization because it has been vetted, approved and validated to meet specific criteria.
/// </summary>
public bool? IsRegisteredApprenticeship { get; set; }
/// <summary>
/// Indicates another entity of which this entity is a component. That is of another Learning Opportunity
/// Covers partitive notions such as "embedded".
/// </summary>
public List<EntityReference> IsPartOf { get; set; }
/// <summary>
/// Jurisdiction Profile
/// Geo-political information about applicable geographic areas and their exceptions.
/// <see href="https://credreg.net/ctdl/terms/JurisdictionProfile"></see>
/// </summary>
public List<JurisdictionProfile> Jurisdiction { get; set; }
/// <summary>
/// Keyword or key phrase describing relevant aspects of an entity.
/// </summary>
public List<string> Keyword { get; set; }
/// <summary>
/// Language map list for Keyword
/// </summary>
[JsonProperty( PropertyName = "ceterms:keyword" )]
public LanguageMapList KeywordLangMap { get; set; } = null;
/// <summary>
/// Resource that is required as a prior condition to this resource.
/// Only allowed for a course on a course
/// </summary>
public List<ConditionProfile> Prerequisite { get; set; } = new List<ConditionProfile>();
/// <summary>
/// This resource provides transfer value for the referenced Transfer Value Profile.
/// Refer to the referenced Transfer Value Profile for more information. Other resources may be included for the full value.
/// </summary>
public List<string> ProvidesTransferValueFor { get; set; } = new List<string>();
/// <summary>
/// This resource receives transfer value from the referenced Transfer Value Profile.
/// Refer to the referenced Transfer Value Profile for more information. Other resources may be included for the full value.
/// </summary>
public List<string> ReceivesTransferValueFrom { get; set; } = new List<string>();
/// <summary>
/// Industry for which this resource is acknowledged to be valid.
/// List of CTIDs for published industry types.
/// </summary>
public List<string> RecognizedForIndustry { get; set; } = new List<string>();
/// <summary>
/// Credential awarded as the result of successful completion of the resource being described.
/// </summary>
public List<string> ResultsInCredential { get; set; } = new List<string>();
/// <summary>
/// Organization(s) that register this resource.
/// Typically used for Registered Apprenticeships
/// </summary>
public List<OrganizationReference> RegisteredBy { get; set; } = new List<Input.OrganizationReference>();
/// <summary>
/// Another source of information about the entity being described.
/// HINT: If the SameAs target is a resource in the Credential Registry, just the CTID needs to be provided.
/// ceterms:sameAs
/// </summary>
public List<string> SameAs { get; set; } = new List<string>();
/// <summary>
/// Words or brief phrases describing the topicality of the entity; select subject terms from an existing enumeration of such terms.
/// </summary>
public List<string> Subject { get; set; }
/// <summary>
/// Language map list for Subject
/// </summary>
[JsonProperty( PropertyName = "ceterms:subject" )]
public LanguageMapList SubjectLangMap { get; set; } = null;
/// <summary>
/// Primary academic discipline or professional career path.
/// Comment:
/// May be useful for describing credentials, assessments and learning opportunities that cover a general field but with a focus on a specific skill set, for example an apprenticeship in electrical engineering specializing in High Voltage applications. For degree credentials there are also properties for degree major, minor and concentration.
/// range: ceterms:CredentialAlignmentObject
/// </summary>
public List<CredentialAlignmentObject> SpecialistSubject { get; set; }
/// <summary>
/// Type of frequency at which a resource is offered; select from an existing enumeration of such types.
/// ConceptScheme: ceterms:ScheduleFrequency
/// scheduleFrequency:Annually scheduleFrequency:BiMonthly scheduleFrequency:EventBased scheduleFrequency:Irregular scheduleFrequency:Monthly scheduleFrequency:MultiplePerWeek scheduleFrequency:OnDemand scheduleFrequency:OpenEntryExit scheduleFrequency:Quarterly scheduleFrequency:SelfPaced scheduleFrequency:SemiAnnually scheduleFrequency:SingleInstance scheduleFrequency:Weekly
/// </summary>
public List<string> OfferFrequencyType { get; set; } = new List<string>();
/// <summary>
/// Type of frequency with which events typically occur; select from an existing enumeration of such types.
/// ConceptScheme: ceterms:ScheduleFrequency
/// scheduleFrequency:Annually scheduleFrequency:BiMonthly scheduleFrequency:EventBased scheduleFrequency:Irregular scheduleFrequency:Monthly scheduleFrequency:MultiplePerWeek scheduleFrequency:OnDemand scheduleFrequency:OpenEntryExit scheduleFrequency:Quarterly scheduleFrequency:SelfPaced scheduleFrequency:SemiAnnually scheduleFrequency:SingleInstance scheduleFrequency:Weekly
/// </summary>
public List<string> ScheduleFrequencyType { get; set; } = new List<string>();
/// <summary>
/// Type of time at which events typically occur; select from an existing enumeration of such types.
/// ConceptScheme: ceterms:ScheduleTiming
/// scheduleTiming:Daytime scheduleTiming:Evening scheduleTiming:Weekdays scheduleTiming:Weekends
/// </summary>
public List<string> ScheduleTimingType { get; set; } = new List<string>();
#region Occupations, Industries, and instructional programs
// =====================================================================
// List of occupations from a published framework, that is with a web URL
/// <summary>
/// OccupationType
/// Type of occupation; select from an existing enumeration of such types.
/// For U.S. credentials, best practice is to identify an occupation using a framework such as the O*Net.
/// Other credentials may use any framework of the class ceterms:OccupationClassification, such as the EU's ESCO, ISCO-08, and SOC 2010.
/// </summary>
public List<FrameworkItem> OccupationType { get; set; }
/// <summary>
/// AlternativeOccupationType
/// Occupations that are not found in a formal framework can be still added using AlternativeOccupationType.
/// Any occupations added using this property will be added to or appended to the OccupationType output.
/// </summary>
public List<string> AlternativeOccupationType { get; set; } = new List<string>();
/// <summary>
/// Language map list for AlternativeOccupationType
/// </summary>
public LanguageMapList AlternativeOccupationTypeLangMap { get; set; } = null;
/// <summary>
/// List of valid O*Net codes. See:
/// https://www.onetonline.org/find/
/// The API will validate and format the ONet codes as Occupations
/// </summary>
public List<string> ONET_Codes { get; set; } = new List<string>();
// =============================================================================
/// <summary>
/// IndustryType
/// Type of industry; select from an existing enumeration of such types such as the SIC, NAICS, and ISIC classifications.
/// Best practice in identifying industries for U.S. credentials is to provide the NAICS code using the ceterms:naics property.
/// Other credentials may use the ceterms:industrytype property and any framework of the class ceterms:IndustryClassification.
/// </summary>
public List<FrameworkItem> IndustryType { get; set; }
/// <summary>
/// AlternativeIndustryType
/// Industries that are not found in a formal framework can be still added using AlternativeIndustryType.
/// Any industries added using this property will be added to or appended to the IndustryType output.
/// </summary>
public List<string> AlternativeIndustryType { get; set; } = new List<string>();
/// <summary>
/// Language map list for AlternativeIndustryType
/// </summary>
public LanguageMapList AlternativeIndustryType_Map { get; set; } = null;
/// <summary>
/// List of valid NAICS codes. These will be mapped to industry type
/// See:
/// https://www.naics.com/search/
/// </summary>
public List<string> NaicsList { get; set; } = new List<string>();
// =============================================================================
/// <summary>
/// InstructionalProgramType
/// Type of instructional program; select from an existing enumeration of such types.
/// </summary>
public List<FrameworkItem> InstructionalProgramType { get; set; } = new List<FrameworkItem>();
/// <summary>
/// AlternativeInstructionalProgramType
/// Programs that are not found in a formal framework can be still added using AlternativeInstructionalProgramType.
/// Any programs added using this property will be added to or appended to the InstructionalProgramType output.
/// </summary>
public List<string> AlternativeInstructionalProgramType { get; set; } = new List<string>();
/// <summary>
/// Language map list for AlternativeInstructionalProgramType
/// </summary>
public LanguageMapList AlternativeInstructionalProgramType_Map { get; set; } = null;
/// <summary>
/// List of valid Classification of Instructional Program codes. See:
/// https://nces.ed.gov/ipeds/cipcode/search.aspx?y=55
/// </summary>
public List<string> CIP_Codes { get; set; } = new List<string>();
#endregion
/// <summary>
/// Category or classification of this resource.
/// Where a more specific property exists, such as ceterms:naics, ceterms:isicV4, ceterms:credentialType, etc., use that property instead of this one.
/// URI to a concept(based on the ONet work activities example) or to a blank node in RA.Models.Input.BaseRequest.ReferenceObjects
/// ceterms:classification
/// </summary>
public List<string> Classification { get; set; } = new List<string>();
/// <summary>
/// Local term for a type of learning opportunity or part of one.
/// List of CTIDs for concepts in the registry
/// ceterms:designationType
/// </summary>
public List<string> DesignationType { get; set; } = new List<string>();
#region Conditions and connections
// Connection Profiles are Condition Profiles but typically only a subject of the Condition Profile properties are used.
/// <summary>
/// List of CTIDs or full URLs for a ConditionManifest published by the owning organization
/// Set constraints, prerequisites, entry conditions, or requirements that are shared across an organization, organizational subdivision, set of credentials, or category of entities and activities.
/// </summary>
public List<string> CommonConditions { get; set; }
/// <summary>
/// Resources that must be pursued concurrently.
/// </summary>
public List<ConditionProfile> Corequisite { get; set; }
/// <summary>
/// Prerequisites for entry into a credentialing program, a learning opportunity or an assessment including transcripts, records of previous experience, and lower-level learning opportunities.
/// </summary>
public List<ConditionProfile> EntryCondition { get; set; }
/// <summary>
/// Recommended resources for this resource.
/// </summary>
public List<ConditionProfile> Recommends { get; set; }
/// <summary>
/// Requirement or set of requirements for this resource.
/// </summary>
public List<ConditionProfile> Requires { get; set; }
/// <summary>
/// Resource that must be completed prior to, or pursued at the same time as, this resource.
/// </summary>
public List<ConditionProfile> CoPrerequisite { get; set; } = new List<ConditionProfile>();
// =========== connections ===========
/// <summary>
/// Resource that has its time or cost reduced by another resource.
/// ceterms:advancedStandingFrom
/// <seealso href="https://credreg.net/ctdl/terms/advancedStandingFrom"></seealso>
/// </summary>
public List<ConditionProfile> AdvancedStandingFrom { get; set; }
/// <summary>
/// This resource reduces the time or cost required to earn or complete the referenced resource.
/// <para>A third-party credential agent claiming that its credential provides advanced standing for the credential of another credential agent should consider using ceterms:recommendedFor instead of ceterms:advancedStandingFor in the absence of an explicit and verifiable agreement on advanced standing between the agents of the two credentials.</para>
/// ceterms:isAdvancedStandingFor
/// <seealso href="https://credreg.net/ctdl/terms/isAdvancedStandingFor">isAdvancedStandingFor</seealso>
/// </summary>
public List<ConditionProfile> IsAdvancedStandingFor { get; set; }
/// <summary>
/// This resource provides preparation for the resource being referenced.
/// ceterms:isPreparationFor
/// <seealso href="https://credreg.net/ctdl/terms/isPreparationFor">isPreparationFor</seealso>
/// </summary>
public List<ConditionProfile> IsPreparationFor { get; set; }
/// <summary>
/// It is recommended to earn or complete this resource before attempting to earn or complete the referenced resource.
/// ceterms:isRecommendedFor
/// <seealso href="https://credreg.net/ctdl/terms/isRecommendedFor">isRecommendedFor</seealso>
/// </summary>
public List<ConditionProfile> IsRecommendedFor { get; set; }
/// <summary>
/// This resource must be earned or completed prior to attempting to earn or complete the referenced resource.
/// ceterms:isRequiredFor
/// <seealso href="https://credreg.net/ctdl/terms/isRequiredFor"></seealso>
/// </summary>
public List<ConditionProfile> IsRequiredFor { get; set; }
/// <summary>
/// Indicates a resource that is useful in preparing for the resource being described..
/// ceterms:preparationFrom
/// <seealso href="https://credreg.net/ctdl/terms/preparationFrom"></seealso>
/// </summary>
public List<ConditionProfile> PreparationFrom { get; set; }
#endregion
#region -- Quality Assurance BY --
/// <summary>
/// List of Organizations that accredit this resource
/// </summary>
public List<OrganizationReference> AccreditedBy { get; set; }
/// <summary>
/// List of Organizations that approve this resource
/// </summary>
public List<OrganizationReference> ApprovedBy { get; set; }
/// <summary>
/// List of Organizations that recognize this resource
/// </summary>
public List<OrganizationReference> RecognizedBy { get; set; }
/// <summary>
/// List of Organizations that regulate this resource
/// </summary>
public List<OrganizationReference> RegulatedBy { get; set; }
#endregion
#region Quality Assurance IN - Jurisdiction based Quality Assurance (INs)
// There are currently two separate approaches to publishing properties like assertedIn
// - Publish all 'IN' properties using JurisdictionAssertions
// - Publish using ehe separate specific properties like AccreditedIn, ApprovedIn, etc
// 2010-01-06 The property JurisdictionAssertions may become obsolete soon. We recomend to NOT use this property.
// JurisdictionAssertion
// Each 'IN' property must include one or more organizations and a Main jurisdiction. Only one main jusrisdiction (and multiple exceptions) can be entered with each property.
// Only use this property where the organization only makes the assertion for a specific jurisdiction.
// Use the 'BY' equivalent (ex. accreditedBy) where the organization makes a general assertion
/// <summary>
/// List of Organizations that accredit this learning opportunity in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> AccreditedIn { get; set; } = new List<JurisdictionProfile>();
/// <summary>
/// List of Organizations that approve this learning opportunity in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> ApprovedIn { get; set; } = new List<JurisdictionProfile>();
/// <summary>
/// List of Organizations that offer this learning opportunity in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> OfferedIn { get; set; } = new List<JurisdictionProfile>();
/// <summary>
/// List of Organizations that recognize this learning opportunity in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> RecognizedIn { get; set; } = new List<JurisdictionProfile>();
/// <summary>
/// List of Organizations that regulate this learning opportunity in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> RegulatedIn { get; set; } = new List<JurisdictionProfile>();
/// <summary>
/// List of Organizations that revoke this learning opportunity in a specific Jurisdiction.
/// </summary>
public List<JurisdictionProfile> RevokedIn { get; set; } = new List<JurisdictionProfile>();
#endregion
/// <summary>
/// Resource(s) that replaces this resource.
/// full URL OR CTID (recommended)
/// </summary>
public List<string> SupersededBy { get; set; }
/// <summary>
/// Resource(s) that this resource replaces.
/// full URL OR CTID (recommended)
/// </summary>
public List<string> Supersedes { get; set; }
/// <summary>
/// Assessment that provides direct, indirect, formative or summative evaluation or estimation of the nature, ability, or quality for an entity.
/// </summary>
public List<EntityReference> TargetAssessment { get; set; }
/// <summary>
/// Credential that is a focus or target of the condition, process or verification service.
/// </summary>
public List<EntityReference> TargetCredential { get; set; }
/// <summary>
/// Learning opportunity that is the focus of a condition, process or another learning opportunity.
/// </summary>
public List<EntityReference> TargetLearningOpportunity { get; set; }
/// <summary>
/// Learning object or resource that is used as part of an learning activity.
/// URI
/// </summary>
public List<string> TargetLearningResource { get; set; } = new List<string>();
/// <summary>
/// alphanumeric identifier of the version of the resource that is unique within the organizational context of its owner and which does not need the context of other information in order to be interpreted.
/// </summary>
public string VersionCode { get; set; }
/// <summary>
/// Alphanumeric identifier of the version of the resource that is unique within the organizational context of its owner.
/// </summary>
public List<IdentifierValue> VersionIdentifier { get; set; }
/// <summary>
/// School Courses for the Exchange of Data code for a course.
/// It is preferable to record the whole 12 character alphanumeric code, however it is also valid to record just the five digit subject code + course number.
/// Minimum of 5 characters and maximum of 14 characters for now.
/// COURSE ONLY
/// </summary>
public string SCED { get; set; }
#region -- Process Profiles --
/// <summary>
/// Description of a process for handling complaints about a resource or related resources.
/// </summary>
public List<ProcessProfile> ComplaintProcess { get; set; }
/// <summary>
/// Description of a process by which a resource was created.
/// </summary>
public List<ProcessProfile> DevelopmentProcess { get; set; }
/// <summary>
/// Description of a process by which a resource is maintained, including review and updating.
/// </summary>
public List<ProcessProfile> MaintenanceProcess { get; set; }
/// <summary>
/// Description of a process by which a resource is reviewed.
/// </summary>
public List<ProcessProfile> ReviewProcess { get; set; }
#endregion
#region Properties allowed only for learning programs
// these will be ignored for all other types
/// <summary>
/// Focused plan of study within a college or university degree such as a concentration in Aerospace Engineering within an Engineering degree.
/// TODO: enable more detail by using a blank node in ReferenceObject. The latter would be a CredentialAlignmentObject. The Id would be a Guid in DegreeConcentration. Alternately a fully formed blank node id ( _:(GUID) )
/// </summary>
public List<string> DegreeConcentration { get; set; }
/// <summary>
/// Focused plan of study within a college or university degree such as a concentration in Aerospace Engineering within an Engineering degree.
/// </summary>
[JsonProperty( PropertyName = "ceterms:degreeConcentration" )]
public LanguageMapList DegreeConcentrationLangMap { get; set; } = null;
#endregion
/// <summary>
/// Monetary compensation associated with work.
/// For Learning Opportunity and Learning Program
/// </summary>
public List<PayProfile> WorkPay { get; set; }
}
/// <summary>
/// Protyping checking for minimum contents of an input request.
/// </summary>
public class MinimumRequest
{
public MiniumumRequestClass LearningOpportunity { get; set; }
/// <summary>
/// Identifier for Organization which Owns the data being published
/// This will be the CTID for the owning org, even if publisher is third party.
/// REQUIRED
/// </summary>
public string PublishForOrganizationIdentifier { get; set; }
/// <summary>
/// Leave blank for default
/// Formerly known as Community
/// </summary>
public string Registry { get; set; }
// temp backup (note that when serialized, this approach doesn't work, get two separate properties
public string Community
{
get { return Registry; }
set { Registry = value; }
}
}
public class MiniumumRequestClass
{
public string Name { get; set; }
public string CTID { get; set; }
}
}