@Test public void testRejectsSPOPresenceWithMessage()
{
Report r = new Report();
String sparql = "select * where {?s ?p ?o}";
Resource root = resourceInModel( "root eye:sparql [eye:prohibit '<S>' & eye:message 'SPOO']".replaceAll( "<S>", sparql ) );
SparqlDrivenInspector s = new SparqlDrivenInspector( root );
s.inspectModel( r, ontModel( "my count 17" ) );
String expect =
"[eye:mainProperty eye:sparqlProhibitFailed & eye:sparqlProhibitFailed 'SPOO']"
.replaceAll( "<S>", sparql )
;
assertIsoModels( "should report prohibition violation", itemModel( expect ), r.model() );