Jump to content

Medieninformatik BA: Difference between revisions

Leonie (talk | contribs)
created page with simple "aufbau" query
 
Leonie (talk | contribs)
→Aufbau des Studiengangs: update query to show necessary module positions
Line 11: Line 11:
PREFIX pq: <https://graphit.ur.de/prop/qualifier/>
PREFIX pq: <https://graphit.ur.de/prop/qualifier/>
select distinct ?module ?moduleLabel ?rgb ?module2 ?module2Label
select distinct ?module ?moduleLabel ?rgb ?module2 ?module2Label
?position ?positionLabel
# ?pCount
?course ?courseLabel
where {
where {
   wd:Q790 wdt:P14 ?module.
   wd:Q790 wdt:P14 ?module.
   ?module wdt:P3 wd:Q791.
   ?module wdt:P3 wd:Q791.
   OPTIONAL {?module p:P1 ?statement.
    
          ?statement ps:P1 ?module2.  
  {
          ?statement pq:P13 wd:Q324. # exclude to show dependencies of diff importance
   
          }
    # Only show a module position, if there are >1 included in a module.
   BIND (IF(BOUND(?module2), "ffeec2", "e3ffd9") as ?rgb)
    { SELECT ?module ?moduleLabel (COUNT(?position) as ?pCount) WHERE {
      ?module wdt:P14 ?position.
    } GROUP BY ?module ?moduleLabel
    }
    ?module wdt:P14 ?position.
    FILTER (?pCount > 1).
    BIND (?position as ?module2). # for color coding
 
  } UNION {
   
    # Select all other module normally
    { SELECT ?module ?moduleLabel ?module2 ?module2Label ?course ?courseLabel
    WHERE {
      wd:Q790 wdt:P14 ?module.
      ?module wdt:P3 wd:Q791.
      ?module wdt:P14 ?position.
     
      # Show the dependencies according to their importance (=qualifier), currently only "Mandatory" (Q324)
      OPTIONAL {
        ?module p:P1 ?statement.
        ?statement ps:P1 ?module2.  
        ?statement pq:P13 wd:Q324. # exclude this line to show dependencies of diff importance
      }  
      #OPTIONAL {?position wdt:P14 ?course}
    }
    }
   
  }
   BIND (IF(BOUND(?module2), "ffeec2","e3ffd9") as ?rgb)
 
   service wikibase:label { bd:serviceParam wikibase:language "de".}
   service wikibase:label { bd:serviceParam wikibase:language "de".}
} LIMIT 20
} LIMIT 50
}}
}}

Revision as of 14:26, 29 January 2024

Dies ist Übersicht für den Studiengang Medieninformatik (Bachelor of Arts) an der Universität Regensburg.

{{#switch: info | warn = ⚠️ | info = ℹ️ | #default = ✒️ }} Für direkte Informationen nutzen Sie di offizielle Homepage


Aufbau des Studiengangs

{{#widget:SPARQLquery|code=

  1. defaultView:Graph

PREFIX wdt: <https://graphit.ur.de/prop/direct/> PREFIX wd: <https://graphit.ur.de/entity/> PREFIX p: <https://graphit.ur.de/prop/> PREFIX ps: <https://graphit.ur.de/prop/statement/> PREFIX pq: <https://graphit.ur.de/prop/qualifier/> select distinct ?module ?moduleLabel ?rgb ?module2 ?module2Label ?position ?positionLabel

  1. ?pCount

?course ?courseLabel where {

 wd:Q790 wdt:P14 ?module.
 ?module wdt:P3 wd:Q791.
 
 {
   
   # Only show a module position, if there are >1 included in a module.
   { SELECT ?module ?moduleLabel (COUNT(?position) as ?pCount) WHERE {
      ?module wdt:P14 ?position.
   } GROUP BY ?module ?moduleLabel
   }
   ?module wdt:P14 ?position.
   FILTER (?pCount > 1). 
   BIND (?position as ?module2). # for color coding
 
 } UNION {
   
   # Select all other module normally
   { SELECT ?module ?moduleLabel ?module2 ?module2Label ?course ?courseLabel 
   WHERE {
     wd:Q790 wdt:P14 ?module.
     ?module wdt:P3 wd:Q791.
     ?module wdt:P14 ?position.
     
     # Show the dependencies according to their importance (=qualifier), currently only "Mandatory" (Q324)
     OPTIONAL {
       ?module p:P1 ?statement.
       ?statement ps:P1 ?module2. 
       ?statement pq:P13 wd:Q324. # exclude this line to show dependencies of diff importance
     } 
     #OPTIONAL {?position wdt:P14 ?course}
   }
   }
   
 }

 BIND (IF(BOUND(?module2), "ffeec2","e3ffd9") as ?rgb)
 
 service wikibase:label { bd:serviceParam wikibase:language "de".}

} LIMIT 50 }}