Files @ 83c239d3fd33
Branch filter:

Location: light9/bin/listsongs

drewp@bigasterisk.com
a note about where to use nt instead of n3, but i'm not doing it yet
Ignore-this: 5fd66a91e57fb2266bdc2dbc11d0f1c7
#!/usr/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