samvera-deprecated/rdf-vocab

Provide or link to basic vocab usage example(s)

Closed this issue · 7 comments

Provide or link to basic vocab usage example(s)

Is something like this any use?

class Person < ActiveFedora::Base
  property :lastname, predicate: ::RDF::Vocab::MADS.FamilyName, multiple: false
  property :firstname, predicate: ::RDF::Vocab::MADS.PersonalName, multiple: false
end

@ronan-mch That might be a piece of the puzzle. I was thinking a bit more generically as well, since the library does not require ActiveFedora or Hydra.

Sure. I suppose you could divide it up by use cases? I imagine a lot of
people will be coming to this from the Hydra community, so a section on
Using with ActiveFedora would be useful for them. It was certainly
something I was looking for when I started looking at the repo. Any other
use cases can just be added when they come up.

On Fri, Mar 13, 2015 at 10:00 PM, David Chandek-Stark <
notifications@github.com> wrote:

@ronan-mch https://github.com/ronan-mch That might be a piece of the
puzzle. I was thinking a bit more generically as well, since the library
does not require ActiveFedora or Hydra.


Reply to this email directly or view it on GitHub
#33 (comment)
.

I've added that example above. I'll add the docs about creating your own vocab another time.

Excellent! Much appreciated.

Thanks to @ronan-mch for getting this started. Please add/update/revise as you are so moved @acoburn @mjgiarlo @jcoyne.