org.dllearner.kb.sparql
Class SparqlQueryDescriptionConvertRDFS

java.lang.Object
  extended by org.dllearner.kb.sparql.SparqlQueryDescriptionConvertRDFS

public class SparqlQueryDescriptionConvertRDFS
extends Object

Author:
Sebastian Hellmann Enables RDFS reasoning for the DL2SPARQL class by concept rewriting

Constructor Summary
SparqlQueryDescriptionConvertRDFS()
           
 
Method Summary
static String conceptRewrite(String descriptionKBSyntax, SPARQLTasks st, int maxDepth)
          replaces each String representing a concept in descriptionKBSyntax with a union of the subclasses ex: (c sub b); (b sub a ) then: (a AND b) will be ((a OR b OR c) AND (b OR a))
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparqlQueryDescriptionConvertRDFS

public SparqlQueryDescriptionConvertRDFS()
Method Detail

conceptRewrite

public static String conceptRewrite(String descriptionKBSyntax,
                                    SPARQLTasks st,
                                    int maxDepth)
replaces each String representing a concept in descriptionKBSyntax with a union of the subclasses ex: (c sub b); (b sub a ) then: (a AND b) will be ((a OR b OR c) AND (b OR a))

Parameters:
descriptionKBSyntax -
maxDepth - determines the depth of retrieval, if 1 classes are replaced by direct subclasses only, 1 is HIGHLY RECOMMENDED FOR LARGE HIERARCHIES)
Returns:
the altered String


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