17 lines
332 B
JavaScript
17 lines
332 B
JavaScript
const Entity = require("../model/Entity");
|
|
class N2t{
|
|
|
|
parse(pid, item){
|
|
let entity = new Entity(pid);
|
|
entity.result.source = "n2t";
|
|
entity.id = item.pid
|
|
entity.title = item.properties.name;
|
|
entity.result.url = item.target;
|
|
entity.type = 'dataset';
|
|
return entity;
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = N2t;
|