# Send a new resource to collection [ http:url "http://localhost:1429/things" ; http:method http-methods:POST ; http:header ( "accept" "text/turtle" ) ; http:header ( "Content-Type" "application/n-triples" ); http:body { [] a ex:NewResource ; # schema:name "foo bar" ; # missing name } ] http:response ?res . # Expect for SHACL violation { ?res http:status http-status:BadRequest . ?res http:body { [ a sh:ValidationResult ; sh:path schema:name ; sh:sourceConstraintComponent sh:MinCountConstraintComponent ; sh:resultSeverity sh:Violation ; ] . } . } => { earl:passed true . }