diff --git a/lib/rdf-notification-template.js b/lib/rdf-notification-template.js index 8ad94cca..77fb4332 100644 --- a/lib/rdf-notification-template.js +++ b/lib/rdf-notification-template.js @@ -34,10 +34,10 @@ function generateTurtleNotification ({ let stateLine = '' if (activity === 'Add') { - targetLine = `\n as:target ${target} ;` + targetLine = `\n as:target <${target}> ;` } if (activity === 'Remove') { - targetLine = `\n as:origin ${target} ;` + targetLine = `\n as:origin <${target}> ;` } if (eventID) { stateLine = `\n notify:state "${eventID}" ;` @@ -48,7 +48,7 @@ function generateTurtleNotification ({ @prefix xsd: <${CONTEXT_XML_SCHEMA}#> . a as:${activity} ; - as:object ${object} ;${targetLine}${stateLine} + as:object <${object}> ;${targetLine}${stateLine} as:published "${date}"^^xsd:dateTime .`.replaceAll('\n', '\r\n') }