return content only if the type is of s:Product
@@ -979,8 +979,12 @@ const transportUseCases = {
parseFromRDF: function(jsonLDImm) {
const content = jsonLDImm && jsonLDImm.get("s:name");
if (content) {
- console.log("JSONLDImm of @type: ", jsonLDImm.get("@type"));
+ const type = jsonLDImm.get("@type");
+ if (type === "s:Product") {
return content;
+ } else {
+ return undefined;
+ }
}
},
},
