Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bergos/simplerdf-fetch
Uses Fetch to send and receive SimpleRDF objects over HTTP
https://github.com/bergos/simplerdf-fetch
Last synced: about 2 months ago
JSON representation
Uses Fetch to send and receive SimpleRDF objects over HTTP
- Host: GitHub
- URL: https://github.com/bergos/simplerdf-fetch
- Owner: bergos
- Created: 2016-06-13T19:33:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-23T09:33:33.000Z (over 7 years ago)
- Last Synced: 2024-04-25T13:40:45.052Z (9 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simplerdf-fetch
Uses [Fetch](https://fetch.spec.whatwg.org/) to send and receive SimpleRDF objects over HTTP.
## Usage
Load the module:
var simpleFetch = require('simplerdf-fetch')
Fetch RDF Data from `url`.
For the receiving data `context` is used as SimpleRDF context.
Optional `body` can be assigned with a SimpleRDF object which should be sent.
`res.simple` contains the SimpleRDF object built from the response data.
Other properties can be used according to the [Fetch Standard](https://fetch.spec.whatwg.org/).simpleFetch(url, {context: context, body: body}).then(function (res) {
// res.simple
})## Examples
The examples folder contains examples how to send and receive SimpleRDF objects.