<s> from testSPARQL import ns_rdf <EOL> from testSPARQL import ns_rdfs <EOL> from testSPARQL import ns_dc <EOL> from testSPARQL import ns_dc0 <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 . operators import lt , ge <EOL> import datetime <EOL> from rdfextras . sparql . graph import GraphPattern <EOL> thresholdDate = datetime . date ( <NUM_LIT> , <NUM_LIT:0> <NUM_LIT:1> , <NUM_LIT:0> <NUM_LIT:1> ) <EOL> rdfData = """<STR_LIT>""" <EOL> select = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> patt1 = GraphPattern ( [ ( "<STR_LIT>" , ns_dc0 [ "<STR_LIT:title>" ] , "<STR_LIT>" ) ] ) <EOL> patt2 = GraphPattern ( [ ( "<STR_LIT>" , ns_dc [ "<STR_LIT:title>" ] , "<STR_LIT>" ) ] ) <EOL> pattern = [ patt1 , patt2 ] <EOL> optional = [ ] <EOL> tripleStore = None <EOL> expected = '''<STR_LIT>''' </s>
