From: <Jen...@us...> - 2008-08-19 09:58:27
|
Revision: 1098 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1098&view=rev Author: JensLehmann Date: 2008-08-19 09:58:22 +0000 (Tue, 19 Aug 2008) Log Message: ----------- updated PHP example to show how to ignore a concept Modified Paths: -------------- trunk/src/php-examples/LearningSimple.php Modified: trunk/src/php-examples/LearningSimple.php =================================================================== --- trunk/src/php-examples/LearningSimple.php 2008-08-18 20:35:55 UTC (rev 1097) +++ trunk/src/php-examples/LearningSimple.php 2008-08-19 09:58:22 UTC (rev 1098) @@ -42,7 +42,7 @@ // load owl file in DIG reasoner (you need a running DIG reasoner) $id = $client->generateID(); $ksID = $client->addKnowledgeSource($id, "owlfile", $ontology); -$rID = $client->setReasoner($id, "owlapi"); +$rID = $client->setReasoner($id, "fastInstanceChecker"); // create a learning problem $posExamples = array('http://example.com/father#stefan', @@ -56,7 +56,9 @@ $client->setNegativeExamples($id, $negExamples); // choose refinement operator approach -$client->setLearningAlgorithm($id, "refinement"); +$la_id = $client->setLearningAlgorithm($id, "refexamples"); +// you can add the following to apply a config option to a component, e.g. ignore a concept +$client->applyConfigEntryStringArray($id, $la_id, "ignoredConcepts", array('http://example.com/father#female')); $client->initAll($id); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |