diff --git a/support/pipeline.js b/support/pipeline.js index 0acb0ae..49a8a1b 100644 --- a/support/pipeline.js +++ b/support/pipeline.js @@ -312,6 +312,14 @@ function preProcess(triples){ } return t; }); + + //Remove triples with empty objects + //We found that the RDFa parser did not handle spaces correctly and created triples where the object URI is a ' '. + triples = triples.filter(((t) => + !(t.datatype === 'http://www.w3.org/2000/01/rdf-schema#Resource' && + t.object.trim().length < 1) + )); + return triples; };