public final class ClosureHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.stanbol.contenthub.servicesapi.search.related.RelatedKeyword> |
computeClassClosure(String classURI,
int maxDepth,
double initialScore,
double degradingCoefficient,
String keyword,
List<org.apache.stanbol.contenthub.servicesapi.search.related.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,
String keyword,
List<org.apache.stanbol.contenthub.servicesapi.search.related.RelatedKeyword> relatedKeywords) |
void |
computeIndividualClosure(String individualURI,
int maxDepth,
double initialScore,
double degradingCoefficient,
String keyword,
List<org.apache.stanbol.contenthub.servicesapi.search.related.RelatedKeyword> relatedKeywords) |
static String |
cropFileExtensionFromKeyword(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) |
public static ClosureHelper getInstance(com.hp.hpl.jena.ontology.OntModel userOntology)
public List<org.apache.stanbol.contenthub.servicesapi.search.related.RelatedKeyword> computeClassClosure(String classURI, int maxDepth, double initialScore, double degradingCoefficient, String keyword, List<org.apache.stanbol.contenthub.servicesapi.search.related.RelatedKeyword> relatedKeywords)
public final void computeIndividualClosure(String individualURI, int maxDepth, double initialScore, double degradingCoefficient, String keyword, List<org.apache.stanbol.contenthub.servicesapi.search.related.RelatedKeyword> relatedKeywords)
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,
String keyword,
List<org.apache.stanbol.contenthub.servicesapi.search.related.RelatedKeyword> relatedKeywords)
Copyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.