sparqlGraphLibrary/src/main/java/com/ge/research/semtk/belmont/ValueConstraint.java
public static String buildBestSubclassConstraint(String sparqlId, String className, ArrayList<String> subclassList, SparqlEndpointInterface sei) throws Exception {
		switch (sei.getServerType()) {
		case SparqlEndpointInterface.BLAZEGRAPH_SERVER:
			return sparqlId + " rdfs:subClassOf* " +  className;
					
		case SparqlEndpointInterface.NEPTUNE_SERVER:
		case SparqlEndpointInterface.FUSEKI_SERVER:
		case SparqlEndpointInterface.VIRTUOSO_SERVER:
		default:
			ArrayList<String> classList = new ArrayList<String>();
			classList.add(className);
			classList.addAll(subclassList);
			return buildValuesConstraint(sparqlId, classList, XSDSupportedType.NODE_URI, sei);
		}
	}
/**
	 * Special case of best list.  Blazegraph like subclassof* better than VALUES { }
	 * @param sparqlId
	 * @param className
	 * @param subclassList
	 * @param sei
	 * @return
	 * @throws Exception
	 */
Special case of best list.
Special case of best list .
public static String buildBestSubclassConstraint(String sparqlId, String className, ArrayList<String> subclassList, SparqlEndpointInterface sei) throws Exception {
		switch (sei.getServerType()) {
		case SparqlEndpointInterface.BLAZEGRAPH_SERVER:
			return sparqlId + " rdfs:subClassOf* " +  className;
		case SparqlEndpointInterface.NEPTUNE_SERVER:
		case SparqlEndpointInterface.FUSEKI_SERVER:
		case SparqlEndpointInterface.VIRTUOSO_SERVER:
		default:
			ArrayList<String> classList = new ArrayList<String>();
			classList.add(className);
			classList.addAll(subclassList);
			return buildValuesConstraint(sparqlId, classList, XSDSupportedType.NODE_URI, sei);
		}
	}
public static String buildBestSubclassConstraint ( String sparqlId , String className , ArrayList < String > subclassList , SparqlEndpointInterface sei ) throws Exception { switch ( sei . getServerType ( ) ) { case SparqlEndpointInterface . BLAZEGRAPH_SERVER : return sparqlId + " rdfs:subClassOf* " + className ; case SparqlEndpointInterface . NEPTUNE_SERVER : case SparqlEndpointInterface . FUSEKI_SERVER : case SparqlEndpointInterface . VIRTUOSO_SERVER : default : ArrayList < String > classList = new ArrayList < String > ( ) ; classList . add ( className ) ; classList . addAll ( subclassList ) ; return buildValuesConstraint ( sparqlId , classList , XSDSupportedType . NODE_URI , sei ) ; } }
Special case of best list.
Special case of best list .