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 - Author:
- cjm
-
-
Constructor Summary
Constructors Constructor Description AbstractGraphDocument()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ObjectgetContext()The JSON-LD context for this document.abstract List<Graph>getGraphs()abstract MetagetMeta()
-
-
-
Method Detail
-
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
-
-