Class YamlOntologyProvider

java.lang.Object
io.github.webbasedwodt.DTDManager.impl.YamlOntologyProvider

public final class YamlOntologyProvider extends Object
YamlOntologyHandler reads a YAML file containing Ontology information and provides methods to access the parsed content.
  • Constructor Details

    • YamlOntologyProvider

      public YamlOntologyProvider(String yamlFileName)
      Constructor that takes the name of a YAML file and parses its content.
      Parameters:
      yamlFileName - the yaml config file path
  • Method Details

    • getDigitalTwinType

      public Optional<String> getDigitalTwinType()
      Returns the Digital Twin Type from the YAML file.
      Returns:
      an optional with the digital twin type
    • getProperties

      public List<Optional<Map<String,String>>> getProperties()
      Returns the properties and relationships defined in the YAML file.
      Returns:
      a list of optional property configurations
    • getActions

      public List<Optional<Map<String,String>>> getActions()
      Returns the actions defined in the YAML file.
      Returns:
      a list of optional action configurations
    • getEvents

      public List<Optional<Map<String,String>>> getEvents()
      Returns the events defined in the YAML file.
      Returns:
      a list of optional event configurations