1

我正在尝试从以下端点检索组织名称或任何数据。

https://isumotest.inrupt.net/profile/card#me

但是,每当我尝试抓住任何东西时,它总是以未定义的形式返回

const $rdf = require('rdflib')
const store  = $rdf.graph();

const me = store.sym('https://isumotest.inrupt.net/profile/card#me');
const profile = me.doc();       //i.e. store.sym(''https://example.com/alice/card#me')

const VCARD = new $rdf.Namespace('http://www.w3.org/2006/vcard/ns#');
const FOAF = new $rdf.Namespace('http://xmlns.com/foaf/0.1/');

let name = store.any(me, VCARD('organization-name'));
console.log(name);
console.log('Request Ended');

例如:

$ node app.js
undefined
Request Ended

非常感谢任何帮助,我已经坚持了很长一段时间。

4

0 回答 0