Search Mailing List Archives
[bioontology-support] error creating a group
Michael Dorf
mdorf at stanford.edu
Fri Oct 7 12:36:12 PDT 2016
You can delete a group by running:
[1] pry(main)> group = LinkedData::Models::Group.find("UMLS").first
=> #<LinkedData::Models::Group:0x007fcc8e0136e8
@aggregates=nil,
@id=#<RDF::URI:0x3fe647009db8(http://data.bioontology.org/groups/UMLS)>,
@loaded_attributes=#<Set: {}>,
@modified_attributes=#<Set: {}>,
@persistent=true,
@previous_values=nil,
@unmapped=nil>
[2] pry(main)> group.delete
By "accents" do you mean single quotes? I believe you can, but you can always verify it by trying to save a group with a single quote in the name and look up the error collection in case the save fails.
Michael
On Oct 7, 2016, at 12:19, Michael Dorf <mdorf at stanford.edu<mailto:mdorf at stanford.edu>> wrote:
Hi Guadalupe,
Thanks again for reaching out. Can I please ask you to direct further correspondence to support at bioontology.org<mailto:support at bioontology.org> instead of my personal mailbox? The support mailbox is monitored by all our engineers, and it's a more reliable place to get help quickly.
As to your issue, there's a line in your screenshot that says:
pry(main)> group.name = acronym = "Des_Ca_Ge"
I think what you mean to do is:
pry(main)> group.acronym = "Des_Ca_Ge"
Also, if you are getting an error while saving a persistent object, you can always look at the "errors" collection to see why your save operation is failing:
pry(main)> group.errors
Hope this helps!
Michael
On Oct 7, 2016, at 12:09, Guadalupe Candia Zavaleta <gcandia at cenidet.edu.mx<mailto:gcandia at cenidet.edu.mx>> wrote:
Hello Michael
I am trying to create a group and at the time of writing the command group.save
marks an error on line 331 of file resource.rb. Could you help me succeed in creating a group? Annex an image the error that marks me.
I have others questions, How I can delete a category and a group? and
is there any way put in accents in the category names?
Thank in advance for your attention
Guadalupe
<crear grupo.jpg>
<crear grupo.jpeg>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20161007/71723ed9/attachment.html>
More information about the bioontology-support
mailing list