Sha256: e35ae0232f318779f33f33576873b2bbdd5d3dc6788206967f9ca89ad7238cbf

Contents?: true

Size: 1.19 KB

Versions: 7

Compression:

Stored size: 1.19 KB

Contents

# coding: utf-8
$:.unshift "."
require 'spec_helper'

describe JSON::LD::Context::Preloaded do
  {
    activitystreams:  "https://www.w3.org/ns/activitystreams",
    csvw:             "https://www.w3.org/ns/csvw",
    datacube:         "http://pebbie.org/context/qb",
    entityfacts:      "http://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld",
    foaf:             "http://xmlns.com/foaf/context",
    geojson:          "http://geojson.org/geojson-ld/geojson-context.jsonld",
    hydra:            "http://www.w3.org/ns/hydra/core",
    identity:         "https://w3id.org/identity/v1",
    iiif:             "http://iiif.io/api/image/2/context.json",
    lov:              "http://lov.okfn.org/dataset/lov/context",
    prefix:           "http://prefix.cc/context",
    presentation:     "http://iiif.io/api/presentation/2/context.json",
    rdfa:             "http://www.w3.org/2013/json-ld-context/rdfa11",
    research:         "https://w3id.org/bundle/context",
    schema:           "http://schema.org/",
    vcard:            "http://www.w3.org/2006/vcard/ns",
  }.each do |id, url|
    it "preloads #{id}" do
      expect(JSON::LD::Context::PRELOADED.keys).to include(url)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
json-ld-preloaded-3.0.4 spec/preloaded_spec.rb
json-ld-preloaded-3.0.3 spec/preloaded_spec.rb
json-ld-preloaded-3.0.2 spec/preloaded_spec.rb
json-ld-preloaded-3.0.1 spec/preloaded_spec.rb
json-ld-preloaded-3.0.0 spec/preloaded_spec.rb
json-ld-preloaded-2.2.3 spec/preloaded_spec.rb
json-ld-preloaded-2.2.2 spec/preloaded_spec.rb