(body, requestUri, contentType)
| 200 | } |
| 201 | |
| 202 | isValidRdf (body, requestUri, contentType) { |
| 203 | const resourceGraph = $rdf.graph() |
| 204 | try { |
| 205 | $rdf.parse(body, resourceGraph, requestUri, contentType) |
| 206 | } catch (err) { |
| 207 | if (debug && debug.ldp) debug.ldp('VALIDATE -- Error parsing data: ' + err) |
| 208 | return false |
| 209 | } |
| 210 | return true |
| 211 | } |
| 212 | |
| 213 | async put (url, stream, contentType) { |
| 214 | const container = (url.url || url).endsWith('/') |