Skip to content

Commit

Permalink
Update schema.org vocabulary definition for its 2.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 12, 2014
1 parent 89d1b7b commit 718e1a7
Show file tree
Hide file tree
Showing 2 changed files with 845 additions and 103 deletions.
2 changes: 2 additions & 0 deletions lib/rdf/cli/vocab-loader.rb
Expand Up @@ -147,6 +147,8 @@ class #{class_name} < RDF::#{"Strict" if @strict}Vocabulary("#{uri}")
datatype: {},
other: {}
}

# FIXME: This can try to resolve referenced terms against the previous version of this vocabulary, which may be strict, and fail if the referenced term hasn't been created yet.
vocab.each.to_a.sort.each do |term|
name = term.to_s[uri.length..-1].to_sym
kind = case term.type.to_s
Expand Down

0 comments on commit 718e1a7

Please sign in to comment.