packages/extension-map/doc/webpacks/shexmap-webapp.js
// assuming that a base path has been set and that the IRI is indeed relative.
assuming that a base path has been set and that the IRI is indeed relative.
assuming that a base path has been set and that the IRI is indeed relative .
function _resolveSchemaIRI (iri) {
    switch (iri[0]) {
    case undefined: return ShapeMapJisonParser._schemaBase;
    case '#': return ShapeMapJisonParser._schemaBase + iri;
    case '?': return ShapeMapJisonParser._schemaBase.replace(/(?:\?.*)?$/, iri);
    case '/':
      return (iri[1] === '/' ? ShapeMapJisonParser._schemaBaseScheme : ShapeMapJisonParser._schemaBaseRoot) + _removeDotSegments(iri);
    default: {
      return _removeDotSegments(ShapeMapJisonParser._schemaBasePath + iri);
    }
    }
  }
function _resolveSchemaIRI ( iri ) { switch ( iri [ 0 ] ) { case undefined : return ShapeMapJisonParser . _schemaBase ; case '#' : return ShapeMapJisonParser . _schemaBase + iri ; case '?' : return ShapeMapJisonParser . _schemaBase . replace ( / (?:\?.*)?$ / , iri ) ; case '/' : return ( iri [ 1 ] === '/' ? ShapeMapJisonParser . _schemaBaseScheme : ShapeMapJisonParser . _schemaBaseRoot ) + _removeDotSegments ( iri ) ; default : { return _removeDotSegments ( ShapeMapJisonParser . _schemaBasePath + iri ) ; } } }
assuming that a base path has been set and that the IRI is indeed relative.
assuming that a base path has been set and that the IRI is indeed relative .
// An empty relative IRI indicates the base IRI // Resolve relative fragment IRIs against the base IRI // Resolve relative query string IRIs by replacing the query string // Resolve root-relative IRIs at the root of the base IRI // Resolve scheme-relative IRIs to the scheme // Resolve all other IRIs at the base IRI's path