Skip to content

Commit

Permalink
feat: Store registration URL for each dataset (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer authored Nov 16, 2023
1 parent 8cbf3ee commit 556d5f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ Each dataset that is found at the [`schema:EntryPoint`](#schemaentrypoint) regis
`schema:Dataset` to the
[Registrations graph](https://triplestore.netwerkdigitaalerfgoed.nl/resource?uri=https:%2F%2Fdemo.netwerkdigitaalerfgoed.nl%2Fregistry%2Fregistrations&role=context).

| Property | Description |
| -------- | ----------- |
| [`schema:dateRead`](https://schema.org/dateRead) | When the dataset was last read by the application. |
| Property | Description |
|----------------------------------------------------|----------------------------------------------------|
| [`schema:dateRead`](https://schema.org/dateRead) | When the dataset was last read by the application. |
| [`schema:subjectOf`](https://schema.org/subjectOf) | From which registration URL the dataset was read. |

### `dcat:Dataset`

Expand Down
6 changes: 6 additions & 0 deletions src/graphdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ export class GraphDbRegistrationStore implements RegistrationStore {
factory.namedNode('http://schema.org/Dataset'),
factory.namedNode(this.registrationsGraph)
),
factory.quad(
factory.namedNode(datasetIri.toString()),
factory.namedNode('http://schema.org/subjectOf'),
factory.namedNode(registration.url.toString()),
factory.namedNode(this.registrationsGraph)
),
];
if (registration.dateRead !== undefined) {
datasetQuads.push(
Expand Down

0 comments on commit 556d5f2

Please sign in to comment.