org.apache.stanbol.contenthub.search.related.ontologyresource
Class ClosureHelper

java.lang.Object
  extended by org.apache.stanbol.contenthub.search.related.ontologyresource.ClosureHelper

public final class ClosureHelper
extends java.lang.Object

Author:
cihan

Method Summary
 java.util.List<RelatedKeyword> computeClassClosure(java.lang.String classURI, int maxDepth, double initialScore, double degradingCoefficient, java.lang.String keyword, java.util.List<RelatedKeyword> relatedKeywords)
           
 void computeClosureWithProperty(com.hp.hpl.jena.rdf.model.Resource sourceURI, com.hp.hpl.jena.rdf.model.Property subsumptionProperty, int maxDepth, double initialScore, double degradingCoefficient, java.lang.String keyword, java.util.List<RelatedKeyword> relatedKeywords)
           
 void computeIndividualClosure(java.lang.String individualURI, int maxDepth, double initialScore, double degradingCoefficient, java.lang.String keyword, java.util.List<RelatedKeyword> relatedKeywords)
           
static java.lang.String cropFileExtensionFromKeyword(java.lang.String keyword)
          As name of the resources in the CMS Adapter generated ontology would most likely be file names, file extension are cropped using the Apache Commons IO library.
static ClosureHelper getInstance(com.hp.hpl.jena.ontology.OntModel userOntology)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ClosureHelper getInstance(com.hp.hpl.jena.ontology.OntModel userOntology)

computeClassClosure

public java.util.List<RelatedKeyword> computeClassClosure(java.lang.String classURI,
                                                          int maxDepth,
                                                          double initialScore,
                                                          double degradingCoefficient,
                                                          java.lang.String keyword,
                                                          java.util.List<RelatedKeyword> relatedKeywords)

computeIndividualClosure

public final void computeIndividualClosure(java.lang.String individualURI,
                                           int maxDepth,
                                           double initialScore,
                                           double degradingCoefficient,
                                           java.lang.String keyword,
                                           java.util.List<RelatedKeyword> relatedKeywords)

computeClosureWithProperty

public void computeClosureWithProperty(com.hp.hpl.jena.rdf.model.Resource sourceURI,
                                       com.hp.hpl.jena.rdf.model.Property subsumptionProperty,
                                       int maxDepth,
                                       double initialScore,
                                       double degradingCoefficient,
                                       java.lang.String keyword,
                                       java.util.List<RelatedKeyword> relatedKeywords)

cropFileExtensionFromKeyword

public static java.lang.String cropFileExtensionFromKeyword(java.lang.String keyword)
As name of the resources in the CMS Adapter generated ontology would most likely be file names, file extension are cropped using the Apache Commons IO library.



Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.