External Resources Web Crawlers
The following details the structure for data output needed from Cassandra web crawlers and spiders for scraping external providers of open educational resources.

External Resources

The structure of the external resource model in our GraphQL database is detailed below:
1
type ExternalResource {
2
id: ID! @id
3
title: String
4
description: String
5
resourceProvider: String
6
linkURL: String
7
logoURL: String
8
courseLogoURL: String
9
Series: [ExternalResource!]! @relation(name: "ResourceSeries")
10
categories: [Category!]! @relation(name: "ResourceCategory")
11
reviews: [Review!]! @relation(name: "ResourceReview")
12
comments: [Comment!]! @relation(name: "ResourceComment")
13
votes: [Vote!]! @relation(name: "ResourceVote")
14
}
Copied!
This is just for reference, creation of web crawlers does not require a detailed understanding of GraphQL or the Cassandra Schema. See below for more relevant details.
​
The below structure details the necessary structure of output from web crawlers that is required to be efficiently posted to the Cassandra database:
Cassandra WebCrawlers need to output a file with the following structure:
1
course 1:
2
{
3
title: String,
4
description: String,
5
resourceProvider: String,
6
linkURL: String,
7
logoURL: String,
8
courseLogoURL: String,
9
categories: [Array],
10
reviews: [Array],
11
comments: [Array],
12
series: [Array]
13
},
14
Course 2:
15
{
16
title: String,
17
description: String,
18
resourceProvider: String,
19
linkURL: String,
20
logoURL: String,
21
courseLogoURL: String,
22
categories: [Array],
23
reviews: [Array],
24
comments: [Array],
25
series: [Array]
26
},
27
...
Copied!
​
The following are fields that are not required, but are beneficial to be scraped from websites:
​
1
Series
2
categories
3
reviews
4
comments
Copied!
​
The following describes each necessary field:
    title: The title of the course or resource.
    description: Description of the content in the course or details of what is taught in the course.
    resourceProvider: The institution or content creator of the resource.
    linkURL: Link to be redirected to where this course is available (specific to the course in question, not just the website itself).
    logoURL: Link to the logo of the institution or provider of this resource.
    courseLogoURL: Logo/cover photo for the specific course (if not available, can be made to be the logoURL).
    categories: Subjects and field of study that the course content, e.g. Mathematics.
    reviews: Any reviews of the course that might be publicly available where the course is hosted (if permitted by terms and conditions of provider).
    comments: Any comments on the course that might be publicly available where the course is hosted (if permitted by terms and conditions of provider).
    series: The set of courses that are related to each other, for example if it is course 1 in a set of 10 courses then an array of each courses in this set can be used to group them together.
​
​
​
Last modified 1yr ago
Copy link