Skip to content

Commit

Permalink
Merge branch 'master' into origin/feature/spatial-extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Konrad Reiche <[email protected]>

Conflicts:
	OGPD_JSON_Schema.html
	beispiele/beispiel1.json
  • Loading branch information
Konrad Reiche committed Dec 6, 2013
2 parents 361b861 + 4f5533f commit 7383d8b
Show file tree
Hide file tree
Showing 7 changed files with 230 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- "0.10"
before_install:
- npm install JSV
script: cd validation/ && node validate.js ../beispiele/beispiel1.json
30 changes: 22 additions & 8 deletions OGPD_JSON_Schema.html

Large diffs are not rendered by default.

21 changes: 16 additions & 5 deletions OGPD_JSON_Schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"type": "object",
"type": "object",
"$schema": "https://json-schema.org/draft-03/schema#",
"description": "JSON Schema Representation of an OGPD prototype dataset/document/app aligned with theCKAN metadata schema",
"properties": {
"name": {
Expand Down Expand Up @@ -109,7 +110,7 @@
}
},
"license_id": {
"enum": ["apache", "app_commercial", "app_freeware", "app_opensource", "bsd-license", "cc-by", "cc-by-sa", "cc-nc", "cc-by-nd", "cc-zero", "dl-de-by-1.0", "dl-de-by-nc-1.0", "geolizenz-closed", "geolizenz-i-a", "gfdl", "gpl-3.0", "mozilla", "odc-by", "odc-odbl", "odc-pddl", "official-work", "other-closed", "other-open"],
"enum": ["apache", "app_commercial", "app_freeware", "app_opensource", "bsd-license", "cc-by", "cc-by-sa", "cc-nc", "cc-by-nd", "cc-zero", "dl-de-by-1.0", "dl-de-by-nc-1.0", "geolizenz-v1.2.1-open", "geolizenz-v1.2-1a", "geolizenz-v1.2-1b", "geolizenz-v1.2-2a", "geolizenz-v1.2-2b", "geolizenz-v1.2-3a", "geolizenz-v1.2-3b", "geolizenz-v1.2-4a", "geolizenz-v1.2-4b", "geonutzv-de-2013-03-19", "gfdl", "gpl-3.0", "mozilla", "odc-by", "odc-odbl", "odc-pddl", "official-work", "other-closed", "other-open"],
"type": "string",
"required": true,
"description": "Lizenz-ID: Lizenz aus einer festen Liste, s.u. bzw. <a href='https://github.com/fraunhoferfokus/ogd-metadata/blob/master/lizenzen/deutschland.json'>Liste</a>"
Expand Down Expand Up @@ -189,6 +190,11 @@
"description": "URL: URL, auf der die Lizenz des Datensatzes, Dokuments oder der App beschrieben und erklärt ist.",
"format": "uri"
},
"attribution_text": {
"type": "string",
"required": false,
"description": "Namensnennungs-Text: Der exakte Text, der im Rahmen der Namensnennung anzugeben ist."
},
"is_free_to_use": {
"type": "boolean",
"required": false,
Expand Down Expand Up @@ -240,12 +246,17 @@
},
"coordinates": {
"type": "array",
"description": "Koordinaten Liste der Koordinaten",
"description": "Liste der LinearRing Koordinaten-Liste",
"items": {
"type": "array",
"description": "Koordinaten in der Reihenfolge x, y",
"description": "Koordinatenliste die einen LinearRing bildet",
"items": {
"type": "number"
"type": "array",
"description": "Koordinatenliste bestehend aus x,y Koordinaten",
"items": {
"type": "number",
"description": "x bzw. y Koordinate"
}
}
}
},
Expand Down
12 changes: 11 additions & 1 deletion OGPD_JSON_Schema_changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2013-12-06 Änderungen aus der Datenbereitsteller-Telko und weiteres
- Feld Namensnennung zu extras.terms_of_use hinzugefügt
- neue Geolizenzen aufgenommen
- Lizenzversionierung für neue und bestehende (Creative Commons) Lizenzen mit in den Identifier aufnehmen

2013-12-04 GeoJSON Koordinatenformat angepasst
- das aktuelle GeoJSON Format für Polygon ist ein zweifach geschachteltes Array und nicht einfach
- siehe: https://www.geojson.org/geojson-spec.html#id4
- dementsprechend wurde extras.spatial.coordinates angepasst

2012-09-25 /prototyp/doc/metadaten/120925-post-harvesting-workshop.pdf eingearbeitet, insb.
- kontakte als liste mit rollenbezeichner
- nicht-ckan-core-felder in extras verschoben
Expand Down Expand Up @@ -53,4 +63,4 @@
- CC-BY-ND aufgenommen

2013-03-27
- Geodaten-Nutzungsverordnung hinzugefügt.
- Geodaten-Nutzungsverordnung hinzugefügt.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ogd-metadata
==================
# ogd-metadata

[![Build Status](https://travis-ci.org/fraunhoferfokus/ogd-metadata.png?branch=master)](https://travis-ci.org/fraunhoferfokus/ogd-metadata)

Metadata structure and documentation to be used by the German Open Government Platform and as input to the standardization of a common metadata structure for open government data in German speaking countries

Expand All @@ -11,8 +12,8 @@ Relevante Links zur CKAN-Dokumentation:
* [Domain Model][ckan-dm]
* [CKAN Logic Code][ckan-lc]

[ogdm-html]: https://htmlpreview.github.com/?https://github.com/fraunhoferfokus/ogd-metadata/blob/master/OGPD_JSON_Schema.html
[ogdm-html]: https://htmlpreview.github.com/?https://github.com/fraunhoferfokus/ogd-metadata/blob/attrib_field/OGPD_JSON_Schema.html
[ogdm-blog]: https://open-data.fokus.fraunhofer.de/?p=643
[ckan-dm]: https://docs.ckan.org/en/ckan-1.8/domain-model.html
[ckan-lc]: https://github.com/okfn/ckan/blob/master/ckan/logic/schema.py


4 changes: 2 additions & 2 deletions beispiele/beispiel1.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"metadata_original_html": "https://www.example.com/bundesamt/beispieldaten/01043a74-ca8c-783b-5541",
"spatial": {
"type": "polygon",
"coordinates": [
"coordinates": [[
[
15.02,
47.16
Expand All @@ -90,7 +90,7 @@
15.02,
47.16
]
],
]],
"ags": "12064",
"nuts": "DE413",
"uri": "https://dbpedia.org/resource/Landkreis_M%C3%A4rkisch-Oderland"
Expand Down
172 changes: 168 additions & 4 deletions lizenzen/deutschland.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@
"title": "Creative Commons Namensnennung (CC-BY)",
"url": "https://www.opendefinition.org/licenses/cc-by"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "cc-by-4.0",
"is_okd_compliant": true,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "Creative Commons Namensnennung (CC BY 4.0)",
"url": "https://creativecommons.org/licenses/by/4.0/"
},
{
"domain_content": true,
"domain_data": true,
Expand All @@ -80,6 +93,19 @@
"title": "Creative Commons Attribution Weitergabe unter gleichen Bedingungen (CC-BY-SA)",
"url": "https://www.opendefinition.org/licenses/cc-by-sa"
},
{
"domain_content": true,
"domain_data": false,
"domain_software": false,
"family": "",
"id": "cc-by-sa-4.0",
"is_okd_compliant": true,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "Creative Commons Attribution Weitergabe unter gleichen Bedingungen (CC BY-SA 4.0)",
"url": "https://creativecommons.org/licenses/by-sa/4.0/"
},
{
"domain_content": false,
"domain_data": true,
Expand Down Expand Up @@ -146,6 +172,19 @@
"title": "Creative Commons Nicht-Kommerziell (CC-NC)",
"url": "https://creativecommons.org/licenses/by-nc/2.0/"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "cc-by-nc-4.0",
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "Creative Commons Nicht-Kommerziell (CC BY-NC 4.0)",
"url": "https://creativecommons.org/licenses/by-nc/4.0/"
},
{
"domain_content": true,
"domain_data": true,
Expand All @@ -158,6 +197,19 @@
"status": "active",
"title": "Creative Commons Keine Bearbeitung (CC-BY-ND)",
"url": "https://creativecommons.org/licenses/by-nd/3.0/"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "cc-by-nd-4.0",
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "Creative Commons Keine Bearbeitung (CC BY-ND)",
"url": "https://creativecommons.org/licenses/by-nd/4.0/"
},
{
"domain_content": true,
Expand Down Expand Up @@ -192,14 +244,126 @@
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-closed",
"id": "geolizenz-v1.2.1-open",
"is_generic": true,
"is_okd_compliant": true,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "GeoLizenz V1.2.1 Open-räumlich und zeitlich unbeschränkte Einräumung aller Nutzungsrechte",
"url": "https://www.geolizenz.org/modules/geolizenz/docs/1.2.1/GeoLizenz_V1.2.1_Open_082213_V1.pdf"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-v1.2-1a",
"is_generic": true,
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "GeoLizenz V1-2 Ia-kommerziell-Weiterverarbeitung-oeffentliche_Netzwerke",
"url": "https://www.geolizenz.org"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-v1.2-1b",
"is_generic": true,
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "GeoLizenz V1-2 Ib-nicht-kommerziell-Weiterverarbeitung-oeffentliche_Netzwerke",
"url": "https://www.geolizenz.org"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-v1.2-2a",
"is_generic": true,
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "GeoLizenz V1-2 IIa-kommerziell-keine Weiterverarbeitung-oeffentliche_Netzwerke",
"url": "https://www.geolizenz.org"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-v1.2-2b",
"is_generic": true,
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "GeoLizenz V1-2 IIb-nicht-kommerziell-keine Weiterverarbeitung-oeffentliche_Netzwerke",
"url": "https://www.geolizenz.org"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-v1.2-3a",
"is_generic": true,
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "GeoLizenz V1-2 IIIa-kommerziell-Weiterverarbeitung-nicht-oeffentliche_Netzwerke",
"url": "https://www.geolizenz.org"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-v1.2-3b",
"is_generic": true,
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "GeoLizenz V1-2 IIIb-nicht-kommerziell-Weiterverarbeitung-nicht-oeffentliche_Netzwerke",
"url": "https://www.geolizenz.org"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-v1.2-4a",
"is_generic": true,
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "GeoLizenz V1-2 IVa-kommerziell-keine Weiterverarbeitung-nicht-oeffentliche_Netzwerke",
"url": "https://www.geolizenz.org"
},
{
"domain_content": true,
"domain_data": true,
"domain_software": false,
"family": "",
"id": "geolizenz-v1.2-4b",
"is_generic": true,
"is_okd_compliant": false,
"is_osi_compliant": false,
"maintainer": "",
"status": "active",
"title": "eingeschränkte Geolizenz",
"url": "https://www.geolizenz.org/index/lizenzen.php"
"title": "GeoLizenz V1-2 IVb-nicht-kommerziell-keine Weiterverarbeitung-nicht-oeffentliche_Netzwerke",
"url": "https://www.geolizenz.org"
},
{
"domain_content": false,
Expand Down Expand Up @@ -320,4 +484,4 @@
"title": "Andere eingeschränkte Lizenz",
"url": ""
}
]
]

0 comments on commit 7383d8b

Please sign in to comment.