public class ClassBasedSampleGenerator extends InstanceBasedSampleGenerator
AbstractSampleGenerator.SampleGeneratorProgressMonitor| Constructor and Description |
|---|
ClassBasedSampleGenerator(SparqlEndpointKS ks) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.semanticweb.owlapi.model.OWLIndividual> |
getNegativeExamples() |
Set<org.semanticweb.owlapi.model.OWLIndividual> |
getPositiveExamples() |
org.semanticweb.owlapi.model.OWLOntology |
getSample(org.semanticweb.owlapi.model.OWLClass cls)
Computes a sample fragment of the knowledge base by using instances of the
given OWL class and also, if enabled, use some instances that do not belong to the class.
|
static void |
main(String[] args) |
void |
setMaxNrOfNegExamples(int maxNrOfNegExamples) |
void |
setMaxNrOfPosExamples(int maxNrOfPosExamples) |
void |
setSeed(long seed)
The examples for the sample are chosen randomly, thus, the seed for shuffling can be set here.
|
void |
setUseNegExamples(boolean useNegExamples) |
addAllowedClassNamespaces, addAllowedObjectNamespaces, addAllowedPropertyNamespaces, addIgnoredClasses, addIgnoredProperties, addPostProcessor, getSample, getSampleDepth, progressMonitors, setLoadRelatedSchema, setSampleDepthequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProgressMonitor, removeProgressMonitorpublic ClassBasedSampleGenerator(SparqlEndpointKS ks)
public org.semanticweb.owlapi.model.OWLOntology getSample(org.semanticweb.owlapi.model.OWLClass cls)
cls - the OWL classpublic void setMaxNrOfPosExamples(int maxNrOfPosExamples)
maxNrOfPosExamples - the max. number of pos. examples used for samplingpublic void setMaxNrOfNegExamples(int maxNrOfNegExamples)
maxNrOfNegExamples - the max. number of neg. examples used for samplingpublic void setUseNegExamples(boolean useNegExamples)
useNegExamples - whether to use negative examples or notpublic Set<org.semanticweb.owlapi.model.OWLIndividual> getPositiveExamples()
public Set<org.semanticweb.owlapi.model.OWLIndividual> getNegativeExamples()
public void setSeed(long seed)
seed - the seedRandom.setSeed(long)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann