RunKit + npm:

node v18.11.0
endpointsharetweet
const { n3reasoner } = require('eyereasoner') const { Parser } = require('n3') const $rdf = require('rdf-ext@1.3.5') const data =` PREFIX : <http://example.com/> :object1 :Title :title1. :title1 :Type :type1. :object2 :Title :title2. :object3 :Title :title3. :title3 :Type :type3. @prefix log: <http://www.w3.org/2000/10/swap/log#>. @prefix : <http://example.com/>. { { ?object :Title ?title. } log:callWithOptional { ?title :Type ?type. }. ?type log:bound false. } => { ?object :TitleWithoutType ?title. }.` await n3reasoner(data)
Created from: https://npm.runkit.com/
Loading…