code: public static IRI getDefaultProfile(final RDFSyntax syntax, final IRI identifier,
              final String defaultJsonLdProfile) {
          if (RDFA.equals(syntax)) {
              return identifier;
          } else if (defaultJsonLdProfile != null) {
              return rdf.createIRI(defaultJsonLdProfile);
          }
          return compacted;
      }
docs: Get a default profile IRI from the syntax and/or identifier.
  
  @param syntax the RDF syntax
  @param identifier the resource identifier
  @param defaultJsonLdProfile a user-supplied default
  @return a profile IRI usable by the output streamer