Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def norm_url(base, url):
    url = urljoin(base, url)
    parts = urlsplit(url)
    path = normpath(parts[2])
    if sep != '/':
        path = '/'.join(path.split(sep))
    if parts[2].endswith('/') and not path.endswith('/'):
        path += '/'
    return urlunsplit(parts[0:2] + (path,) + parts[3:])
        


src/r/d/rdflib-jsonld-HEAD/rdflib_jsonld/context.py   rdflib-jsonld(Download)
from rdflib.namespace import RDF
 
from .util import source_to_json, urljoin, split_iri, norm_url
from .keys import (BASE, CONTAINER, CONTEXT, GRAPH, ID, INDEX, LANG, LIST,
        REV, SET, TYPE, VALUE, VOCAB)
    def resolve_iri(self, iri):
        return norm_url(self.base, iri)
 
    def expand(self, term_curie_or_iri, use_vocab=True):
        if use_vocab: