Interface AspectMetaModelResourceResolver


  • public interface AspectMetaModelResourceResolver
    Provides functionality to resolve Aspect Meta Model resources which reside in the classpath.
    • Method Detail

      • mergeMetaModelIntoRawModel

        io.vavr.control.Try<VersionedModel> mergeMetaModelIntoRawModel​(org.apache.jena.rdf.model.Model rawModel,
                                                                       VersionNumber version)
        Returns the VersionedModel for a loaded raw Aspect model that includes the given rawModeland the model which is the rawModel merged with the corresponding meta model
        Parameters:
        rawModel - The given raw Aspect model
        version - The meta model version the model corresponds to
        Returns:
        the VersionedModel containing the model, meta model version and raw model
      • listAspectStatements

        Stream<org.apache.jena.rdf.model.Statement> listAspectStatements​(org.apache.jena.rdf.model.Model sourceModel,
                                                                         org.apache.jena.rdf.model.Model target)
        Provides the Aspect statements based on the specific BAMM Meta Model version
        Parameters:
        sourceModel - the source model
        target - the target model
        Returns:
        stream of statements
      • getUsedMetaModelVersions

        Set<VersionNumber> getUsedMetaModelVersions​(org.apache.jena.rdf.model.Model model)
        Retrieves the set of meta model versions used in a model
        Parameters:
        model - the model
        Returns:
        the set of meta model versions