@muze-nl/metro-oldm
v0.3.1
Published
linked data middleware for @muze-nl/metro
Readme
Metro OLDM (Linked Data) middleware
The OLDM middleware allows you to configure a metro client to handle automatic parsing and writing of Linked Data formats:
import oldmmw from '@muze-nl/metro-oldm'
const client = metro.client('https://oauth2api.example.com')
.with( oldmmw({
prefixes: {
'ldp': 'http://www.w3.org/ns/ldp#'
'schema': 'https://schema.org/'
}
}) )
async function fetchMovies() {
return await client.get('https://example.solidcommunity.net/movies/')
}See the OLDM documentation for information on how to use OLDM data.
