Courses/Wissenschaftliches Arbeiten SS24/Graph

Revision as of 11:54, 23 May 2024 by Leonie (talk | contribs) (→‎Interests & Knowledge: convert to Try It!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Contains queries about the graph of the "Wissenschaftliches Arbeiten SS24" course to help debug and structure it.

Interests & Knowledge

Compairing the 23/24 WS version with the 24SS Version of the course

WissArb 23/24 Winter Term WissArb 24 Summer Term
Items used: Wissenschaftliches Arbeiten 23/24WS (Q468)

Properties used: includes (P14), participates in (P25), has completed (P12), interested in (P23)

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

SELECT DISTINCT ?known ?interests ?item ?itemLabel # ?known ?interests ?item ?itemLabel 
WHERE {
  wd:Q468 wdt:P14/wdt:P14 ?item. # ?session.
  OPTIONAL {
    SELECT ?item ?itemLabel (COUNT(DISTINCT ?student) as ?known) WHERE {
      ?student wdt:P25 wd:Q468.
      ?student wdt:P12 ?item.
    } GROUP BY ?item ?itemLabel
  }
  OPTIONAL {
    SELECT ?item ?itemLabel (COUNT(DISTINCT ?student) as ?interests) WHERE {
      ?student wdt:P25 wd:Q468.
      ?student wdt:P23 ?item.
    } GROUP BY ?item ?itemLabel
  }.
  BIND (IF(!BOUND(?interests), 0, ?interest) as ?interests).
  BIND (IF(!BOUND(?known), 0, ?known) as ?known).
  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Try it!


Items used: Wissenschaftliches Arbeiten 24SS (Q926)

Properties used: includes (P14), participates in (P25), has completed (P12), interested in (P23)

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

SELECT DISTINCT ?known ?interests ?item ?itemLabel # ?known ?interests ?item ?itemLabel 
WHERE {
  wd:Q926 wdt:P14/wdt:P14 ?item.
  OPTIONAL {
    SELECT ?item ?itemLabel (COUNT(DISTINCT ?student) as ?known) WHERE {
      ?student wdt:P25 wd:Q926.
      ?student wdt:P12 ?item.
    } GROUP BY ?item ?itemLabel
  }
  OPTIONAL {
    SELECT ?item ?itemLabel (COUNT(DISTINCT ?student) as ?interests) WHERE {
      ?student wdt:P25 wd:Q926.
      ?student wdt:P23 ?item.
    } GROUP BY ?item ?itemLabel
  }.
  BIND (IF(!BOUND(?interests), 0, ?interest) as ?interests).
  BIND (IF(!BOUND(?known), 0, ?known) as ?known).
  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Try it!