All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nih.nlm.nls.lvg.Db.DbCitation Maven / Gradle / Ivy

The newest version!
package gov.nih.nlm.nls.lvg.Db;
import java.sql.*;
import java.util.*;
/*****************************************************************************
* This class provides high level interfaces to find uninflected term from
* Inflection and CitationLowerCase tables in LVG database.
*
* 

History: *

    *
* * @author NLM NLS Development Team * * @see InflectionRecord * @see * * Desgin Document * * @version V-2010 ****************************************************************************/ public class DbCitation { /** * Get all citation terms from inflection records for a specified term * from LVG database. * * @param inStr term for finding citation term. * @param conn database connection * * @return all citation terms from inflection records for a specified * term * * @exception SQLException if there is a database error happens */ public static Vector GetCitations(String inStr, Connection conn) throws SQLException { // retireve all record by inflected terms Vector out = DbInflectionUtil.GetRecordsByIfTerm(inStr, conn, false); CitationComparator cc = new CitationComparator(); Collections.sort(out, cc); return out; } /** * Get the citation terms from inflection records for a base form * from LVG database. * * @param inStr base form for finding citation term. * @param conn database connection * * @return the citation term from inflection records for a base form * * @exception SQLException if there is a database error happens */ public static Vector GetCitationsFromBase(String inStr, Connection conn) throws SQLException { // retireve all record by inflected terms Vector out = DbInflectionUtil.GetRecordsByIfTermInfl(inStr, 1, conn); CitationComparator cc = new CitationComparator(); Collections.sort(out, cc); return out; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy