Package ubic.gemma.core.ontology
Class FactorValueOntologyUtils
java.lang.Object
ubic.gemma.core.ontology.FactorValueOntologyUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a mapping of annotation IDs to annotations for a FactorValue.static String
Obtain a suitable ontology ID for a given factor value ID.static String
getUri
(FactorValue factorValue) Obtain a suitable ontology ID for a given factor value.static boolean
isAnnotationUri
(String uri) Check if a URI refers to an annotation of a factor value.static Long
Extract a factor value ID from a factor value URI.static <E extends Throwable>
voidvisitCharacteristics
(Long factorValueId, Collection<StatementValueObject> statements, FactorValueOntologyUtils.StatementVisitor<String, E> visitor) Visit the characteristics of a FactorValue and generate their annotation IDs.static <E extends Throwable>
voidvisitStatements
(Long factorValueId, Collection<StatementValueObject> statements, FactorValueOntologyUtils.StatementVisitor<FactorValueOntologyUtils.AnnotationIds, E> visitor) Visit the statements of a FactorValue and generate their annotation IDs.
-
Constructor Details
-
FactorValueOntologyUtils
public FactorValueOntologyUtils()
-
-
Method Details
-
getUri
Obtain a suitable ontology ID for a given factor value ID. -
getUri
Obtain a suitable ontology ID for a given factor value. -
parseUri
Extract a factor value ID from a factor value URI. -
isAnnotationUri
Check if a URI refers to an annotation of a factor value. -
visitCharacteristics
public static <E extends Throwable> void visitCharacteristics(Long factorValueId, Collection<StatementValueObject> statements, FactorValueOntologyUtils.StatementVisitor<String, E> visitor) throws EVisit the characteristics of a FactorValue and generate their annotation IDs.Characteristics also include subject-only statements.
- Throws:
E
-
visitStatements
public static <E extends Throwable> void visitStatements(Long factorValueId, Collection<StatementValueObject> statements, FactorValueOntologyUtils.StatementVisitor<FactorValueOntologyUtils.AnnotationIds, E> visitor) throws EVisit the statements of a FactorValue and generate their annotation IDs.- Throws:
E
-
getAnnotationsById
Create a mapping of annotation IDs to annotations for a FactorValue.
-