You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A standardised format for representing the schedule of classes is needed for maintaining stability and easing maintainability. It's easier to account for special cases when they're in the correct format and any data sources such as the SOC, Jarrin's excel sheet and other scrapers should be made to conform to the format.
From a students perspective, we're improving on the https://enr-apps.as.cmu.edu/open/SOC/SOCServlet page and would be an advanced drop in replacement for it. That means we need also need to consider auxiliary information about courses as well such as the description.
Format Requirements
Semester metadata
Semester Name
Shortcode
Last Update (When source was retrieved, ISO 8601 format)
Schedule ID (A unique hash of length 5)
Course code
Course title
Units
Description
Prereqs
Coreqs
Sections
Instructors
Times
Days
Proposed JSON format
A JSON format would work really well with a web frontend since its easy to create into javascript objects and also to deal with in a python backend. Dealing with intricacies such as multiple sections is also made easier by adding them to a sections array.
The format is simple but the following rules are in place:
Course Codes should follow the XXXXX format not XX-XXX
Class Times follow a 12 hour format eg XX:XXPM
Semester metadata needs to include the full date follows ISO 8601 format)
Prereqs and coreqs support stellic and SOC format
They are case insensitive and support clauses
Eg. SOC gives us (12202 and 15122) and (15251)
Eg. Stellic gives us (15-122 Minimum Grade C) but course format should change to XXXXX
Days follow the "UMTWR" format
Lectures and Recitation pairs should be ordered consecutively, and correctly labeled for the sections array
If values are missing they should have "UNK"
All numerical figures are in string format, the end user needs to deal with conversion
Currently the plan is to store the data on the clients side for speed and since it isn't too much data we can deal with it locally. The format should also be friendly then to work with IndexedDB, I'm not sure if the current proposed format is friendly with it or not yet.
Introduction
A standardised format for representing the schedule of classes is needed for maintaining stability and easing maintainability. It's easier to account for special cases when they're in the correct format and any data sources such as the SOC, Jarrin's excel sheet and other scrapers should be made to conform to the format.
From a students perspective, we're improving on the https://enr-apps.as.cmu.edu/open/SOC/SOCServlet page and would be an advanced drop in replacement for it. That means we need also need to consider auxiliary information about courses as well such as the description.
Format Requirements
Proposed JSON format
A JSON format would work really well with a web frontend since its easy to create into javascript objects and also to deal with in a python backend. Dealing with intricacies such as multiple sections is also made easier by adding them to a sections array.
The format is simple but the following rules are in place:
The text was updated successfully, but these errors were encountered: