java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.addnegatives.RandomSampleOntModel

public class RandomSampleOntModel
extends Object
This helper class is used to randomly sample resources from an OntModel. When created, it will retrieve all instances, classes and properties and keep them in memory.
  • Field Details

  • Constructor Details

    • RandomSampleOntModel

      public RandomSampleOntModel​(org.apache.jena.ontology.OntModel m, Random rnd)
    • RandomSampleOntModel

      public RandomSampleOntModel​(org.apache.jena.ontology.OntModel m)
    • RandomSampleOntModel

      public RandomSampleOntModel​(org.apache.jena.ontology.OntModel m, long seed)
  • Method Details

    • getRandomElement

      public String getRandomElement()
    • getGlobalSampler

      public RandomSampleSet<String> getGlobalSampler()
    • getSampler

      public RandomSampleSet<String> getSampler​(ConceptType type)
    • getUriSet

      private static Set<String> getUriSet​(org.apache.jena.util.iterator.ExtendedIterator<? extends org.apache.jena.ontology.OntResource> iterator)