#NEWLINE# def test_initNs( self ) : #NEWLINE# #INDENT# query = '        SELECT ?label WHERE\n            { ?s a xyzzy:Concept ; xyzzy:prefLabel ?label . } LIMIT 10\n        ' #NEWLINE# res = self . graph . query ( query , initNs = { #NEWLINE# #INDENT# 'xyzzy' : 'http://www.w3.org/2004/02/skos/core#' , #NEWLINE# #UNINDENT# } ) #NEWLINE# for i in res : #NEWLINE# #INDENT# assert ( type ( i [ 0 ] ) == Literal ) , i [ 0 ] . n3 ( )