org.dllearner.kb.sparql
Class SparqlQueryDescriptionConvertRDFS
java.lang.Object
org.dllearner.kb.sparql.SparqlQueryDescriptionConvertRDFS
public class SparqlQueryDescriptionConvertRDFS
- extends Object
- Author:
- Sebastian Hellmann
Enables RDFS reasoning for the DL2SPARQL class
by concept rewriting
|
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)) |
SparqlQueryDescriptionConvertRDFS
public SparqlQueryDescriptionConvertRDFS()
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
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann