/** * Set the current graph in which to add new statements to the supplied named graph. This method clears * the current subject. * * @param namedGraph * a named graph identifier. This can be defined either as a prefixed name string (e.g. "ex:john"), * or as a full IRI (e.g. "http://example.org/john"). If supplied as a prefixed name, the * {@link ModelBuilder} will need to have a namespace mapping for the prefix. * @return this {@link ModelBuilder} */ public ModelBuilder namedGraph(String prefixedNameOrIRI) { return namedGraph(mapToIRI(prefixedNameOrIRI)); }
/** * Set the current graph in which to add new statements to the supplied named graph. This method clears * the current subject. * * @param namedGraph * a named graph identifier. This can be defined either as a prefixed name string (e.g. "ex:john"), * or as a full IRI (e.g. "http://example.org/john"). If supplied as a prefixed name, the * {@link ModelBuilder} will need to have a namespace mapping for the prefix. * @return this {@link ModelBuilder} */ public ModelBuilder namedGraph(String prefixedNameOrIRI) { return namedGraph(mapToIRI(prefixedNameOrIRI)); }