public static String generateSuperclassPattern ( URI origin , String matchVariable ) { return new StringBuilder ( ) . append ( sparqlWrapUri ( origin ) ) . append ( " " ) . append ( sparqlWrapUri ( RDFS . subClassOf . getURI ( ) ) ) . append ( "+ " ) . append ( "?" ) . append ( matchVariable ) . append ( " ." ) . toString ( ) ; }
Generate a pattern for matching var to the superclasses of clazz