Jump to content

GraphStructure

Revision as of 10:04, 26 August 2023 by Leonie (talk | contribs) (added: Student)

A Documentation of the structure behind the Graph.

Graph Structure

Basic Item

A basic item describes a learning content. It uses subclass of to link to a defined Cateogory, that is used to group topics. Items are linked between each other with depends on to define an item that defines some previous knowledge, or related to to link to a similar item. Additionally they link to resources with resource.

A short overview of possible links:

Item — subclass of → Category
Item — depends on → Prerequisite
Item — related to → Equivalent
Item — resource → Resource
Item — instanc of → Application

Additionally an item can be closer defined by linking an importance-item using importance. This can be done as simple link or as an added value to a property.


Resources

A Resource is an item that is defined by the Properties url to link to an external site and instance of a structure-item, as seen below. {{#widget:SPARQLquery|code=

  1. defaultView:Graph

PREFIX wdt: <https://graphit.ur.de/prop/direct/> PREFIX wd: <https://graphit.ur.de/entity/> select distinct ?item ?itemLabel ?category ?categoryLabel ?edgeLabel where {

 bind (wd:Q446 as?item).
 ?item wdt:P3 ?category.
 service wikibase:label { bd:serviceParam wikibase:language "en".}

} }}

A short overview:

Resource — url → URL
Resource — instance of → Structure-Item

See: Item:Q280 as an example and Resource to reference a dummy element

Category

A general category, such as "Mathematical Foundations"; used to group topics. {{#widget:SPARQLquery|code=

  1. defaultView:Graph

PREFIX wdt: <https://graphit.ur.de/prop/direct/> PREFIX wd: <https://graphit.ur.de/entity/> select distinct ?item ?itemLabel ?category ?categoryLabel ?edgeLabel where {

 bind (wd:Q169 as ?category).
 ?item wdt:P3 ?category.
 service wikibase:label { bd:serviceParam wikibase:language "en".}

} }}

A short overview:

Category-Item — instance of → Category

A Course can include

Course

A course encompasses a collection of learning contents. To declare an item as a Course use instance of.

A short overview:

Course-Item — instance of → Course
Course-Item — taught by → Educator
Course-Item — includes → Session

See: Item:Q170 as an example. A course can include a Session, as seen below:

Session

A Session acts as a possibility to group several items that will be discussed during an actual course session. {{#widget:SPARQLquery|code=

  1. defaultView:Graph
  2. via: https://phabricator.wikimedia.org/T168715

PREFIX wdt: <https://graphit.ur.de/prop/direct/> PREFIX wd: <https://graphit.ur.de/entity/> select distinct ?item ?itemLabel ?session ?sessionLabel ?course ?courseLabel ?edgeLabel where {

 ?session wdt:P14 ?item.
 MINUS {?item wdt:P20 ?url.}
 MINUS {?session wdt:P3 wd:Q162.}
 ?property a wikibase:Property;
             wikibase:directClaim wdt:P14.
 service wikibase:label { bd:serviceParam wikibase:language "en".
                         ?item rdfs:label ?itemLabel.
                         ?session rdfs:label ?sessionLabel.
                         ?property rdfs:label ?edgeLabel.}

} }} See: Item:Q248 as an example.

A short overview:

Session-Item — instance of → Session
Session-Item — includes → Item
Course-Item — on date → Date

People

Student

The role of a student is declared by linking from an item to Student using instance of. The student then can link their item to others using interested in and has completed to organize their interests and progress.

A short overview:

Student-Item — instance of → Student
Student-Item — interested in → Item
Student-Item — has completed → Item

See: Item:Q315 as an example. {{#widget:SPARQLquery|code=

  1. defaultView:Graph

PREFIX wdt: <https://graphit.ur.de/prop/direct/> PREFIX wd: <https://graphit.ur.de/entity/> select distinct ?item ?itemLabel ?interest ?interestLabel ?complete ?completeLabel ?edgeLabel ?edgeLabel2 where {

 bind (wd:Q315 as ?item).
 ?item wdt:P3 ?category.
 ?item wdt:P23 ?interest.
 ?item wdt:P12 ?complete.
 
 ?property a wikibase:Property;
          wikibase:directClaim wdt:P23.
 service wikibase:label { bd:serviceParam wikibase:language "en".
                         ?item rdfs:label ?itemLabel.
                         ?interest rdfs:label ?interestLabel. 
                         ?complete rdfs:label ?completeLabel.
                         ?property rdfs:label ?edgeLabel.
                        }

} }} NOTE: Query currently only shows one property label, the other would be "has completed".

Educator

Elements

Properties

List of Properties

Items

An item uses Property with Item that declares
Markers Property:P3 - instance of Item:Q169 - Category a general category or group
Item:Q100 Property:P21 - resource Item:Q399 a resource

Useful Pages