Class YamlOntologyProvider
java.lang.Object
io.github.webbasedwodt.DTDManager.impl.YamlOntologyProvider
YamlOntologyHandler reads a YAML file containing Ontology information
and provides methods to access the parsed content.
-
Constructor Summary
ConstructorsConstructorDescriptionYamlOntologyProvider
(String yamlFileName) Constructor that takes the name of a YAML file and parses its content. -
Method Summary
Modifier and TypeMethodDescriptionReturns the actions defined in the YAML file.Returns the Digital Twin Type from the YAML file.Returns the events defined in the YAML file.Returns the properties and relationships defined in the YAML file.
-
Constructor Details
-
YamlOntologyProvider
Constructor that takes the name of a YAML file and parses its content.- Parameters:
yamlFileName
- the yaml config file path
-
-
Method Details
-
getDigitalTwinType
Returns the Digital Twin Type from the YAML file.- Returns:
- an optional with the digital twin type
-
getProperties
Returns the properties and relationships defined in the YAML file.- Returns:
- a list of optional property configurations
-
getActions
Returns the actions defined in the YAML file.- Returns:
- a list of optional action configurations
-
getEvents
Returns the events defined in the YAML file.- Returns:
- a list of optional event configurations
-