Skip to content

Commit ef6bed1

Browse files
committed
(#829) Add default subclass mapping into default CER config (#832)
1 parent 87338a9 commit ef6bed1

File tree

2 files changed

+378
-1
lines changed

2 files changed

+378
-1
lines changed

app/services/ctdl_subclasses_resolver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def collect_subclasses(start)
2424

2525
def ctdl_subclasses_map
2626
@ctdl_subclasses_map ||= envelope_community_config.fetch(
27-
'subsclasses_map',
27+
'subclasses_map',
2828
JSON.parse(File.read(SUBCLASSES_MAP_FILE))
2929
)
3030
end

fixtures/configs/ce_registry.json

Lines changed: 377 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,5 +282,382 @@
282282

283283
"prepared_queries": {
284284
"framework": "processed_resource @> '{ \"@type\": \"ceasn:Competency\", \"ceasn:isPartOf\": [ \"$term\" ] }'"
285+
},
286+
287+
"subclasses_map": {
288+
"ceterms:AccreditAction": {
289+
},
290+
"ceterms:AdvancedStandingAction": {
291+
},
292+
"ceterms:Agent": {
293+
},
294+
"ceterms:AggregateDataProfile": {
295+
},
296+
"ceterms:AlignmentMap": {
297+
},
298+
"ceterms:ApprenticeshipCertificate": {
299+
},
300+
"ceterms:ApproveAction": {
301+
},
302+
"ceterms:Assessment": {
303+
},
304+
"ceterms:AssessmentComponent": {
305+
},
306+
"ceterms:AssessmentProfile": {
307+
},
308+
"ceterms:AssociateDegree": {
309+
},
310+
"ceterms:BachelorDegree": {
311+
},
312+
"ceterms:Badge": {
313+
"ceterms:DigitalBadge": {
314+
},
315+
"ceterms:OpenBadge": {
316+
}
317+
},
318+
"ceterms:BasicComponent": {
319+
},
320+
"ceterms:Certificate": {
321+
"ceterms:ApprenticeshipCertificate": {
322+
},
323+
"ceterms:JourneymanCertificate": {
324+
},
325+
"ceterms:MasterCertificate": {
326+
}
327+
},
328+
"ceterms:CertificateOfCompletion": {
329+
},
330+
"ceterms:Certification": {
331+
},
332+
"ceterms:CocurricularComponent": {
333+
},
334+
"ceterms:Collection": {
335+
"ceterms:PathwaySet": {
336+
}
337+
},
338+
"ceterms:CollectionMember": {
339+
},
340+
"ceterms:CompetencyComponent": {
341+
},
342+
"ceterms:ComponentCondition": {
343+
},
344+
"ceterms:ConditionManifest": {
345+
},
346+
"ceterms:ConditionProfile": {
347+
},
348+
"ceterms:ContactPoint": {
349+
"ceterms:PostalAddress": {
350+
}
351+
},
352+
"ceterms:CostManifest": {
353+
},
354+
"ceterms:CostProfile": {
355+
},
356+
"ceterms:Course": {
357+
},
358+
"ceterms:CourseComponent": {
359+
},
360+
"ceterms:Credential": {
361+
"ceterms:Badge": {
362+
"ceterms:DigitalBadge": {
363+
},
364+
"ceterms:OpenBadge": {
365+
}
366+
},
367+
"ceterms:Certificate": {
368+
"ceterms:ApprenticeshipCertificate": {
369+
},
370+
"ceterms:JourneymanCertificate": {
371+
},
372+
"ceterms:MasterCertificate": {
373+
}
374+
},
375+
"ceterms:CertificateOfCompletion": {
376+
},
377+
"ceterms:Certification": {
378+
},
379+
"ceterms:Degree": {
380+
"ceterms:AssociateDegree": {
381+
"ceterms:AssociateOfAppliedArtsDegree": {
382+
},
383+
"ceterms:AssociateOfAppliedScienceDegree": {
384+
},
385+
"ceterms:AssociateOfArtsDegree": {
386+
},
387+
"ceterms:AssociateOfScienceDegree": {
388+
}
389+
},
390+
"ceterms:BachelorDegree": {
391+
"ceterms:BachelorOfArtsDegree": {
392+
},
393+
"ceterms:BachelorOfScienceDegree": {
394+
}
395+
},
396+
"ceterms:DoctoralDegree": {
397+
"ceterms:ProfessionalDoctorate": {
398+
},
399+
"ceterms:ResearchDoctorate": {
400+
}
401+
},
402+
"ceterms:MasterDegree": {
403+
"ceterms:MasterOfArtsDegree": {
404+
},
405+
"ceterms:MasterOfScienceDegree": {
406+
}
407+
},
408+
"ceterms:SpecialistDegree": {
409+
}
410+
},
411+
"ceterms:Diploma": {
412+
"ceterms:GeneralEducationDevelopment": {
413+
},
414+
"ceterms:SecondarySchoolDiploma": {
415+
}
416+
},
417+
"ceterms:License": {
418+
},
419+
"ceterms:MicroCredential": {
420+
},
421+
"ceterms:ProfessionalDoctorate": {
422+
},
423+
"ceterms:QualityAssuranceCredential": {
424+
},
425+
"ceterms:ResearchDoctorate": {
426+
}
427+
},
428+
"ceterms:CredentialAlignmentObject": {
429+
},
430+
"ceterms:CredentialAssertion": {
431+
},
432+
"ceterms:CredentialComponent": {
433+
},
434+
"ceterms:CredentialFramework": {
435+
"ceterms:IndustryClassification": {
436+
},
437+
"ceterms:InstructionalProgramClassification": {
438+
},
439+
"ceterms:OccupationClassification": {
440+
}
441+
},
442+
"ceterms:CredentialingAction": {
443+
"ceterms:AccreditAction": {
444+
},
445+
"ceterms:AdvancedStandingAction": {
446+
},
447+
"ceterms:ApproveAction": {
448+
},
449+
"ceterms:OfferAction": {
450+
},
451+
"ceterms:RecognizeAction": {
452+
},
453+
"ceterms:RegulateAction": {
454+
},
455+
"ceterms:RenewAction": {
456+
},
457+
"ceterms:RevokeAction": {
458+
},
459+
"ceterms:RightsAction": {
460+
},
461+
"ceterms:WorkforceDemandAction": {
462+
}
463+
},
464+
"ceterms:CredentialOrganization": {
465+
},
466+
"ceterms:CredentialPerson": {
467+
},
468+
"ceterms:Degree": {
469+
"ceterms:AssociateDegree": {
470+
},
471+
"ceterms:BachelorDegree": {
472+
},
473+
"ceterms:DoctoralDegree": {
474+
"ceterms:ProfessionalDoctorate": {
475+
},
476+
"ceterms:ResearchDoctorate": {
477+
}
478+
},
479+
"ceterms:MasterDegree": {
480+
}
481+
},
482+
"ceterms:DigitalBadge": {
483+
},
484+
"ceterms:Diploma": {
485+
"ceterms:GeneralEducationDevelopment": {
486+
},
487+
"ceterms:SecondarySchoolDiploma": {
488+
}
489+
},
490+
"ceterms:DoctoralDegree": {
491+
"ceterms:ProfessionalDoctorate": {
492+
},
493+
"ceterms:ResearchDoctorate": {
494+
}
495+
},
496+
"ceterms:DurationProfile": {
497+
},
498+
"ceterms:EarningsProfile": {
499+
},
500+
"ceterms:EmploymentOutcomeProfile": {
501+
},
502+
"ceterms:ExtracurricularComponent": {
503+
},
504+
"ceterms:FinancialAssistanceProfile": {
505+
},
506+
"ceterms:GeneralEducationDevelopment": {
507+
},
508+
"ceterms:GeoCoordinates": {
509+
},
510+
"ceterms:HoldersProfile": {
511+
},
512+
"ceterms:IdentifierValue": {
513+
},
514+
"ceterms:IndustryClassification": {
515+
},
516+
"ceterms:InstructionalProgramClassification": {
517+
},
518+
"ceterms:Job": {
519+
},
520+
"ceterms:JobComponent": {
521+
},
522+
"ceterms:JourneymanCertificate": {
523+
},
524+
"ceterms:JurisdictionProfile": {
525+
},
526+
"ceterms:LearningOpportunity": {
527+
},
528+
"ceterms:LearningOpportunityProfile": {
529+
},
530+
"ceterms:LearningProgram": {
531+
},
532+
"ceterms:LearningResource": {
533+
},
534+
"ceterms:License": {
535+
},
536+
"ceterms:MasterCertificate": {
537+
},
538+
"ceterms:MasterDegree": {
539+
},
540+
"ceterms:MicroCredential": {
541+
},
542+
"ceterms:Occupation": {
543+
},
544+
"ceterms:OccupationClassification": {
545+
},
546+
"ceterms:OfferAction": {
547+
},
548+
"ceterms:OpenBadge": {
549+
},
550+
"ceterms:Organization": {
551+
"ceterms:CredentialOrganization": {
552+
},
553+
"ceterms:QACredentialOrganization": {
554+
}
555+
},
556+
"ceterms:Pathway": {
557+
},
558+
"ceterms:PathwayComponent": {
559+
"ceterms:AssessmentComponent": {
560+
},
561+
"ceterms:BasicComponent": {
562+
},
563+
"ceterms:CocurricularComponent": {
564+
},
565+
"ceterms:CompetencyComponent": {
566+
},
567+
"ceterms:CourseComponent": {
568+
},
569+
"ceterms:CredentialComponent": {
570+
},
571+
"ceterms:ExtracurricularComponent": {
572+
},
573+
"ceterms:JobComponent": {
574+
},
575+
"ceterms:SelectionComponent": {
576+
},
577+
"ceterms:WorkExperienceComponent": {
578+
}
579+
},
580+
"ceterms:PathwaySet": {
581+
},
582+
"ceterms:Place": {
583+
},
584+
"ceterms:PostalAddress": {
585+
},
586+
"ceterms:ProcessProfile": {
587+
},
588+
"ceterms:ProfessionalDoctorate": {
589+
},
590+
"ceterms:QACredentialOrganization": {
591+
},
592+
"ceterms:QualityAssuranceCredential": {
593+
},
594+
"ceterms:RecognizeAction": {
595+
},
596+
"ceterms:RegulateAction": {
597+
},
598+
"ceterms:RenewAction": {
599+
},
600+
"ceterms:ResearchDoctorate": {
601+
},
602+
"ceterms:RevocationProfile": {
603+
},
604+
"ceterms:RevokeAction": {
605+
},
606+
"ceterms:RightsAction": {
607+
},
608+
"ceterms:RuleSet": {
609+
},
610+
"ceterms:RuleSetProfile": {
611+
},
612+
"ceterms:ScheduledOffering": {
613+
},
614+
"ceterms:SecondarySchoolDiploma": {
615+
},
616+
"ceterms:SelectionComponent": {
617+
},
618+
"ceterms:Task": {
619+
},
620+
"ceterms:TransferIntermediary": {
621+
},
622+
"ceterms:TransferValueProfile": {
623+
},
624+
"ceterms:ValueProfile": {
625+
},
626+
"ceterms:VerificationServiceProfile": {
627+
},
628+
"ceterms:WorkExperienceComponent": {
629+
},
630+
"ceterms:WorkforceDemandAction": {
631+
},
632+
"ceterms:WorkRole": {
633+
},
634+
"schema:QuantitativeValue": {
635+
"ceterms:ValueProfile": {
636+
}
637+
},
638+
"asn:ProgressionLevel": {
639+
},
640+
"asn:ProgressionModel": {
641+
},
642+
"ceasn:Competency": {
643+
},
644+
"ceasn:CompetencyFramework": {
645+
},
646+
"ceasn:ProficiencyScale": {
647+
},
648+
"skos:Concept": {
649+
},
650+
"skos:ConceptScheme": {
651+
},
652+
"qdata:DataProfile": {
653+
},
654+
"qdata:DataSetProfile": {
655+
},
656+
"qdata:DataSetTimeFrame": {
657+
},
658+
"schema:MonetaryAmount": {
659+
},
660+
"schema:MonetaryAmountDistribution": {
661+
}
285662
}
286663
}

0 commit comments

Comments
 (0)