Skip to content

Commit

Permalink
Update all vocabularies for scheme from RDF.rb 3.1.11 where non-keywo…
Browse files Browse the repository at this point in the history
…rd Term attributes and properties favor absolute URLs.
  • Loading branch information
gkellogg committed Feb 16, 2021
1 parent 10bcf4d commit 5523582
Show file tree
Hide file tree
Showing 81 changed files with 49,207 additions and 108,152 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ RDF::Vocab::VOCABS.each do |id, v|
cmd += " --module-name #{v.fetch(:module_name, "RDF::Vocab")}"
cmd += " --class-name #{v[:class_name] ? v[:class_name] : id.to_s.upcase}"
cmd += " --strict" if v.fetch(:strict, true)
cmd += " --extra #{URI.encode v[:extra].to_json}" if v[:extra]
cmd += " --noDoc"
cmd += " --extra #{URI.encode_www_form_component v[:extra].to_json}" if v[:extra]
cmd += " -o lib/rdf/vocab/#{id}.rb_t"
cmd += " '" + v.fetch(:source, v[:uri]) + "'"
puts " #{cmd}"
Expand Down
14 changes: 13 additions & 1 deletion lib/rdf/vocab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@ module RDF
module Vocab
autoload :VERSION, 'rdf/vocab/version'
VOCABS = {
acl: {uri: "http://www.w3.org/ns/auth/acl#"},
acl: {
uri: "http://www.w3.org/ns/auth/acl#",
patch: %{
@prefix acl: <http://www.w3.org/ns/auth/acl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
DeleteExisting {
acl:Access acl:label "access"@en .
} .
AddNew {
acl:Access rdfs:label "access"@en .
} .
}
},
as: {uri: "https://www.w3.org/ns/activitystreams#", source: 'etc/as.ttl'},
bf2: {uri: 'http://id.loc.gov/ontologies/bibframe/'},
bibframe: {
Expand Down
181 changes: 47 additions & 134 deletions lib/rdf/vocab/acl.rb

Large diffs are not rendered by default.

Loading

0 comments on commit 5523582

Please sign in to comment.