Class AbstractBiGGAnnotator
java.lang.Object
de.uni_halle.informatik.biodata.mp.annotation.AbstractAnnotator
de.uni_halle.informatik.biodata.mp.annotation.bigg.AbstractBiGGAnnotator
- All Implemented Interfaces:
IReportDiffs
,IReportStatus
- Direct Known Subclasses:
BiGGCompartmentsAnnotator
,BiGGCVTermAnnotator
,BiGGFBCAnnotator
,BiGGFBCSpeciesAnnotator
,BiGGModelAnnotator
,BiGGPublicationsAnnotator
,BiGGSBMLAnnotator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BiGGDB
protected final BiGGAnnotationParameters
protected final Registry
-
Constructor Summary
ConstructorDescriptionAbstractBiGGAnnotator
(BiGGDB bigg, BiGGAnnotationParameters biGGAnnotationParameters, Registry registry) AbstractBiGGAnnotator
(BiGGDB bigg, BiGGAnnotationParameters biGGAnnotationParameters, Registry registry, List<ProgressObserver> observers) -
Method Summary
Methods inherited from class de.uni_halle.informatik.biodata.mp.annotation.AbstractAnnotator
diffReport, getObservers, statusReport
-
Field Details
-
bigg
-
registry
-
biGGAnnotationParameters
-
-
Constructor Details
-
AbstractBiGGAnnotator
public AbstractBiGGAnnotator(BiGGDB bigg, BiGGAnnotationParameters biGGAnnotationParameters, Registry registry) -
AbstractBiGGAnnotator
public AbstractBiGGAnnotator(BiGGDB bigg, BiGGAnnotationParameters biGGAnnotationParameters, Registry registry, List<ProgressObserver> observers)
-
-
Method Details
-
getBiGGIdFromResources
public Optional<BiGGId> getBiGGIdFromResources(List<String> resources, String type) throws SQLException Attempts to extract a BiGG ID that conforms to the BiGG ID specification from the BiGG knowledgebase. This method processes annotations for biological entities such asSpecies
,Reaction
, orGeneProduct
. Each entity's annotations are provided as a list of URIs, which are then parsed to retrieve the BiGG ID.- Parameters:
resources
- A list of URIs containing annotations for the biological entity.type
- The type of the biological entity, which can be one of the following:BiGGDBContract.Constants.TYPE_SPECIES
,BiGGDBContract.Constants.TYPE_REACTION
, orBiGGDBContract.Constants.TYPE_GENE_PRODUCT
.- Returns:
- An
containing the BiGG ID if it could be successfully retrieved, otherwiseOptional.empty()
. - Throws:
SQLException
-