Class AnnotationsWebService.AnnotationRelationValueObject
- Enclosing class:
AnnotationsWebService
basis is not metadata a client may skip: it is what separates somebody having stated
the fact from our having noticed a co-occurrence. numberOfExperiments is zero for
asserted bases because there is nothing to count, not because there is no evidence, so
sorting on it without reading the basis buries the strongest rows.
- Author:
- tesarst
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBasis()The one-line basis the source gives, meant to be shown as-is --PMID:11242117where MGI cites a paper.The claim the relation licenses, phrased as its own triple rather than left as the stored row for a client to invert.Identity of the CLAIM, for deduplicating a card.SUBJECT_IMPLIES_OBJECT,OBJECT_IMPLIES_SUBJECTorNEITHER.longlonglonglonglonglongHow many distinct subjects this object relates to.doubleASSERTEDorREFUTED— whether the source states this relation holds, or states that it does not.longHow many distinct objects this SUBJECT relates to UNDER THE SAME PREDICATE -- the mirror ofobjectBreadth.TERM_LEVELwhen the relation says what the subject term is or where it came from;EXPERIMENT_LEVELwhen it records how one experiment was run (a dose, a duration, a sample's sex).Identifies the subject/predicate/object triple irrespective of basis, so a client can group the side-by-side rows that one relation legitimately produces.inthashCode()booleanWhether this row stands on its own.toString()
-
Method Details
-
getSubject
-
getSubjectUri
-
getSubjectCategory
-
getSubjectCategoryUri
-
getPredicate
-
getPredicateUri
-
getObject
-
getObjectUri
-
getObjectCategory
-
getObjectCategoryUri
-
getTaxonId
-
getTaxonName
-
getBasis
-
getSource
-
getSourceVersion
-
getNumberOfExperiments
public long getNumberOfExperiments() -
getNumberOfExperimentsAtFactorValue
public long getNumberOfExperimentsAtFactorValue() -
getNumberOfExperimentsAtTag
public long getNumberOfExperimentsAtTag() -
getNumberOfExperimentsAtBioMaterial
public long getNumberOfExperimentsAtBioMaterial() -
getNumberOfExperimentsWithSubject
public long getNumberOfExperimentsWithSubject() -
getObjectBreadth
public long getObjectBreadth()How many distinct subjects this object relates to. High means the object identifies nothing -- it is not a quality judgement, since a dose is a perfectly good statement and a very broad object. -
getSubjectBreadth
public long getSubjectBreadth()How many distinct objects this SUBJECT relates to UNDER THE SAME PREDICATE -- the mirror ofobjectBreadth. High means the term is enumerating a list rather than saying something about itself: aninduced pluripotent stem cell line cellnaming seventeen cell lines it was derived into is a heading, not a fact about the term on the card.🛑 The count was unscoped until 2026-08-27 and read a different number then; filter on it with
maxSubjectBreadth. -
getSpecificity
public double getSpecificity() -
getExampleDatasetId
-
isCorroborated
public boolean isCorroborated()Whether this row stands on its own. False only for a CORPUS row, whose co-occurrence establishes association and nothing more -- and whose supply of evidence stops growing the moment curators stop writing the redundant tag it is derived from. -
getTopicality
TERM_LEVELwhen the relation says what the subject term is or where it came from;EXPERIMENT_LEVELwhen it records how one experiment was run (a dose, a duration, a sample's sex). Both are real curation; only the first belongs on a term card. -
getInferenceDirection
SUBJECT_IMPLIES_OBJECT,OBJECT_IMPLIES_SUBJECTorNEITHER. A relation is readable from both ends and inferable from only one: the store holdsAlzheimer disease --has_genotype--> APP/PS1, and APP/PS1 implies an Alzheimer model while Alzheimer implies nothing about APP/PS1 — not every Alzheimer model is APP/PS1. -
getImpliedSubject
The claim the relation licenses, phrased as its own triple rather than left as the stored row for a client to invert. Null when nothing is implied.Alzheimer disease --has_genotype--> APP/PS1is stored; what follows from it isAPP/PS1 --has role in modeling--> Alzheimer disease. Taxon picks the verb — a human subject getshas disease, because a human line carrying a variant is not modelling the disease, it has it. -
getImpliedSubjectUri
-
getImpliedPredicate
-
getImpliedPredicateUri
-
getImpliedObject
-
getImpliedObjectUri
-
getImpliedTripleKey
Identity of the CLAIM, for deduplicating a card. Two different stored relations can derive one claim --BRCA1 --has disease--> breast cancerandbreast cancer --has_genotype--> BRCA1both yieldBRCA1 has disease breast cancer-- andtripleKey, which identifies the row as stored, cannot group them. Null when the row licenses no claim. -
getStatus
ASSERTEDorREFUTED— whether the source states this relation holds, or states that it does not.Effectively always
ASSERTEDunless the caller asked for refutations, which are excluded by default and never license an inference. Present on every row so a client that does ask cannot mistake one for support. -
getEvidence
The one-line basis the source gives, meant to be shown as-is --PMID:11242117where MGI cites a paper. Null for rows that legitimately have none: an ontology axiom cites nothing, and a corpus co-occurrence is evidence rather than having any. -
getTripleKey
Identifies the subject/predicate/object triple irrespective of basis, so a client can group the side-by-side rows that one relation legitimately produces. Grouping on the rendered labels instead would merge relations that only look alike. -
equals
-
hashCode
-
toString
-