public static String generateSubclassPattern ( URI origin , URI destination ) { return new StringBuilder ( ) . append ( sparqlWrapUri ( destination ) ) . append ( " " ) . append ( sparqlWrapUri ( RDFS . subClassOf . getURI ( ) ) ) . append ( "+ " ) . append ( sparqlWrapUri ( origin ) ) . append ( " ." ) . toString ( ) ; }
Generate a pattern for checking if destination is a subclass of origin