Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » libsbml-development » Deleting controlled vocabulary terms or URIs within those terms
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Andreas Dräger


Posts: 273
Registered:
June 2006
Deleting controlled vocabulary terms or URIs within those terms 03 Jun '09 08:47 Go to previous message

Dear all,

I just tried to get rid of unnecessary CVTerms of some instances of SBase in libSBML 3.3.2 in Java. First I tried to apply a function within XMLAttributes to delete some URIs but I recognized that these don't do anything:

String myUnnecessaryURI = "something"; // just an example
XMLAttributes attribute = myCVTerm.getResources();
attribute.remove("rdf:resource", myUnnecessaryURI);

doesn't work. Second, I tried the following:

myCVTerm.removeResource(myUnnecessaryURI);

This method is even deprecated. I don't see any other method to remove any URIs. Furthermore, I didn't find any method in SBase that would allow the programmer to remove just one certain CVTerm. There is a method

unsetCVTerms();

in SBase. But I don't see how one can remove just one single CVTerm. It would be great if someone has an idea of what to do.

Best wishes
Andreas

      

SubjectPosterDate
Read Message   Deleting controlled vocabulary terms or URIs withi...  Andreas Dräger03 Jun '09 08:47
Read Message   Re: Deleting controlled vocabulary terms or URIs w... Sarah Keating03 Jun '09 17:52
Previous Topic:List objects in language bindings
Next Topic:New constructors in libSBML-4
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.