<s> """<STR_LIT>""" <EOL> rdfData = """<STR_LIT>""" <EOL> from testSPARQL import ns_rdf <EOL> from testSPARQL import ns_rdfs <EOL> from testSPARQL import ns_dc <EOL> from testSPARQL import ns_foaf <EOL> from testSPARQL import ns_ns <EOL> from testSPARQL import ns_book <EOL> from rdflib import Literal <EOL> from rdfextras . sparql . graph import GraphPattern <EOL> from rdfextras . sparql . operators import isURI <EOL> select = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> pattern = GraphPattern ( [ ( "<STR_LIT>" , ns_foaf [ "<STR_LIT:name>" ] , "<STR_LIT>" ) , ( "<STR_LIT>" , ns_foaf [ "<STR_LIT>" ] , "<STR_LIT>" ) ] ) <EOL> pattern . addConstraint ( isURI ( "<STR_LIT>" ) ) <EOL> optional = [ ] <EOL> tripleStore = None <EOL> expected = '''<STR_LIT>''' </s>
