org.dllearner.scripts
Class RoleLearning

java.lang.Object
  extended by org.dllearner.scripts.RoleLearning

public class RoleLearning
extends Object

Here are just some code snippets, which can be used The basic algorithm is simple: input: 1. domain or range 2. number of instances n choose domain or range of a role Positive Examples: get the first n instances of domain or range Negative Examples: get the first n instances of range or domain The Queries can be found in SPARQLqueryType


Constructor Summary
RoleLearning(ReasonerComponent reasoningService)
           
RoleLearning(ReasonerComponent reasoningService, SortedSet<Individual> positiveExamples, SortedSet<Individual> negativeExamples)
           
 
Method Summary
 void fromKnowledgeSource()
           
 Set<String> getDomainInstancesForRole(String role)
           
static String getName()
           
 Set<String> getRangeInstancesForRole(String role)
           
 Set<StringTuple> getTupelsForRole(URI u)
           
 Set<StringTuple> getTupelsForRole(URI u, boolean domain)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleLearning

public RoleLearning(ReasonerComponent reasoningService)

RoleLearning

public RoleLearning(ReasonerComponent reasoningService,
                    SortedSet<Individual> positiveExamples,
                    SortedSet<Individual> negativeExamples)
Method Detail

getName

public static String getName()

getTupelsForRole

public Set<StringTuple> getTupelsForRole(URI u)

getTupelsForRole

public Set<StringTuple> getTupelsForRole(URI u,
                                         boolean domain)

getDomainInstancesForRole

public Set<String> getDomainInstancesForRole(String role)

getRangeInstancesForRole

public Set<String> getRangeInstancesForRole(String role)

fromKnowledgeSource

public void fromKnowledgeSource()


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann