Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

still not clear on how to gen vocab #75

Closed
dsisnero opened this issue Mar 22, 2022 · 1 comment
Closed

still not clear on how to gen vocab #75

dsisnero opened this issue Mar 22, 2022 · 1 comment

Comments

@dsisnero
Copy link
Contributor

Do I need to clone the rdf vocabulary or can I generate a new vocab by installing this ?

gem install rdf-vocab

rdf gen-vocab http://www.w3id.org/bot/bot.ttl
Generate Vocabulary
rdf: Must specify vocabulary UIR

rdf gen-vocab --uri http://www.w3id.org/bot/bot.ttl
Generate Vocabulary
F:/windows/tools/ruby/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rdf-vocab-3.2.1/lib/rdf/vocab.rb:400:in `const_missing': uninitialized constant RDF::Vocab::BOT (NameError)
Did you mean? RDF::Vocab::WOTcd

update README to show that you need to clone this repository to generate vocab documents

@gkellogg
Copy link
Member

You’ll need to creat an appropriate entry in lib/rdf/vocab.rb, which should be enough. But, every new vocabulary added creates a burden for those including the gem, so there should be some evidence of wide-spread use of the vocabulary. Otherwise, you can use essentially the same workflow to add it to any particular application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants