We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4536d95 commit df5303bCopy full SHA for df5303b
lib/json/ld/context.rb
@@ -274,7 +274,7 @@ def parse(local_context, remote_contexts = [])
274
raise
275
rescue Exception => e
276
# Speical case for schema.org, until they get their act together
277
- if context.to_s == 'http://schema.org/'
+ if context.to_s.start_with?('http://schema.org')
278
RDF::Util::File.open_file("http://json-ld.org/contexts/schema.org.jsonld") do |f|
279
context = JSON.parse(f.read)['@context']
280
if @options[:processingMode] == "json-ld-1.0"
0 commit comments