Class AbstractGraphDocument

java.lang.Object
org.geneontology.obographs.core.model.AbstractGraphDocument
Direct Known Subclasses:
GraphDocument

@Immutable public abstract class AbstractGraphDocument extends Object
Holds a collection of graphs, plus document-level metadata ## Model ![Node UML](graphdocument.png)
Author:
cjm
  • Constructor Details

    • AbstractGraphDocument

      public AbstractGraphDocument()
  • Method Details

    • getContext

      @Nullable public abstract Object getContext()
      The JSON-LD context for this document. This needs to be an unstructured Object, since it could be either a list or a map. We don't want to store it here as a Context because we want to roundtrip it the way it is written in the document.
    • getMeta

      @Nullable public abstract Meta getMeta()
      Returns:
      the meta
    • getGraphs

      public abstract List<Graph> getGraphs()
      Returns:
      the graphs