# 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" ; } ] http:response ?res . { ?res http:status http-status:Created ; ?res http:header ( "Location" ?newResourceUrl ) ; ?newResourceUrl log:equalTo . } => { [ http:requestUrl ?newResourceUrl ; http:method http-methods:GET ; ] http:resp ?newResourceRes ; } { ?newResourceRes http:body { ?newResourceUrl a owl:Thing, ex:NewResource ; schema:name "foo bar" ; schema:identifier "foo-bar" ; . } . } => { earl:passed true ; }