public static String generateLabelPattern ( String var , String labelVar ) { return new StringBuilder ( ) . append ( "?" ) . append ( var ) . append ( " " ) . append ( sparqlWrapUri ( RDFS . label . getURI ( ) ) ) . append ( " " ) . append ( "?" ) . append ( labelVar ) . append ( ". " ) . toString ( ) ; }
Generate a pattern for binding to a label