Class DefaultClassMapper

  • All Implemented Interfaces:
    OntologyClassMapper

    public class DefaultClassMapper
    extends Object
    implements OntologyClassMapper
    Tries to map the classes out of two SPARQL endpoints via stable marriages
    Author:
    ngonga, Klaus Lyko
    • Field Detail

      • LIMIT

        public int LIMIT
    • Constructor Detail

      • DefaultClassMapper

        public DefaultClassMapper()
      • DefaultClassMapper

        public DefaultClassMapper​(org.apache.jena.rdf.model.Model sourceModel,
                                  org.apache.jena.rdf.model.Model targetModel)
      • DefaultClassMapper

        public DefaultClassMapper​(int limit)
    • Method Detail

      • getSourceModel

        public org.apache.jena.rdf.model.Model getSourceModel()
      • setSourceModel

        public void setSourceModel​(org.apache.jena.rdf.model.Model sourceModel)
      • getTargetModel

        public org.apache.jena.rdf.model.Model getTargetModel()
      • setTargetModel

        public void setTargetModel​(org.apache.jena.rdf.model.Model targetModel)
      • getMappingClasses

        public AMapping getMappingClasses​(String endpoint1,
                                          String endpoint2,
                                          String namespace1,
                                          String namespace2)
        Computes mapping between classes in two given endpoints by using the owl:sameAs links. If no such links exists between the two endpoints, the fallback solution is used
        Parameters:
        endpoint1 - Source endpoint for the class mapping
        endpoint2 - Target endpoint for the class mapping
        namespace1 - Namespace for the source endpoint
        namespace2 - Namespace for the target endpoint
        Returns:
        Mapping of classes from source to target weighted with number of owl:sameAs links or fallback weight based on matching properties
      • getMonoDirectionalMapFallback

        public AMapping getMonoDirectionalMapFallback​(String endpoint1,
                                                      String endpoint2,
                                                      String namespace1,
                                                      String namespace2)
      • main

        public static void main​(String[] args)
      • isNumeric

        public static boolean isNumeric​(String input)