Mercurial > code > home > repos > light9
view bin/listsongs @ 789:ea8ca6502255
refactor to prepare for submasters to work out of the main graph
Ignore-this: a5d4b63cf6b7daf52cce9bbfc3e0c5b3
author | drewp@bigasterisk.com |
---|---|
date | Mon, 18 Jun 2012 01:34:40 +0000 |
parents | d8202a0a7fd5 |
children | 27d2f148b630 |
line wrap: on
line source
#!bin/python """for completion, print the available song uris on stdout in .zshrc: function _songs { local expl; _description files expl 'songs'; compadd "$expl[@]" - `${LIGHT9_SHOW}/../../bin/listsongs` } compdef _songs curvecalc """ import run_local from light9 import showconfig from light9.namespaces import L9 from rdflib import RDF graph = showconfig.getGraph() for song in graph.subjects(RDF.type, L9['Song']): print song