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

Provide or link to basic vocab usage example(s) #33

Closed dchandekstark closed 9 years ago

ronan-mch commented 9 years ago

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
dchandekstark commented 9 years ago

@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.

ronan-mch commented 9 years ago

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 https://github.com/projecthydra-labs/rdf-vocab/issues/33#issuecomment-79390919 .

dchandekstark commented 9 years ago

@ronan-mch How about putting whatever seems useful to you here: https://github.com/projecthydra-labs/rdf-vocab/wiki/Usage-Examples ?

ronan-mch commented 9 years ago

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

dchandekstark commented 9 years ago

Excellent! Much appreciated.

dchandekstark commented 9 years ago

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