samvera-deprecated / rdf-vocab

Shared RDF Vocabularies (rdf-vocab <= v0.7.0)
https://github.com/ruby-rdf/rdf-vocab
Apache License 2.0
4 stars 2 forks source link

generating new vocabs #46

Closed ronan-mch closed 9 years ago

ronan-mch commented 9 years ago

Is there any way to automate the creation of a new vocab from a vocab.rdf file, e.g. Bibframe or do all the terms have to be entered manually?

acoburn commented 9 years ago

@ronan-mch vocabularies are created using the same mechanism as vocab-fetch. If you add the relevant configuration items to ./lib/rdf-vocab/config/vocab.yml (you can follow the examples already present), you can use a rake task to create the ruby file.

So, if the configuration looks like this:

bf:
  class_name: BF
  uri: http://bibframe.org/vocab/
  source: http://bibframe.org/vocab.rdf

Then running rake vocab:bf will output the ruby representation of that vocabulary.

ronan-mch commented 9 years ago

:astonished: that's fantastic! Can I send you a PR with those changes?

acoburn commented 9 years ago

Yes, that would be great. Before we can accept the change, though, we'll need a signed iCLA as outlined here: https://wiki.duraspace.org/display/hydra/Hydra+Project+Intellectual+Property+Licensing+and+Ownership

@mjgiarlo @dchandekstark do you have anything to add?

ronan-mch commented 9 years ago

Apparently it is relevant for Hydra Labs

The committers may accept any any contributions to projecthydra-labs by any Hydra Licensed Contributors wishing to offer their work

Sorry about that. I'll have a look at getting one.

ronan-mch commented 9 years ago

Apparently we have a CLA here (The Royal Library of Denmark), so I can send you a PR without problems.

dchandekstark commented 9 years ago

I think the question in this issue has been answered. Thanks, @acoburn @ronan-mch.