/* This document presents the set of non-conform queries obtained from the lubm queries presented here. lubm queries are obtianed from the Web site: http://swat.cse.lehigh.edu/projects/lubm/queries-sparql.txt Selected queries from the lubm are: - Q8, Q12 and Q13 as chain queries, - Q1, Q4 and Q10 as star queries, - Q2, Q7 and Q9 as complex queries. These queries are selected and turned into non-conform queries denoted by Q'i where i is in {8, 12, 12, 1, 4, 10, 2, 7, 9} in order to assess the efficiency of the suspicious query detection approach proposed in paper "Early detection of RDF suspicious Queries". These queries are made non-conform the following way: the first query of each category is modified by integrating a non-conform pattern in the query, the second one is altered by making the query non-conform (even though all of its individual patterns are conform), while the last type of query is obtained by a mixture of the two preceding modifications. For Chain queries -Q8 is turned suspicious Q'8, where ?X could not by a professor and ?Z is not an organization and emailAddress, -Q12 is turned suspicious Q'12, where all paterns are conforme but their conjunction is not conform, -Q13 is turned suspicious Q'13, where ?Y can not be a literal. For Star queries -Q1 is turned suspicious Q'1, where the property takesCourse can not have professor as range, -Q4 is turned suspicious Q'4, where the conjunction of the patterns is not conform, -Q10 is turned suspicious Q'10, where ?X can not be student the query is not conform. For complex queries -Q2 is turned suspicious Q'2, where pattern 4 is not coform, -Q7 is turned suspicious Q'7, where ?X can not be a Professor, -Q9 is turned suspicious Q'9, where ?Z and ?Y can not be resolved. */ //Conform Lubm Chain Queries: //************Q8******************** SELECT ?X, ?Y, ?Z WHERE {?X rdf:type ub:Student . ?Y rdf:type ub:Department . ?X ub:memberOf ?Y . ?Y ub:subOrganizationOf . ?X ub:emailAddress ?Z} //************Q12******************** SELECT ?X, ?Y WHERE {?X rdf:type ub:Chair . ?Y rdf:type ub:Department . ?X ub:worksFor ?Y . ?Y ub:subOrganizationOf } //************Q13******************** SELECT ?X WHERE {?X rdf:type ub:Person . ub:hasAlumnus ?X} //Non-conform Chain Queries //************Q'8******************** // Q'8 is non conform since x could not by a professor and z is not an organization and emailAddress SELECT ?X, ?Y, ?Z WHERE {?X rdf:type ub:Professor . ?Y rdf:type ub:Department . ?X ub:memberOf ?Y . ?Y ub:subOrganizationOf ?Z . ?X ub:emailAddress ?Z} //************Q'12******************** //paterns are conforme but the query is not conforme SELECT ?X, ?Y WHERE {?X rdf:type ub:Chair . ?Y rdf:type ub:Department . ?X ub:worksFor ?Y .} //************Q'13******************** //pattern 3 is note conforme SELECT ?X WHERE {?X rdf:type ub:Person . ?Y ub:hasAlumnus ?X memberOf ?Y} //conform Star Queries //************Q1******************** SELECT ?X WHERE {?X rdf:type ub:GraduateStudent . ?X ub:takesCourse http://www.Department0.University0.edu/GraduateCourse0} //************Q4******************** SELECT ?X WHERE {?X rdf:type ub:Student . ?X ub:takesCourse } //************Q10******************** SELECT ?X, ?Y1, ?Y2, ?Y3 WHERE {?X rdf:type ub:Professor . ?X ub:worksFor ?Z. ?X ub:name ?Y1 . ?X ub:emailAddress ?Y2 . ?X ub:telephone ?Y3} //Non-conform Star Queries //************Q'1******************** //pattern 2 is not conform SELECT ?X WHERE {?X rdf:type ub:GraduateStudent . ?X ub:takesCourse ub:Professor} //************Q'4******************** // the conjunction is note conform SELECT ?X WHERE {?X rdf:type ub:GraduateStudent . ?X ub:takesCourse } //************Q'10******************** //pattern 2 is not confrom and the query is not conform also SELECT ?X, ?Y1, ?Y2, ?Y3 WHERE {?X rdf:type ub:student . ?X ub:worksFor ub:Department. ?X ub:name ?Y1 . ?X ub:emailAddress ?Y2 . ?X ub:telephone ?Y3} //conform Complex Queries //************Q2******************** SELECT ?X, ?Y WHERE {?X rdf:type ub:Student . ?Y rdf:type ub:Course . ?X ub:takesCourse ?Y . , ub:teacherOf, ?Y} //************Q7******************** SELECT ?X, ?Y, ?Z WHERE {?X rdf:type ub:GraduateStudent . ?Y rdf:type ub:University . ?Z rdf:type ub:Department . ?X ub:memberOf ?Z . ?Z ub:subOrganizationOf ?Y . ?X ub:undergraduateDegreeFrom ?Y} //************Q9******************** SELECT ?X, ?Y, ?Z WHERE { ?X rdf:type ub:GraduateStudent . ?Y rdf:type ub:University . ?Z rdf:type ub:Department . ?X ub:memberOf ?Z . ?Z ub:subOrganizationOf ?Y . ?X ub:undergraduateDegreeFrom ?Y} //Non-conform Complex Queries //************Q'2******************** //?X is note a student SELECT ?X, ?Y WHERE {?X rdf:type ub:student . ?Y rdf:type ub:Course . ?X ub:takesCourse ?Y . ?X ub:teacherOf, ?Y} //************Q'7******************** //the conjunction of patterns is not conform SELECT ?X, ?Y, ?Z WHERE {?X rdf:type Professor . ?Y rdf:type ub:University . ?Z rdf:type ub:Department . ?X ub:memberOf ?Z . ?Z ub:subOrganizationOf ?Y . ?X ub:undergraduateDegreeFrom ?Y} //************Q'9******************** //?Z and ?Y can not be resolved SELECT ?X, ?Y, ?Z WHERE { ?X rdf:type ub:GraduateStudent . ?Y rdf:type ub:Student . ?Z rdf:type ub:Department . ?X ub:memberOf ?Z . ?Z ub:subOrganizationOf ?Y . ?X ub:undergraduateDegreeFrom ?Y}