-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates and bugfixes to Bloom filter handling
- Loading branch information
1 parent
1052acf
commit 78fcc38
Showing
9 changed files
with
210 additions
and
194 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
engines/config-query-sparql-components/config/config-base-normal-call.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"@context": [ | ||
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-link-traversal/^0.0.0/components/context.jsonld" | ||
], | ||
"comment": "Non-adaptive configuration using cAll for link extraction", | ||
"import": [ | ||
"ccqslt:config/config-solid-base.json", | ||
"ccqslt:config/extract-links/actors/all.json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
import type { ILink } from '@comunica/bus-rdf-resolve-hypermedia-links-queue'; | ||
import { ActionContextKey } from '@comunica/core'; | ||
import type { Algebra } from 'sparqlalgebrajs'; | ||
|
||
export interface ILinkFilter { | ||
test: (action: ILinkFilterAction) => boolean; | ||
run: (action: ILinkFilterAction) => boolean; | ||
uri: string; | ||
dataset: string; | ||
answers: (patterns: Algebra.Pattern[]) => boolean; | ||
} | ||
|
||
export interface ILinkFilterAction { | ||
link: ILink; | ||
patterns: Algebra.Pattern[]; | ||
export abstract class LinkFilter implements ILinkFilter { | ||
public uri: string; | ||
public dataset: string; | ||
|
||
public constructor(args: ILinkFilterArgs) { | ||
this.uri = args.uri; | ||
this.dataset = args.dataset; | ||
} | ||
|
||
public abstract answers(patterns: Algebra.Pattern[]): boolean; | ||
} | ||
|
||
export interface ILinkFilterArgs { | ||
uri: string; | ||
dataset: string; | ||
} | ||
|
||
export const KeyLinkFilters = new ActionContextKey<ILinkFilter[]>( | ||
export const KeyLinkFilters = new ActionContextKey<Map<string, ILinkFilter>>( | ||
'@comunica/bus-rdf-parse:link-filters', | ||
); |
Oops, something went wrong.