Skip to content
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

README: add info about subcatalogs settings #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,25 @@ When serializing, your Catalog will expose the harvested Catalog using the `dct:
- `dcat:dataset` (dataset in the harvested catalog)
- `dct:hasPart`
- `dcat:Catalog` (info of one of another harvester catalog)
...
...


#### Simulating RDF subcatalogs

In case you are harvesting from a non-DCAT CKAN catalog, and you want to expose its datasets along with the source catalog info, you may want to associate the catalog info automatically.

Since the catalog info are stored as extras, all you need to do is to add some `default_extras` to the harvested datasets. You need to add these entries to the CKAN harvester configuration:

e.g.:
```
"default_extras": {
"source_catalog_title": "OpenData Alto Adige",
"source_catalog_description": "Catalogo OpenData dell'Alto Adige",
"source_catalog_homepage": "http://your_server/home",
"source_catalog_language": "ITA",
"source_catalog_modified": "2017-01-01T00:00:00",
},
```


### Extending the RDF harvester
Expand Down