edu.cmu.sv.domain.ontology.QueryFragment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yoda Show documentation
Show all versions of yoda Show documentation
A library that allows rapid prototyping of dialog systems (language understanding, discourse modelling, dialog management, language generation).
package edu.cmu.sv.domain.ontology;
/**
* Created by David Cohen on 6/16/15.
*/
public interface QueryFragment {
// /*
// * Return a query fragment that binds the transient quality to ?transient_quality
// * (based on some non-transient information)
// *
// * The transient quality must be in the range (0-1) if it can be determined.
// *
// * DO NOT USE THE FOLLOWING VARIABLES:
// * ?x
// * ?fuzzy_mapped_quality
// *
// * The input list should be able to contain either variables: ?XXX or URIs:
// * */
// java.util.function.Function, String> getQualityCalculatorSPARQLQuery();
String getResolutionSparqlQueryFragment(String firstArgument, String secondArgument, String resultVariable);
default String getDegreeMatchSparqlQueryFragment(String firstArgument, String secondArgument, String resultVariable){
return getResolutionSparqlQueryFragment(firstArgument, secondArgument, resultVariable);
}
}