After having downloaded and unzipped the latest DL-Learner release you will find the following executables in the bin/
folder:
user@host:dllearner $ ls -1 bin/
cli
cli.bat
enrichment
enrichment.bat
The cli
script (or the cli.bat
Windows version) is the main command line interface to run learning tasks with the DL-Learner framework. The script takes a configuration file as argument and starts the configured learning algorithm. The DL-Learner release already contains a collection of examples. You can find them in the examples/
folder. To run the father example you can type
user@host:dllearner $ bin/cli examples/father.conf
or on Windows
> bin/cli.bat examples/father.conf
The output should contain a list of the best learned class expressions like the one below.
1: male and (hasChild some Thing) (pred. acc.: 100.00%, F-measure: 100.00%)
2: (not (female)) and (hasChild some Thing) (pred. acc.: 100.00%, F-measure: 100.00%)
3: male and (hasChild some (female or male)) (pred. acc.: 100.00%, F-measure: 100.00%)
4: male and (female or (hasChild some Thing)) (pred. acc.: 100.00%, F-measure: 100.00%)
5: (not (female)) and (hasChild some (female or male)) (pred. acc.: 100.00%, F-measure: 100.00%)
6: (female or (hasChild some Thing)) and (not (female)) (pred. acc.: 100.00%, F-measure: 100.00%)
7: male and (hasChild some (male or (not (male)))) (pred. acc.: 100.00%, F-measure: 100.00%)
8: male and (hasChild some (female or (not (female)))) (pred. acc.: 100.00%, F-measure: 100.00%)
9: male and ((not (male)) or (hasChild some Thing)) (pred. acc.: 100.00%, F-measure: 100.00%)
10: male and (hasChild some (hasChild only (female or male))) (pred. acc.: 100.00%, F-measure: 100.00%)
If you see a similar output then DL-Learner is working.
The second executable in the bin/
folder is the enrichment
script (or enrichment.bat
for the Windows operating system). This script infers new schema axioms based on the instance data of a given SPARQL endpoint. The enrichment can be performed for a particular resource (i.e. a class or a property) or for the whole dataset. To get suggestions for new schema axioms concerning the property <http://dbpedia.org/ontology/currency> you would run
user@host:dllearner $ bin/enrichment -e http://dbpedia.org/sparql -g http://dbpedia.org -r http://dbpedia.org/ontology/currency
We recommend to read the manual when using DL-Learner for the first time.