Jump to content

Quick Overview: Difference between revisions

Leonie (talk | contribs)
Leonie (talk | contribs)
Update text and graphics for graph structure
Line 5: Line 5:


= The Dependency Graph =
= The Dependency Graph =
[[File:Graph-simple.png|right|700px|The dependencies between items]]
[[File:Graph-simple.png|thumb|right|650px|Learning contents connect to each other to form a ''learning path'']]
A dependency graph is a collection of ''nodes'', connected with each other using ''edges''. These connections show which nodes depend on others. These nodes or items represent a topic of study.
A dependency graph is a collection of ''nodes'', connected with each other using ''edges''. These connections show which nodes depend on others. These nodes or items represent a topic of study.


Line 14: Line 14:


In the end the graph turns into a big interconnected structure:
In the end the graph turns into a big interconnected structure:
{{Special:RunQuery/FullGraph}}
[[File:Cgbv dependency full.png|thumb|left||500px|A snippet of the dependency graph]]


----
<div style="clear: both"></div>
</br>


In order to make this amount of data useable, several ''Structure-Items'' have been defined to help group items into abstract categories.
In order to make this amount of data useable, several ''Structure-Items'' have been defined to help group items together. For example learning contents of similar topic are [[Property:P14|included]] in a [[GraphStructure#Category|category]] that can later be referenced when putting a course together.
[[GraphStructure#Course|Courses]] include [[GraphStructure#Session|Sessions]] that represent an actual session of a course and [[Property:P14|include]] all items that are being discussed in person.
 
{{#widget:SPARQLquery|code=
#defaultView:Graph
PREFIX wdt: <https://graphit.ur.de/prop/direct/>
PREFIX wd: <https://graphit.ur.de/entity/>
select distinct ?item ?itemLabel ?image ?dependency ?dependencyLabel ?image2 #?session ?sessionLabel
where {
  wd:Q940 wdt:P14 ?item.
  OPTIONAL {?item wdt:P11 ?image.}
  OPTIONAL {
    ?item wdt:P1 ?dependency.
    OPTIONAL {?dependency wdt:P11 ?image2}.
  }
  FILTER EXISTS {wd:Q940 wdt:P14 ?dependency}
  service wikibase:label { bd:serviceParam wikibase:language "en".}
} LIMIT 100
|caption=Items being discussed in a session of the ''CGBV''-course on 3D-Graphics
}}
{{Note|type=info|text=You can interact with the query, by hovering over it and using the sidebars}}
 
 
Every item can further include existing [[GraphStructure#Properties|Properties]]. This allows for specifying information such as dates, people responsible and URLs.


For a more '''detailed explanation''' of the entire underlying structure go to [[GraphStructure]] or take a quick look at these following diagrams:
For a more '''detailed explanation''' of the entire underlying structure go to [[GraphStructure]] or take a quick look at these following diagrams:

Revision as of 09:41, 9 April 2025


The goal of GraphIT is to develop and evaluate a dependency graph of learning contents. This graph enables faculties to develop better study programs, teachers to structure their courses better and students to find the best way to achieve their personal goals.

The Dependency Graph

Error creating thumbnail: File missing
Learning contents connect to each other to form a learning path

A dependency graph is a collection of nodes, connected with each other using edges. These connections show which nodes depend on others. These nodes or items represent a topic of study.

At the lowest level our graph is structured by linking learning contents to their prerequisite(s). A student can now use these links to determine how items depend on each other, and what knowledge is required to understand a specific node. Materials (such as tutorials and articles) or exams can also be linked to each learning content.


In the end the graph turns into a big interconnected structure:

Error creating thumbnail: File missing
A snippet of the dependency graph


In order to make this amount of data useable, several Structure-Items have been defined to help group items together. For example learning contents of similar topic are included in a category that can later be referenced when putting a course together. Courses include Sessions that represent an actual session of a course and include all items that are being discussed in person.

{{#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 ?image ?dependency ?dependencyLabel ?image2 #?session ?sessionLabel where {

 wd:Q940 wdt:P14 ?item.
 OPTIONAL {?item wdt:P11 ?image.}
 OPTIONAL {
   ?item wdt:P1 ?dependency.
   OPTIONAL {?dependency wdt:P11 ?image2}.
 }
 FILTER EXISTS {wd:Q940 wdt:P14 ?dependency}
 service wikibase:label { bd:serviceParam wikibase:language "en".}

} LIMIT 100 |caption=Items being discussed in a session of the CGBV-course on 3D-Graphics }}

{{#switch: info | warn = ⚠️ | info = ℹ️ | #default = ✒️ }} You can interact with the query, by hovering over it and using the sidebars


Every item can further include existing Properties. This allows for specifying information such as dates, people responsible and URLs.

For a more detailed explanation of the entire underlying structure go to GraphStructure or take a quick look at these following diagrams:

Using the Graph

The graph itself is just a versatile data structure. In order to make it usable, we are developing tools and visualizations. The SPARQL query language offered by WikiBase allows for retrieving relevant parts of the graph and visualizing it in different ways.

Hint: On each interactive visualization on this page, you can click on the "GraphIT Query Service" link in the lower left corner. This opens a new tab which shows you the SPARQL query and allows you to modify it.

Timeline of Course Sessions

This visualization shows all sessions of the course "Computer Graphics and Image Processing" and the topics they covered in a timeline.

{{#widget:SPARQLquery|code=

  1. defaultView:Timeline

PREFIX wdt: <https://graphit.ur.de/prop/direct/> PREFIX wd: <https://graphit.ur.de/entity/> select distinct ?item ?itemLabel ?date ?image #?dependency ?dependencyLabel where {

 ?session wdt:P14 ?item.
 MINUS {?item wdt:P20 ?url.}
 MINUS {?session wdt:P3 wd:Q162.}
 # OPTIONAL {?item wdt:P1 ?dependency.}
 OPTIONAL {?item wdt:P11 ?image.}
 ?session wdt:P19 ?date.
 service wikibase:label { bd:serviceParam wikibase:language "en".}

} }}

Overview of Student

Shows what items a Student is has linked their item to. Can be used to track progress. {{#widget:SPARQLquery|code=

  1. defaultView:Graph

PREFIX wdt: <https://graphit.ur.de/prop/direct/> PREFIX wd: <https://graphit.ur.de/entity/>

SELECT ?item1 ?image ?item1Label ?item2 ?image2 ?item2Label ?edgeLabel ?rgb WHERE {

 VALUES ?item1 {wd:Q157}
 
 ?item1 ?prop ?item2.
 ?edge ?dummy ?prop ; rdf:type wikibase:Property.
 # Minus username in edgeLabel
 FILTER (?prop != wdt:P28)
 # Color Coding:
   bind (if(?prop = wdt:P25, "e8fcff", # participates in (blue)  f3fdff
         if(?prop = wdt:P12, "e3ffd9", # has completed (green) 
         if(?prop = wdt:P23, "ffeec2", # interested in (orange)
      "FFFFFF" ))) as ?rgb).
 

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?prop }}

Learning path

The complete path to an item (here: Virtual Cameras) and what's next. {{#widget:SPARQLquery|code=

  1. defaultView:Graph
  2. prerequisite -> topic -> postrequisite

PREFIX wd: <https://graphit.ur.de/entity/> PREFIX wdt: <https://graphit.ur.de/prop/direct/> SELECT distinct ?v ?vLabel ?rgb ?link ?linkLabel WHERE { {

 { SELECT * WHERE {
 { SELECT ?goal ?goalLabel ?topic ?topicLabel WHERE {
   {
   BIND (wd:Q149 as ?goal).
   ?goal wdt:P1+ ?topic.
   } UNION {
     VALUES ?topic { wd:Q149 } # we also want to include the root node itself
   }
   
 }
 }
   
 ?topic wdt:P1 ?pre.
 BIND (?topic as ?v). # + add all ?pre that are not yet in ?topic   
 BIND (?pre as ?link).
 bind (if(?v = wd:Q149, "FBBC74", "FFEDD8") as ?rgb).
 }
 }
 Union
 
 { SELECT * WHERE {
 { SELECT ?topic ?topicLabel ?goal ?goalLabel WHERE {
   {
     BIND (wd:Q149 as ?topic).
     ?goal wdt:P1+ ?topic. 
   } UNION {
     VALUES ?topic { wd:Q149 } # we also want to include the root node itself
   }
 }
 }
 ?post wdt:P1 ?topic.
 BIND (?post as ?v).
 BIND (?topic as ?link).
 bind ("F68C13" as ?rgb).
 }
 }
 SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }

} } |caption=The learning path to an item, showing its pre- and postrequisites }}

Course Work

What items are used in a mandatory coursework: {{#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 ?quiz ?quizLabel ?dependency ?dependencyLabel where {

 BIND (wd:wd:Q451 AS ?quiz).
 ?quiz wdt:P1 ?item.
 OPTIONAL {?item wdt:P1 ?dependency.}
 service wikibase:label { bd:serviceParam wikibase:language "en" }

}|caption=The learning path to wd:Q451 }}