test_class.file: phenol-io/src/test/java/org/monarchinitiative/phenol/io/obographs/OboGraphDocumentAdaptorTest.java
test_class.identifier: OboGraphDocumentAdaptorTest
test_case.body: @Test
    void throwsExceptionWhenUnknownFilterIdSupplied() {
  
      Node root = new Node.Builder()
        .id("http://purl.obolibrary.org/obo/HP_0000001")
        .label("root")
        .type(Node.RDFTYPES.CLASS)
        .build();
  
      Node unknown = new Node.Builder()
        .id("http://wibble.org/WIBBLE_0000000")
        .label("They have no word for 'fluffy'")
        .type(Node.RDFTYPES.CLASS)
        .build();
  
      List<Node> nodes = ImmutableList.of(root, unknown);
  
      Edge edge = new Edge.Builder().sub(unknown.getId()).pred("is_a").obj(root.getId()).build();
      List<Edge> edges = ImmutableList.of(edge);
  
      Graph graph = new Graph.Builder().nodes(nodes).edges(edges).build();
      GraphDocument graphDocument = new GraphDocument.Builder().graphs(ImmutableList.of(graph)).build();
  
      // WIBBLE id prefix is not in the default list, so add it here so that nodes and edges with this idspace are included
      CurieUtil curieUtil = CurieUtilBuilder.withDefaultsAnd(ImmutableMap.of("WIBBLE", "http://wibble.org/WIBBLE_"));
  
      assertThrows(PhenolRuntimeException.class,
        () -> OboGraphDocumentAdaptor.builder()
        .curieUtil(curieUtil)
        .wantedTermIdPrefixes(ImmutableSet.of("FROOD"))
        .build(graphDocument),
        "Unable to filter terms for prefix(s) [FROOD] as these not mapped. Add the mapping to CurieUtil.");
    }
test_case.class_method_signature: OboGraphDocumentAdaptorTest.throwsExceptionWhenUnknownFilterIdSupplied()
test_case.full_signature: @Test void throwsExceptionWhenUnknownFilterIdSupplied()
test_case.identifier: throwsExceptionWhenUnknownFilterIdSupplied
test_case.invocations: build type label id build type label id of build obj pred sub getId getId of build edges nodes build graphs of withDefaultsAnd of assertThrows build wantedTermIdPrefixes curieUtil builder of
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void throwsExceptionWhenUnknownFilterIdSupplied()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(OboGraphDocumentAdaptor.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(OboGraphDocumentAdaptor.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: metaInfo
focal_class.modifier: private final
focal_class.original_string: private final Map<String, String> metaInfo;
focal_class.type: Map<String, String>
focal_class.var_name: metaInfo
focal_class.declarator: terms
focal_class.modifier: private final
focal_class.original_string: private final List<Term> terms;
focal_class.type: List<Term>
focal_class.var_name: terms
focal_class.declarator: relationships
focal_class.modifier: private final
focal_class.original_string: private final List<Relationship> relationships;
focal_class.type: List<Relationship>
focal_class.var_name: relationships
focal_class.file: phenol-io/src/main/java/org/monarchinitiative/phenol/io/obographs/OboGraphDocumentAdaptor.java
focal_class.identifier: OboGraphDocumentAdaptor
focal_class.class_method_signature: OboGraphDocumentAdaptor.OboGraphDocumentAdaptor(Builder builder)
focal_class.full_signature: private  OboGraphDocumentAdaptor(Builder builder)
focal_class.identifier: OboGraphDocumentAdaptor
focal_class.modifiers: private
focal_class.parameters: (Builder builder)
focal_class.signature:  OboGraphDocumentAdaptor(Builder builder)
focal_class.class_method_signature: OboGraphDocumentAdaptor.getMetaInfo()
focal_class.full_signature: public Map<String, String> getMetaInfo()
focal_class.identifier: getMetaInfo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getMetaInfo()
focal_class.class_method_signature: OboGraphDocumentAdaptor.getTerms()
focal_class.full_signature: public List<Term> getTerms()
focal_class.identifier: getTerms
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Term>
focal_class.signature: List<Term> getTerms()
focal_class.class_method_signature: OboGraphDocumentAdaptor.getRelationships()
focal_class.full_signature: public List<Relationship> getRelationships()
focal_class.identifier: getRelationships
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Relationship>
focal_class.signature: List<Relationship> getRelationships()
focal_class.class_method_signature: OboGraphDocumentAdaptor.buildOntology()
focal_class.full_signature: public Ontology buildOntology()
focal_class.identifier: buildOntology
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Ontology
focal_class.signature: Ontology buildOntology()
focal_class.class_method_signature: OboGraphDocumentAdaptor.builder()
focal_class.full_signature: public static Builder builder()
focal_class.identifier: builder
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Builder
focal_class.signature: Builder builder()
focal_method.body: public static Builder builder() {
      return new Builder();
    }
focal_method.class_method_signature: OboGraphDocumentAdaptor.builder()
focal_method.full_signature: public static Builder builder()
focal_method.identifier: builder
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: Builder
focal_method.signature: Builder builder()