<s> from testSPARQL import ns_rdf <EOL> from testSPARQL import ns_rdfs <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 testSPARQL import ns_vcard <EOL> from testSPARQL import ns_person <EOL> from rdflib . Literal import Literal <EOL> from rdflib import BNode <EOL> from rdfextras . sparql . sparql import PatternBNode <EOL> from rdfextras . sparql . sparqlOperators import lt , ge <EOL> import datetime <EOL> from rdfextras . sparql . graphPattern 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 = [ ] <EOL> pattern = GraphPattern ( [ ( "<STR_LIT>" , ns_foaf [ "<STR_LIT>" ] , "<STR_LIT>" ) , ( "<STR_LIT>" , ns_foaf [ "<STR_LIT>" ] , "<STR_LIT>" ) ] ) <EOL> optional = [ ] <EOL> bnode = BNode ( "<STR_LIT:v>" ) <EOL> construct = GraphPattern ( [ ( "<STR_LIT>" , ns_vcard [ "<STR_LIT:N>" ] , bnode ) , ( bnode , ns_vcard [ "<STR_LIT>" ] , "<STR_LIT>" ) , ( bnode , ns_vcard [ "<STR_LIT>" ] , "<STR_LIT>" ) ] ) <EOL> tripleStore = None </s>
