From a00b37980b2c034a2c35122f5097cc90cc336ab4 Mon Sep 17 00:00:00 2001 From: ali1k Date: Wed, 24 Oct 2018 17:29:36 +0200 Subject: [PATCH] minor --- decksToRDF.js | 8 ++++---- usersToRDF.js | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/decksToRDF.js b/decksToRDF.js index 49c3f7d..87bc763 100644 --- a/decksToRDF.js +++ b/decksToRDF.js @@ -85,16 +85,16 @@ swR:${id}-${item.id} swV:hasTag swTagR:${tag.id} . item.contentItems.forEach((content)=>{ if(content.kind === 'slide'){ console.log(` -swR:${id}-${item.id} swV:hasContentItem swR:${id}-${item.id}/${content.kind}/${content.ref.id}-${content.ref.revision} . -swR:${id}-${item.id}/${content.kind}/${content.ref.id}-${content.ref.revision} a swV:SlideRevision ; +swR:${id}-${item.id} swV:hasContentItem . + a swV:SlideRevision ; swV:isRevisedFrom swSlideR:${content.ref.id} ; swV:isEqualTo swSlideR:${content.ref.id}-${content.ref.revision} ; swV:order """${content.order}""" . `); }else{ console.log(` -swR:${id}-${item.id} swV:hasContentItem swR:${id}-${item.id}/${content.kind}/${content.ref.id}-${content.ref.revision} . -swR:${id}-${item.id}/${content.kind}/${content.ref.id}-${content.ref.revision} a swV:DeckRevision ; +swR:${id}-${item.id} swV:hasContentItem . + a swV:DeckRevision ; swV:isRevisedFrom swR:${content.ref.id} ; swV:isEqualTo swR:${content.ref.id}-${content.ref.revision} ; swV:order """${content.order}""" . diff --git a/usersToRDF.js b/usersToRDF.js index a9bffd9..7fedee1 100644 --- a/usersToRDF.js +++ b/usersToRDF.js @@ -43,6 +43,12 @@ swR:${id} a swV:User . `); for(let prop in obj){ if(selected.indexOf(prop) !== -1){ + if(prop === 'picture'){ + console.log(` +swR:${id} swV:picture <${obj[prop]}> . + `); + continue; + } console.log(` swR:${id} swV:${prop} """${obj[prop] ? obj[prop] : '-'}""" . `);