Class AMapper

    • Constructor Detail

      • AMapper

        public AMapper()
    • Method Detail

      • getValueToUriMap

        protected Map<String,​Set<String>> getValueToUriMap​(ACache cache,
                                                                 String property)
        Helper method, re-factored from common setup code of Mappers.
        Parameters:
        cache - , Input cache
        property - , Input linking property
        Returns:
        reversed Map from literal values to resource uris for a specified property
      • getUriToUriMapping

        protected AMapping getUriToUriMapping​(Map<String,​Map<String,​Double>> valueMap,
                                              Map<String,​Set<String>> sourceValueToUriMap,
                                              Map<String,​Set<String>> targetValueToUriMap,
                                              boolean swapped)
        Helper method, re-factored from common return code blocks.
        Parameters:
        valueMap - Mapping from values to values with similarity score
        sourceValueToUriMap - ValueToUriMap constructed from a source cache
        targetValueToUriMap - ValueToUriMap constructed from a target cache
        swapped - True if source and target have been swapped in the valueMap
        Returns:
        Mapping from source resource uri to target resource uri
      • setNo

        public void setNo​(int no)
        Specified by:
        setNo in interface IMapper