Skip to content

Commit

Permalink
minor docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLeoni committed Nov 15, 2015
1 parent cc0b74f commit 83981bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ November 15th, 2015

- implemented writing into ckan, see [supported operations table](README.md#supported-operations)
- added CkanClient.builder() for setting connection parameters (proxy, timeout)
- implemented DcatFactory for conversion to Dcat, see [supported operations table](README.md#dcat)
- implemented DcatFactory for conversion to Dcat, see [ckan to dcat mappings](README.md#dcat)
- split Ckan models into two (i.e. CkanDataset now extends CkanDatasetBase, and the Base is used when writing into Ckan)
- now creating release zip with jar and dependencies
- added many exceptions (all inherit from JackanException)
Expand Down
5 changes: 2 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ dataset metadata by navigating to /dataset/{id}.rdf or /dataset/{id}.n3.
These were rendered using templates, and were outdated, incomplete and
broken [1].
```
Situation on ckan side is getting much better with the <a href="https://github.com/ckan/ckanext-dcat" target="_blank">new version of the plugin </a> in progress, but we cannot expect all CKAN instances around the world to adopt it now. So currently we provide a class to convert from CKAN objects to their DCAT equivalent called <a href="../src/main/java/eu.trentorise.opendata.jackan.dcat/DcatFactory"> DcatFactory</a>. It will convert a `CkanDataset` to a `DcatDataset` and a `CkanResource` to a `DcatDistribution` <a href="https://github.com/ckan/ckanext-dcat#rdf-dcat-to-ckan-dataset-mapping" target="_blank"> according to this mapping</a>.
Situation on ckan side is getting much better with the <a href="https://github.com/ckan/ckanext-dcat" target="_blank">new version of the plugin </a> in progress, but we cannot expect all CKAN instances around the world to adopt it now. So currently we provide a class to convert from CKAN objects to their DCAT equivalent called <a href="../src/main/java/eu/trentorise/opendata/jackan/dcat/DcatFactory"> DcatFactory</a>. It will convert a `CkanDataset` to a `DcatDataset` and a `CkanResource` to a `DcatDistribution` <a href="https://github.com/ckan/ckanext-dcat#rdf-dcat-to-ckan-dataset-mapping" target="_blank"> according to this mapping</a>.

Examples code:

Expand Down Expand Up @@ -359,9 +359,8 @@ Examples code:
Locale.ITALIAN); // default locale of metadata
```

To extract more stuff during conversion, you can use <a href="../src/main/java/eu.trentorise.opendata.jackan.dcat/GreedyDcatFactory"> GreedyDcatFactory</a> or extend <a href="../src/main/java/eu.trentorise.opendata.jackan.dcat/DcatFactory"> DcatFactory</a> and override the extract* and/or postProcess* methods.
To extract more stuff during conversion, you can use <a href="../src/main/java/eu/trentorise/opendata/jackan/dcat/GreedyDcatFactory"> GreedyDcatFactory</a> or extend <a href="../src/main/java/eu/trentorise/opendata/jackan/dcat/DcatFactory"> DcatFactory</a> and override the extract* and/or postProcess* methods.

todo write about serializing Dcat to json?

### Logging

Expand Down

0 comments on commit 83981bd

Please sign in to comment.