<schemarama>

<!-- here we show a simple check using an rdf query language -->

     <pattern name = "Check that events have inputs."
              language="http://ilrt.org/discovery/2001/02/schemarama">

          <rule>
	   <context>
		SELECT ?event  
		FROM http://ilrt.org/discovery/2001/02/schemarama/tester.rdf 
		WHERE 
		(rdf::type ?event an::contentReportEvent) 
		foaf for http://xmlns.com/abc/1.0/ 
		rdf for http://www.w3.org/1999/02/22-rdf-syntax-ns# 
		an for http://rdf.desire.org/vocab/recommend.rdf# 
           </context>
           <assert>
	 <test>
		SELECT ?input 
		FROM http://ilrt.org/discovery/2001/02/schemarama/tester.rdf
		WHERE (foaf::input ?event ?input) 
		USING foaf for http://xmlns.com/abc/1.0/
	 </test>
	 <body>sorry! events must have an input</body>
	</assert>
       </rule>
     </pattern>
</schemarama>

