RunKit + npm: schema-org-adapter

node v10.24.1
endpointsharetweet
const SDOAdapter = require('schema-org-adapter'); const mySDOAdapter = new SDOAdapter(); await mySDOAdapter.addVocabularies(await mySDOAdapter.constructSDOVocabularyURL('latest')); //using the API of the library (set last parameter to true to activate inference) console.log("mySDOAdapter.getProperty('employee').toJSON(false)"); console.log(mySDOAdapter.getProperty('employee').toJSON(false)); //using the "raw" RDF entry in the internal graph console.log("mySDOAdapter.graph.properties['schema:employee']") console.log(mySDOAdapter.graph.properties['schema:employee']) //the context used in the internal graph console.log("mySDOAdapter.graph.context") console.log(mySDOAdapter.graph.context)
Created from: https://npm.runkit.com/schema-org-adapter
Loading…