testing solid libraries
| rdflib.js | solid-auth-client | solid-web-client | solid-client | solid-ui | solid-panes | solid-utils |
SolidAuthClient.popupLogin({popupUri: ('https://melvincarvalho.github.io/solid-libraries/popup.html')})
SolidAuthClient.currentSession()
var file = "https://melvincarvalho.solidtest.space/public/test.ttl"
SolidUtils.fetch(file).then(r => alert(r))
SolidUtils.rdfFetch("https://retog.solidtest.space/")
SolidUtils.rdfFetch(uri, {}).then(r => alert(r.graph))
SolidAuthClient.currentSession().then(function (session) {
if (session) {
var user = $rdf.sym(session.webId);
SolidUtils.rdfFetch(session.webId).then(function (response) {
var name = response.graph.any(user, SolidUtils.vocab.foaf('name'));
alert("Logged in as: "+name);
});
} else {
alert("Not logged in");
}
})
SolidClient.web.get(uri).then( container => console.log(container) )
SolidAuthClient.fetch( 'https://melvincarvalho.solidtest.space/public/test.ttl', { method : "PUT", body : "<> <> <> ." } )
SolidUtils.createLdpc('https://melvincarvalho.solidtest.space/public/', 'pastebin')
var file = "https://melvincarvalho.solidtest.space/public/e80a1f20-c498-11e7-b987-c54edbcc67dd.ttl"
SolidUtils.fetch(file, { 'method' : 'DELETE' }).then(r => alert(r))