Skip to content

Commit

Permalink
Merge branch 'main' into fix/SDK-3296/blank-node-thing
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux authored Apr 9, 2024
2 parents a9d1049 + 4dbd3b7 commit 9fd86d2
Show file tree
Hide file tree
Showing 9 changed files with 181 additions and 708 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ The following changes are pending, and will be applied on the next major release
### Patch changes

- `getThing` now supports Blank Node identifiers in addition to IRIs and skolems to refer to a subject.
- `getThingAll(dataset, { allowacceptBlankNodes: true })` now returns all Blank Nodes
subjects in the Dataset, in particular including those part of a single chain of
predicates. For instance, given the following dataset:

```
@prefix ex: <https://example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
ex:camille
foaf:knows [
foaf:name "Dominique"@en ;
] .
;
```

`getThingAll(dataset, { allowacceptBlankNodes: true })` would have previously returned
a single element for the Named Node (`ex:camille`), it will now also include a second
element for the Blank Node. Blank Node identifiers are by definition unstable and shouldn't
be relied upon beyond local resolution.

## [2.0.1]

Expand Down
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/formats/solidDatasetAsTurtle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ async function getDataset(ttl: string): Promise<SolidDataset> {
}

const ttl = `
prefix : <#>
prefix ex: <https://example.org/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix vcard: <http://www.w3.org/2006/vcard/ns#>
@prefix : <#> .
@prefix ex: <https://example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@base <https://example.org/> .
<>
a foaf:PersonalProfileDocument ;
Expand Down
Loading

0 comments on commit 9fd86d2

Please sign in to comment.