How to use the rdf-terms.uniqTerms function in rdf-terms

To help you get started, we’ve selected a few rdf-terms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github comunica / comunica / packages / actor-query-operation-quadpattern / lib / ActorQueryOperationQuadpattern.ts View on Github external
public getVariables(pattern: RDF.BaseQuad): string[] {
    return uniqTerms(getTerms(pattern)
      .filter(ActorQueryOperationQuadpattern.isTermVariable))
      .map(termToString);
  }
github comunica / comunica / packages / actor-query-operation-construct / lib / ActorQueryOperationConstruct.ts View on Github external
    return uniqTerms([].concat.apply([], patterns.map((pattern) => getVariables(getTerms(pattern)))));
  }

rdf-terms

Convenience functions for handling RDFJS terms

MIT
Latest version published 1 year ago

Package Health Score

45 / 100
Full package analysis