-
Notifications
You must be signed in to change notification settings - Fork 19
Developing with RDF
Timea edited this page Feb 17, 2022
·
1 revision
- forum discussion
- ontology sources :
- solid-namespace
- ontologies : where to look
- http/https W3C blob solid discussion
const $rdf = require('rdflib');
const store = $rdf.graph();
const fetcher = $rdf.fetcher(store);
const uri = 'https://jeffzucker.solidcommunity.net/profile/card';
const node = $rdf.sym(uri);
(async ()=>{
await fetcher.load( uri );
console.log( $rdf.serialize(node,store,'text/turtle') );
})();
const $rdf = require('rdflib');
const store = $rdf.graph();
const fetcher = $rdf.fetcher(store);
const uri = 'https://example.com';
const node = $rdf.sym(uri);
const ns = $rdf.Namespace(uri+'#');
(async ()=>{
store.add( ns('A'), ns('B'), ns('C'), node )
console.log( $rdf.serialize(node,store,'text/turtle') );
})();