Skip to content

Commit

Permalink
add some queries
Browse files Browse the repository at this point in the history
  • Loading branch information
pssvlng committed Jul 1, 2024
1 parent c973a4a commit 7d038cd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,28 @@
FILTER(CONTAINS(LCASE(?label), "deutsch"))
}
"""

'''
Suche nach allen Unterelementen, die mit einem bestimmten Lehrplanelement verbunden sind
<https://w3id.org/lehrplan/ontology/LP_00000008>: hat_teil
<https://lehrplan.yovisto.com/resource/lp/rp/c688300f-1c49-11ef-8398-d9ff35fc6bd6>: Beispiel Resource
'''
KOMPETENZ_BAUM_SUCHE = """
SELECT distinct ?root_label ?level_1_label ?level_2_label ?level_3_label
WHERE {
<https://lehrplan.yovisto.com/resource/lp/rp/c688300f-1c49-11ef-8398-d9ff35fc6bd6> <https://w3id.org/lehrplan/ontology/LP_00000008> ?level_1 .
?level_1 rdfs:label ?level_1_label .
OPTIONAL {
?level_1 <https://w3id.org/lehrplan/ontology/LP_00000008> ?level_2 .
?level_2 rdfs:label ?level_2_label .
OPTIONAL {
?level_2 <https://w3id.org/lehrplan/ontology/LP_00000008> ?level_3 .
?level_3 rdfs:label ?level_3_label .
}
}
BIND(<https://lehrplan.yovisto.com/resource/lp/rp/c688300f-1c49-11ef-8398-d9ff35fc6bd6> as ?root) .
?root rdfs:label ?root_label
}
ORDER BY ?root ?level_1 ?level_2 ?level_3
"""

0 comments on commit 7d038cd

Please sign in to comment.