/** * Set the subject about which statements are to be added to the model, defined by a prefixed name or an * IRI reference. * * @param subject * the subject resource about which statements are to be added. 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 the {@link ModelBuilder} */ public ModelBuilder subject(String prefixedNameOrIri) { return subject(mapToIRI(prefixedNameOrIri)); }
/** * Set the subject about which statements are to be added to the model, defined by a prefixed name or an * IRI reference. * * @param subject * the subject resource about which statements are to be added. 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 the {@link ModelBuilder} */ public ModelBuilder subject(String prefixedNameOrIri) { return subject(mapToIRI(prefixedNameOrIri)); }