Skip to content

muze-nl/metro-oldm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub License GitHub package.json version NPM Version npm bundle size Project stage: Experimental

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.

About

Linked Data middleware for MetroJS

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors