Skip to content

Commit

Permalink
updated scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ali1k committed Oct 25, 2018
1 parent c6cdef4 commit 2b91c2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usersToRDF.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ function convertToRDF(obj) {
console.log(`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] : '-'}""" .`);
}
}
Expand Down

0 comments on commit 2b91c2b

Please sign in to comment.