hdt 3.2.1 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/hdt.d.ts +8 -0
  2. package/package.json +1 -1
package/lib/hdt.d.ts CHANGED
@@ -29,9 +29,17 @@ export interface SearchResult {
29
29
  hasExactCount: boolean;
30
30
  }
31
31
 
32
+ export interface BindingsResult {
33
+ bindings: RDF.Bindings[];
34
+ totalCount: number;
35
+ hasExactCount: boolean;
36
+ }
37
+
32
38
  export interface Document {
33
39
  searchTriples(sub?: RDF.Term, pred?: RDF.Term, obj?: RDF.Term, opts?: SearchTriplesOpts): Promise<SearchResult>;
34
40
 
41
+ searchBindings(bf: RDF.BindingsFactory, sub: RDF.Term, pred: RDF.Term, obj: RDF.Term, opts?: SearchTriplesOpts): Promise<BindingsResult>;
42
+
35
43
  countTriples(sub?: RDF.Term, pred?: RDF.Term, obj?: RDF.Term): Promise<SearchResult>;
36
44
 
37
45
  searchLiterals(substring: string, opts?: SearchLiteralsOpts): Promise<SearchLiteralsResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdt",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Native bindings to access HDT compressed triple files.",
5
5
  "author": "Ruben Verborgh <ruben.verborgh@gmail.com>",
6
6
  "keywords": [