Class SimpleOracle

  • All Implemented Interfaces:
    IOracle

    public class SimpleOracle
    extends Object
    implements IOracle
    This class represents a naive oracle
    Since:
    1.0
    Version:
    1.0
    Author:
    Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), Mofeed Hassan (mounir@informatik.uni-leipzig.de)
    • Constructor Detail

      • SimpleOracle

        public SimpleOracle()
      • SimpleOracle

        public SimpleOracle​(AMapping m)
    • Method Detail

      • ask

        public boolean ask​(String uri1,
                           String uri2)
        check if a pair source-target URIs exist in the oracle
        Specified by:
        ask in interface IOracle
        Parameters:
        uri1 - the source URI
        uri2 - the target URI
        Returns:
        boolean - rue in case of existence otherwise false
      • loadData

        public void loadData​(AMapping m)
        Loads the oracle with the given mapping
        Specified by:
        loadData in interface IOracle
        Parameters:
        m - the source mapping to assign to oracle
      • size

        public int size()
        It returns the size of mapping
        Specified by:
        size in interface IOracle
        Returns:
        int - the size of the mapping
      • getType

        public String getType()
        It returns the type of mapping
        Specified by:
        getType in interface IOracle
        Returns:
        String - teh type of the mapping