Class OntModelGeneratorMetadata

java.lang.Object
org.brapi.schematools.core.ontmodel.metadata.OntModelGeneratorMetadata
All Implemented Interfaces:
Metadata, Validatable

public class OntModelGeneratorMetadata extends Object implements Metadata
Provides metadata for the RDF Graph generation
  • Constructor Details

    • OntModelGeneratorMetadata

      public OntModelGeneratorMetadata()
  • Method Details

    • load

      public static OntModelGeneratorMetadata load()
      Load the default metadata
      Returns:
      The default metadata
    • load

      public static OntModelGeneratorMetadata load(Path metadataFile) throws IOException
      Load the metadata from a metadata file in YAML or Json. The metadata file may have missing (defined) values, in these cases the default values are loaded. See load()
      Parameters:
      metadataFile - The path to the metadata file in YAML or Json.
      Returns:
      The metadata loaded from the YAML or Json file.
      Throws:
      IOException - if the metadata file can not be found or is incorrectly formatted.
    • load

      public static OntModelGeneratorMetadata load(InputStream inputStream) throws IOException
      Load the metadata from a metadata input stream in YAML or Json. The metadata file may have missing (defined) values, in these cases the default values are loaded. See load()
      Parameters:
      inputStream - The input stream in YAML or Json.
      Returns:
      The metadata loaded from input stream.
      Throws:
      IOException - if the input stream is not valid or the content is incorrectly formatted.
    • override

      public OntModelGeneratorMetadata override(OntModelGeneratorMetadata overrideMetadata)
      Overrides the values in this Options Object from the provided Options Object if they are non-null
      Parameters:
      overrideMetadata - the options which will be used to override this Options Object
      Returns:
      this options for method chaining