Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule resolved extension #46

Open
jeswr opened this issue Mar 29, 2022 · 1 comment
Open

Rule resolved extension #46

jeswr opened this issue Mar 29, 2022 · 1 comment

Comments

@jeswr
Copy link
Member

jeswr commented Mar 29, 2022

Issue type:

  • ➕ Feature request

Description:

removed from util.ts in bus-rule-resolve

// TODO [FUTURE]:
// Use pattern at
// https://github.com/comunica/comunica/blob/next/major/packages/bus-rdf-resolve-quad-pattern/lib/utils.ts
// to enable multiple rule sources
import { KeysRdfReason } from '@comunica/reasoning-context-entries';
import type { IActionContext } from '@comunica/types';

export function getContextSource(context: IActionContext): string | undefined {
  return context.get(KeysRdfReason.rules);
}

// TODO: Future - this will be needed
// /**
//  * Get the data source type.
//  * @param dataSource A data source.
//  */
// export function getDataSourceType() {
//   if (typeof dataSource === 'string') {
//     return '';
//   }
//   return 'match' in dataSource ? 'rdfjsSource' : dataSource.type;
// }
@github-actions
Copy link

Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant