-
Notifications
You must be signed in to change notification settings - Fork 1
Document additionalMetadata in README
#81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gpeb2
wants to merge
2
commits into
main
Choose a base branch
from
additionalMetadata-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -128,6 +128,7 @@ The following table shows the top level nodes allowed in a configuration file. | |||||
| | [`"workspace"`](#workspace) | No | The dataset's name | The GeoServer workspace into which any 2D geospatial data layers, vector and raster, will be added | | ||||||
| | [`"namespace"`](#namespace) | No | The dataset's name | The Blazegraph namespace into which RDF data will be added. The long syntax can be used to specify properties if the namespace needs to be created | | ||||||
| | [`"externalDatasets"`](#externaldatasets) | No* | `[]` | A list of other datasets' names. Each listed dataset will also be loaded if this dataset is loaded by name | | ||||||
| | [`"additionalMetadata"`](#additionalmetadata) | No | `{}` | Additional metadata discribing the dataset | | ||||||
| | [`"dataSubsets"`](#datasubsets) | No* | `[]` | A list of *data subset* objects | | ||||||
| | [`"styles"`](#styles) | No* | `[]` | A list of GeoServer style file definition objects | | ||||||
| | [`"mappings"`](#mappings) | No* | `[]` | A list of Ontop mapping (OBDA) file names | | ||||||
|
|
@@ -222,6 +223,28 @@ Be aware though that some of the property keys contain the namespace's name so c | |||||
|
|
||||||
| Any datasets that are named under this node will be included if this dataset is loaded by name, either because the stack has the same name or because it appears in the `"externalDatasets"` list of another dataset that is loaded by name. | ||||||
|
|
||||||
| ### `"additionalMetadata"` | ||||||
|
|
||||||
| Additional metadata discribing the dataset (or data subset). For example additional information that corresponds to concepts in the dcat or prov-o ontologies. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| | Key | Required? | Default value | Description | | ||||||
| | ------------------ | --------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||||||
| | `"prefixes"` | No | `{}` | Key-value map of prefixes to IRIs | | ||||||
| | `"triplePatterns"` | No | `""` | Turtle formatted triples as a single-line string with double-quote characters escaped. The dataset IRI can be accessed as `?dataset`. For data subsets the variable is `?dataSubset` | | ||||||
|
|
||||||
| Example: | ||||||
| ```json | ||||||
| "additionalMetadata": { | ||||||
| "prefixes": { | ||||||
| "ex": "<https://dcat.example.org/>", | ||||||
| "dct": "http://purl.org/dc/terms/", | ||||||
| "dcat": "http://www.w3.org/ns/dcat#", | ||||||
| "xsd": "http://www.w3.org/2001/XMLSchema#" | ||||||
| }, | ||||||
| "triplePatterns": "?dataset dct:publisher ex:finance-ministry ; dct:spatial <http://sws.geonames.org/6695072/> ; dct:temporal [ a dct:PeriodOfTime ; dcat:startDate \"2011-07-01\"^^xsd:date ; dcat:endDate \"2011-09-30\"^^xsd:date ; ] ." | ||||||
| }, | ||||||
| ``` | ||||||
|
|
||||||
| ### `"dataSubsets"` | ||||||
|
|
||||||
| This node should contain a list of data subset objects. | ||||||
|
|
@@ -231,13 +254,14 @@ Each data subset should then have its own subdirectory. | |||||
| These specify how to load the data from a particular set of files. | ||||||
| Each data subset must have the following values specified: | ||||||
|
|
||||||
| | Key | Required? | Default value | Description | | ||||||
| | --------------------------------- | --------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||||||
| | [`"name"`](#name-1) | No | Last component of the subdirectory | The name of the data subset | | ||||||
| | [`"type"`](#type) | Yes | N/A | The type of the data | | ||||||
| | [`"subdirectory"`](#subdirectory) | Yes | N/A | The subdirectory within the dataset directory that contains the data in this data subset | | ||||||
| | `"skip"` | No | `false` | If set to `true` this data subset will be ignored by the data uploader | | ||||||
| | `"sql"` | No | N/A | If the data is being loaded into the PostgreSQL database then the query provided here is run straight after the data is loaded [:open_file_folder:](#value-by-file-name) | | ||||||
| | Key | Required? | Default value | Description | | ||||||
| | --------------------------------------------- | --------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||||||
| | [`"name"`](#name-1) | No | Last component of the subdirectory | The name of the data subset | | ||||||
| | [`"type"`](#type) | Yes | N/A | The type of the data | | ||||||
| | [`"subdirectory"`](#subdirectory) | Yes | N/A | The subdirectory within the dataset directory that contains the data in this data subset | | ||||||
| | `"skip"` | No | `false` | If set to `true` this data subset will be ignored by the data uploader | | ||||||
| | `"sql"` | No | N/A | If the data is being loaded into the PostgreSQL database then the query provided here is run straight after the data is loaded [:open_file_folder:](#value-by-file-name) | | ||||||
| | [`"additionalMetadata"`](#additionalmetadata) | No | `{}` | Additional metadata discribing the data subset | | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| #### `"name"` | ||||||
|
|
||||||
|
|
@@ -1011,4 +1035,4 @@ This way you can look at look at the user interfaces of the various services (se | |||||
|
|
||||||
| [zone-id]: https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html | ||||||
|
|
||||||
| [ontop-lenses]: https://ontop-vkg.org/guide/advanced/lenses.html#lenses | ||||||
| [ontop-lenses]: https://ontop-vkg.org/guide/advanced/lenses.html#lenses | ||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.