src/p4l/settings.py
changeset 84 caafe38298d7
parent 83 0ae8f199388b
child 86 4effe076e087
--- a/src/p4l/settings.py	Fri Sep 13 16:03:37 2013 +0200
+++ b/src/p4l/settings.py	Fri Sep 13 16:24:31 2013 +0200
@@ -263,11 +263,11 @@
 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
 SELECT DISTINCT ?uri ?label
 WHERE {
-    ?uri a skos:Concept ;
+    ?uri a skos:Collection ;
     skos:inScheme <http://www.iiep.unesco.org/plan4learning/scheme/Themes> ;    
-    skos:prefLabel ?label .
+    skos:prefLabel|rdfs:label ?label .
     FILTER (lang(?label) = %s). 
-    FILTER NOT EXISTS { [skos:narrower ?uri] }
+    FILTER NOT EXISTS { [skos:member ?uri] }
 }
 """,
 'childs' : """