Module ImportFrom alias ImportFrom alias ImportFrom alias Import alias Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore NameLoad Assign NameStore Str Import alias If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body If BoolOpOr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Print Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore BinOpMod NameLoad Call NameLoad Assign NameStore ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad
N/A emitcode emitCode raco.language.grappalang GrappaAlgebra raco.language.clang CCAlgebra N/A logging N/A N/A N/A logging basicConfig level N/A logging DEBUG N/A LOG N/A N/A logging getLogger __name__ N/A tr sp2bench_1m N/A queries N/A N/A N/A queries N/A Q1 A(yr) :- %(tr)s(journal, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Journal'),
                 %(tr)s(journal, 'http://purl.org/dc/elements/1.1/title', 'Journal 1 (1940)'),
                 %(tr)s(journal, 'http://purl.org/dc/terms/issued', yr) N/A N/A queries N/A Q2 A(inproc, author, booktitle, title, proc, ee, page, url, yr) :- %(tr)s(inproc, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Inproceedings'),
   %(tr)s(inproc, 'http://purl.org/dc/elements/1.1/creator', author),
   %(tr)s(inproc, 'http://localhost/vocabulary/bench/booktitle', booktitle),
   %(tr)s(inproc, 'http://purl.org/dc/elements/1.1/title', title),
   %(tr)s(inproc, 'http://purl.org/dc/terms/partOf', proc),
   %(tr)s(inproc, 'http://www.w3.org/2000/01/rdf-schema#seeAlso', ee),
   %(tr)s(inproc, 'http://swrc.ontoware.org/ontology#pages',  page),
   %(tr)s(inproc, 'http://xmlns.com/foaf/0.1/homepage', url),
   %(tr)s(inproc, 'http://purl.org/dc/terms/issued', yr) N/A N/A queries N/A Q3a A(article) :- %(tr)s(article, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Article'),
                       %(tr)s(article, property, value),
                       property = 'http://swrc.ontoware.org/ontology#pages' N/A N/A queries N/A Q3b A(article) :- %(tr)s(article, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Article'),
                       %(tr)s(article, property, value),
                       property = 'http://swrc.ontoware.org/ontology#month' N/A N/A queries N/A Q3c A(article) :- %(tr)s(article, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Article'),
                       %(tr)s(article, property, value),
                       property = 'http://swrc.ontoware.org/ontology#isbn' N/A N/A queries N/A Q4 A(name1, name2) :- %(tr)s(article1, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Article'),
                           %(tr)s(article2, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Article'),
                           %(tr)s(article1, 'http://purl.org/dc/elements/1.1/creator', author1),
                           %(tr)s(author1, 'http://xmlns.com/foaf/0.1/name', name1),
                           %(tr)s(article2, 'http://purl.org/dc/elements/1.1/creator', author2),
                           %(tr)s(author2, 'http://xmlns.com/foaf/0.1/name', name2),
                           %(tr)s(article1, 'http://swrc.ontoware.org/ontology#journal', journal),
                           %(tr)s(article2, 'http://swrc.ontoware.org/ontology#journal', journal) N/A N/A queries N/A Q5a A(person, name) :- %(tr)s(article, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Article'),
                            %(tr)s(article, 'http://purl.org/dc/elements/1.1/creator', person),
                            %(tr)s(inproc, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Inproceedings'),
                            %(tr)s(inproc, 'http://purl.org/dc/elements/1.1/creator', person2),
                            %(tr)s(person, 'http://xmlns.com/foaf/0.1/name', name),
                            %(tr)s(person2, 'http://xmlns.com/foaf/0.1/name', name2),
                            name = name2 N/A N/A queries N/A Q5b A(person, name) :- %(tr)s(article, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Article'),
                            %(tr)s(article, 'http://purl.org/dc/elements/1.1/creator', person),
                            %(tr)s(inproc, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://localhost/vocabulary/bench/Inproceedings'),
                            %(tr)s(inproc, 'http://purl.org/dc/elements/1.1/creator', person),
                            %(tr)s(person, 'http://xmlns.com/foaf/0.1/name', name) N/A _ Erdoes(erdoes) :- %(tr)s(erdoes, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://xmlns.com/foaf/0.1/Person'),
                          %(tr)s(erdoes, 'http://xmlns.com/foaf/0.1/name', "Paul Erdoes")
        A(name) :- Erdoes(erdoes),
                   %(tr)s(doc, 'http://purl.org/dc/elements/1.1/creator', erdoes),
                   %(tr)s(doc, 'http://purl.org/dc/elements/1.1/creator', author),
                   %(tr)s(doc2, 'http://purl.org/dc/elements/1.1/creator', author),
                   %(tr)s(doc2, 'http://purl.org/dc/elements/1.1/creator', author2),
                   %(tr)s(author2, 'http://xmlns.com/foaf/0.1/name', name),
                   author != erdoes,
                   doc2 != doc,
                   author2 != erdoes,
                   author2 != author

         A(name) :- Erdoes(erdoes),
                    %(tr)s(doc, 'http://purl.org/dc/elements/1.1/creator', erdoes),
                    %(tr)s(doc, 'http://purl.org/dc/elements/1.1/creator', author),
                    %(tr)s(author, 'http://xmlns.com/foaf/0.1/name', name),
                    author != erdoes N/A N/A queries N/A Q9 A(predicate) :- %(tr)s(person, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://xmlns.com/foaf/0.1/Person'),
                        %(tr)s(subject, predicate, person)

        A(predicate) :- %(tr)s(person, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://xmlns.com/foaf/0.1/Person'),
                        %(tr)s(person, predicate, object) N/A N/A queries N/A Q10 A(subj, pred) :- %(tr)s(subj, pred, 'http://localhost/persons/Paul_Erdoes') N/A N/A queries N/A Q11 A(ee) :- %(tr)s(publication, 'http://www.w3.org/2000/01/rdf-schema#seeAlso', ee) N/A alg CCAlgebra N/A prefix N/A sys N/A N/A N/A len N/A sys argv 1 N/A N/A N/A N/A N/A N/A sys argv N/A 1 grappa N/A N/A N/A sys argv N/A 1 g N/A N/A using grappa N/A alg GrappaAlgebra N/A prefix grappa N/A plan None N/A N/A N/A len N/A sys argv 2 N/A N/A plan N/A N/A sys argv N/A 2 N/A N/A name query N/A N/A queries iteritems N/A N/A query N/A query N/A locals N/A lst N/A N/A prefix N/A N/A N/A N/A lst append prefix N/A plan N/A N/A N/A N/A lst append plan N/A name N/A N/A N/A N/A lst append name N/A N/A emitCode query N/A N/A _ join lst alg plan