Get the URI associated with ncname

        @param ncname:
9549
def get_uri(self, ncname: str) -> Optional[str]:
        
        uri = cu.expand_uri(ncname + ':', self.curi_maps)
        return uri if uri and uri.startswith('http') else None
636329
public String namespaceURI() {
        if (namespacePrefix == null || namespacePrefix.isEmpty()) return "";
        String uri = namespaceTagHints.get(namespacePrefix);
        return uri == null ? "" : uri;
    }
1116535
def get_uri(self):
        """"""
        if self.source_file and os.path.exists(self.source_file.path):
            return self.source_file.path
        elif self.source_url:
            return self.source_url
        return None
1066920
def Uri(self):
		
		return ("%s://%s%s" % (("https", "http")[self._noSsl == True], self._name, (":" + str(self._port), "")[
			(((self._noSsl == False) and (self._port == 80)) or ((self._noSsl == True) and (self._port == 443)))]))
815914
def get_prefixes(self, ns_uri):
        """"""
        ni = self.__lookup_uri(ns_uri)
        return ni.prefixes.copy()
497653
def get_uri(self):
    ''' 
    '''
    if hasattr(self, 'simage'):
        if self.simage is not None:
            if self.simage.image not in ['', None]:
                # Concatenates the <uri>://<image>
                return str(self.simage)
1224331
def get_uris(self, base_uri, filter_list=None):
        """"""
        return {
            re.sub(r'^/', base_uri, link.attrib['href'])
            for link in self.parsedpage.get_nodes_by_selector('a')
            if 'href' in link.attrib and (
                link.attrib['href'].startswith(base_uri) or
                link.attrib['href'].startswith('/')
            ) and
            not is_uri_to_be_filtered(link.attrib['href'], filter_list)
        }
139087
public Attribute getAttributeWithNamespaceURI(CharSequence uri, CharSequence name) {
		for (Attribute attr : event.attributes)
			if (attr.localName.equals(name) && getNamespaceURI(attr.namespacePrefix).equals(uri))
				return attr;
		return null;
	}
1067660
@Pure
	@SuppressWarnings("checkstyle:npathcomplexity")
	public static URL dirname(URL filename) {
		if (filename == null) {
			return null;
		}

		URL prefix = null;
		String path;
		if (isJarURL(filename)) {
			prefix = getJarURL(filename);
			path = fromFileStandardToURLStandard(getJarFile(filename));
		} else {
			path = filename.getPath();
		}

		if ("".equals(path)) { //$NON-NLS-1$
			return null;
		}

		int idx = path.lastIndexOf(URL_PATH_SEPARATOR_CHAR);
		if (idx == path.length() - 1) {
			idx = path.lastIndexOf(URL_PATH_SEPARATOR_CHAR, path.length() - 2);
		}

		if (idx < 0) {
			if (URISchemeType.getSchemeType(filename).isFileBasedScheme()) {
				path = CURRENT_DIRECTORY;
			} else {
				path = URL_PATH_SEPARATOR;
			}
		} else {
			path = path.substring(0, idx + 1);
		}

		try {
			if (prefix != null) {
				return toJarURL(prefix, path);
			}
			return new URI(filename.getProtocol(),
					filename.getUserInfo(),
					filename.getHost(),
					filename.getPort(),
					decodeHTMLEntities(path),
					null,
					null).toURL();
		} catch (Throwable exception) {
			//
		}

		try {
			return new URL(
					filename.getProtocol(),
					filename.getHost(),
					path);
		} catch (Throwable exception) {
			//
		}
		return null;
	}
864623
@Override
    public String getNoSuffixViewURI(String controllerName, String viewName) {
        TupleStringKey key = new TupleStringKey(controllerName, viewName);
        String uri = noSuffixViewURICache.get(key);
        if (uri == null) {
            uri = super.getNoSuffixViewURI(controllerName, viewName);
            String prevuri = noSuffixViewURICache.putIfAbsent(key, uri);
            if (prevuri != null) {
                return prevuri;
            }
        }
        return uri;
    }
12314
def resolve_namespace(self, qname):
        
        if ':' in qname:
            prefix, name = qname.split(':', 1)
            uri = self._ns[prefix]
        else:
            name = qname
            if None in self._ns:
                uri = self._ns[None]
            else:
                uri = None
        return (uri, name)
733773
public static dnscnamerec get(nitro_service service, String aliasname) throws Exception{
		dnscnamerec obj = new dnscnamerec();
		obj.set_aliasname(aliasname);
		dnscnamerec response = (dnscnamerec) obj.get_resource(service);
		return response;
	}
535387
def geturi(self):
        """"""
        fragment = self.fragment
        if fragment is None:
            return self.uri
        elif isinstance(fragment, bytes):
            return self.uri + b'#' + fragment
        else:
            return self.uri + u'#' + fragment
131746
private List<RepositoryResource> getResourcesForName(String resourceName) {
        List<RepositoryResource> results = new ArrayList<>();
        try {
            results.addAll(repositoryConnection.getMatchingEsas(FilterableAttribute.SYMBOLIC_NAME, resourceName));
            results.addAll(repositoryConnection.getMatchingEsas(FilterableAttribute.LOWER_CASE_SHORT_NAME, resourceName.toLowerCase()));
            results.addAll(repositoryConnection.getMatchingSamples(FilterableAttribute.LOWER_CASE_SHORT_NAME, resourceName.toLowerCase()));
        } catch (RepositoryBackendException e) {
            // Don't worry if we fail to contact the repository
            // worst case is we report a resource as missing rather than available on another version/edition
        }
        return results;
    }
390850
def namespace_uri(self):
        
        try:
            return next(
                iter(filter(lambda uri: URI(uri).namespace, self._uri))
            )
        except StopIteration:
            return None
279271
def uri(self, element, namespace=None):
        ''

        if namespace is None:
            namespace = self.namespace

        return URIRef('%s#%s' % (namespace, element))
1186839
public static String getResponseAsString(String uri, String charsetName) {
        return HttpRequester.getResponseAsString(uri, charsetName);
    }