[Biojava-l] ontology exception, addSequence & BioSQLSequenceDB

Matthew Pocock matthew_pocock at yahoo.co.uk
Mon Oct 13 11:19:31 EDT 2003


Hi,

I'm having the same problem. Investigating now. This seems to work for 
me on the 1.3 releases, but not on the devel release.

Matthew

Frederik Decouttere wrote:

>Hi,
>
>Anybody knows why I'm getting this exception:
>
>*** Importing a core ontology -- hope this is okay
>org.biojava.bio.BioError: Unexpected ontology duplication error
>	at
>org.biojava.bio.seq.db.biosql.OntologySQL.addCore(OntologySQL.java:215)
>	at
>org.biojava.bio.seq.db.biosql.OntologySQL.<init>(OntologySQL.java:337)
>	at
>org.biojava.bio.seq.db.biosql.BioSQLSequenceDB.<init>(BioSQLSequenceDB.java:
>176)
>Caused by: org.biojava.ontology.AlreadyExistsException: Ontology
>__core_ontology already contains instance_of(and, predicate)
>	at org.biojava.ontology.Ontology$Impl.addTerm(Ontology.java:333)
>	at
>org.biojava.ontology.Ontology$Impl.createTriple(Ontology.java:483)
>	at
>org.biojava.bio.seq.db.biosql.OntologySQL.addCore(OntologySQL.java:198)
>	... 4 more
>
>
>the code:
>
>Sequence seq = DNATools.createDNASequence("atgctgatgatgatg", "my_dna_1") ;
>BioSQLSequenceDB db = new BioSQLSequenceDB(url, user, pass, biodatabase,
>false);
>db.addSequence(seq) ;
>
>the database:
>I'm using hsqldb 1.7.1 with the schema found in biosqldb-hsqldb.sql
>(biojava-live Main branch from cvs)
>
>
>Thanx
>Frederik
>
>
>_______________________________________________
>Biojava-l mailing list  -  Biojava-l at biojava.org
>http://biojava.org/mailman/listinfo/biojava-l
>
>  
>




More information about the Biojava-l mailing list