return createURIReference(uri, true);
}
public URIReference createURIReference(URI uri, boolean validate) throws GraphElementFactoryException {
if (null == uri) {
throw new GraphElementFactoryException("URI may not be null for a URIReference");
}
if (validate) {
validateURI(uri);
}
return getLocalURIReference(uri, validate);