src/p4l/settings.py
changeset 84 caafe38298d7
parent 83 0ae8f199388b
child 86 4effe076e087
equal deleted inserted replaced
83:0ae8f199388b 84:caafe38298d7
   261 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   261 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   262 PREFIX owl:<http://www.w3.org/2002/07/owl#>
   262 PREFIX owl:<http://www.w3.org/2002/07/owl#>
   263 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
   263 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
   264 SELECT DISTINCT ?uri ?label
   264 SELECT DISTINCT ?uri ?label
   265 WHERE {
   265 WHERE {
   266     ?uri a skos:Concept ;
   266     ?uri a skos:Collection ;
   267     skos:inScheme <http://www.iiep.unesco.org/plan4learning/scheme/Themes> ;    
   267     skos:inScheme <http://www.iiep.unesco.org/plan4learning/scheme/Themes> ;    
   268     skos:prefLabel ?label .
   268     skos:prefLabel|rdfs:label ?label .
   269     FILTER (lang(?label) = %s). 
   269     FILTER (lang(?label) = %s). 
   270     FILTER NOT EXISTS { [skos:narrower ?uri] }
   270     FILTER NOT EXISTS { [skos:member ?uri] }
   271 }
   271 }
   272 """,
   272 """,
   273 'childs' : """
   273 'childs' : """
   274 PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
   274 PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
   275 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   275 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>