File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -315,10 +315,11 @@ export class DataProcessor {
315
315
* @see LinkedDataAPI#getStatus for documentation
316
316
*/
317
317
public getStatus ( iri : NamedNode ) : EmptyRequestStatus | FulfilledRequestStatus {
318
- const fetcherStatus = this . fetcher . requested [ iri . value ] ;
318
+ const irl = namedNodeByIRI ( iri . value . split ( "#" ) . shift ( ) ! ) ;
319
+ const fetcherStatus = this . fetcher . requested [ irl . value ] ;
319
320
320
321
if ( fetcherStatus === undefined ) {
321
- if ( iri . value in this . fetcher . requested ) {
322
+ if ( irl . value in this . fetcher . requested ) {
322
323
return failedRequest ( ) ;
323
324
}
324
325
return emptyRequest as EmptyRequestStatus ;
@@ -327,7 +328,7 @@ export class DataProcessor {
327
328
const requests = this . store . match (
328
329
null ,
329
330
defaultNS . link ( "requestedURI" ) ,
330
- new Literal ( iri . value ) ,
331
+ new Literal ( irl . value ) ,
331
332
) ;
332
333
const totalRequested = requests . length ;
333
334
if ( requests . length === 0 ) {
You can’t perform that action at this time.
0 commit comments