org.dllearner.scripts
Class RoleLearning
java.lang.Object
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
RoleLearning
public RoleLearning(ReasonerComponent reasoningService)
RoleLearning
public RoleLearning(ReasonerComponent reasoningService,
SortedSet<Individual> positiveExamples,
SortedSet<Individual> negativeExamples)
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()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann