How to use the rdf-ext.defaultRequest function in rdf-ext

To help you get started, we’ve selected a few rdf-ext examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rdf2h / ld2h / dist / ld2h.js View on Github external
function LdpStore (options) {
  options = options || {}

  this.parsers = options.parsers ? new rdf.Parsers(options.parsers) : rdf.parsers
  this.serializers = options.serializers ? new rdf.Serializers(options.serializers) : rdf.serializers
  this.defaultParser = options.defaultParser || 'text/turtle'
  this.defaultSerializer = options.defaultSerializer || 'text/turtle'
  this.defaultPatchSerializer = options.defaultPatchSerializer || options.defaultSerializer || 'text/turtle'
  this.request = options.request || rdf.defaultRequest
}