@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

@prefix math: <http://www.w3.org/2000/10/swap/math#> .
@prefix type: <http://dig.csail.mit.edu/2009/IARPA-PIR/generic#> .
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
@prefix list: <http://www.w3.org/2000/10/swap/list#> .
@prefix air: <http://dig.csail.mit.edu/TAMI/2007/amord/air#> .
@prefix db: <http//dig.csail.mit.edu/db#> .
@prefix s: <http://dig.csail.mit.edu/2009/IARPA-PIR/sparql#> .
@prefix : <http://dig.csail.mit.edu/2009/IARPA-PIR/Yotam_Work/From_Prohibited_Policy#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

#The policy specifies that does not allow a user to search for 
#information from specific RDF tables. In other words, it looks to 
#see if the FROM or FROM NAMED statements are used with an illegal
#URI. The illegal URIs are represented as <URIgeneric1>, <URIgeneric2>, #and <URIgeneric3> Uses the new translation of SPARQL.

@forAll :Q, :C, :S.

:From_Prohibited_Policy a air:Policy;
	air:label "From Prohibited Policy";
	air:rule :FP_Rule1.

:FP_Rule1 a air:BeliefRule;
	air:label "From Prohibited Rule 1";
	air:pattern {
              :Q a s:Query;
        	  s:Clause :C
       };
	air:description(:Q " is a SPARQL query.");
	air:rule :FP_Rule2.

:FP_Rule2 a air:BeliefRule;
	air:label "From Prohibited Rule 2";
	air:pattern{
		:Q s:Source :S.
		:S list:in (<http://URIgeneric1.html> <http://URIgeneric2.html> <http://URIgeneric3.html>)
	};
	air:description (:Q " specifies to search for information from an illegal source " :S);
	air:assert {:Q air:non-compliant-with :From_Prohibited_Policy};
	air:alt [air:assert {:Q air:compliant-with :From_Prohibted_Policy}].
