예제 #1
0
    def write_to_db(self, a_cursor):
        insert_ignoring_dups(self, a_cursor, self.id)

        #---- write contained objects to database ----#
        #---- write the subcorpus table to db ----#
        for a_subcorpus in self.subcorpus_hash.values():
            a_subcorpus.write_to_db(a_cursor)

        self.write_type_tables_to_db(a_cursor)
예제 #2
0
    def write_to_db(self, a_cursor):

        insert_ignoring_dups(on.corpora.ontology.concept.sql_insert_statement, a_cursor,
                             self.id, self.spid, self.fid, self.name, self.commentary, "pool")

        # write other features, relations and parents to the db
        self.write_parents_to_db(a_cursor)
        self.write_relations_to_db(a_cursor)
        self.write_senses_to_db(a_cursor)
예제 #3
0
    def write_to_db(self, a_cursor):

        insert_ignoring_dups(self, a_cursor, self.id, self.spid, self.fid, self.name, " ".join(self.commentaries), "concept")


        # write other features, relations and parents to the db
        self.write_parents_to_db(a_cursor)
        self.write_relations_to_db(a_cursor)
        self.write_features_to_db(a_cursor)
예제 #4
0
    def write_to_db(self, a_cursor):

        insert_ignoring_dups(on.corpora.ontology.concept.sql_insert_statement, a_cursor,
                             self.id, self.spid, self.fid, self.name, self.commentary, "pool")

        # write other features, relations and parents to the db
        self.write_parents_to_db(a_cursor)
        self.write_relations_to_db(a_cursor)
        self.write_senses_to_db(a_cursor)
예제 #5
0
    def write_to_db(self, a_cursor):

        insert_ignoring_dups(self, a_cursor, self.id, self.spid, self.fid, self.name, " ".join(self.commentaries), "concept")


        # write other features, relations and parents to the db
        self.write_parents_to_db(a_cursor)
        self.write_relations_to_db(a_cursor)
        self.write_features_to_db(a_cursor)
예제 #6
0
    def write_to_db(self, a_cursor):
        insert_ignoring_dups(self, a_cursor, self.id)

        #---- write contained objects to database ----#
        #---- write the subcorpus table to db ----#
        for a_subcorpus in self.subcorpus_hash.itervalues():
            a_subcorpus.write_to_db(a_cursor)

        self.write_type_tables_to_db(a_cursor)