Skip to content

Commit

Permalink
Update to 0.1.0: RdfStore
Browse files Browse the repository at this point in the history
  • Loading branch information
pietercolpaert committed Feb 17, 2024
1 parent 3694c01 commit 1e0a7e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Extract CBD Shape

Given (i) an N3 Store of triples, (ii) an N3 Store with a SHACL shape’s triples, and (iii) a target entity URI,
Given (i) an RdfStore (see [`rdf-stores`](https://github.com/rubensworks/rdf-stores.js?tab=readme-ov-file#index-combinations)) of triples, (ii) an RdfStore with a SHACL shape’s triples, and (iii) a target entity URI,
this library will extract all triples that belong to the entity.
If more triples of the entity are needed, extra triples are retrieved by dereferencing the relevant entity.

Expand All @@ -21,8 +21,8 @@ let extractor = new CBDShapeExtractor(shapesGraph);
let entityquads = await extractor.extract(store, entityId, shapeId, graphsToIgnore);
```

* The shapesGraph is an N3.Store that contains the quads of a shape
* The store is an N3.Store containing the quads in the current context (e.g., the quads parsed from an HTTP response, or a message received over a channel)
* The shapesGraph is an RdfStore that contains the quads of a shape
* The store is an RdfStore containing the quads in the current context (e.g., the quads parsed from an HTTP response, or a message received over a channel)
* The entityId is the IRI of the entity to extract from the current context
* The Shape ID is the IRI of the NodeShape in the shapesGraph to start from
* The graphToIgnore are the namedgraphs in the current context (the store) to disregard when extracting the member
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "extract-cbd-shape",
"version": "0.0.5",
"version": "0.1.0",
"description": "Extract an entity based on CBD and a SHACL shape",
"main": "dist/lib/extract-cbd-shape.js",
"types": "dist/lib/extract-cbd-shape.d.ts",
Expand Down

0 comments on commit 1e0a7e5

Please sign in to comment.