Is the Distribution node editable in the DCAT?

56
0
a week ago
SenadHodzicNR
Emerging Contributor

Hey all,

To preface, I am new to ArcGIS Hub and editing the JSON Feed. I've been reading the documentation, and I thought I understood how to edit the DCAT, but I guess I am misunderstanding it somehow. We're using DCAT-US 1.1

I am looking to edit the distribution node, specifically the "title" attribute so that it includes the {{name}} of the dataset and the file type. We have a separate open data site that uses the CKAN harvester, and in the download name and links section, it uses the "title" attribute. When users report that link as not working, it sends us just "shapefile has been reported". So I would like to add the name of the file so we could pinpoint these errors. Below is Figure 1, its what I currently have, as i am trying to start small, but I noticed when I preview this JSON in ArcGIS Hub, that it's not overwriting that specific node, rather it adds it before. See Figure 2

Figure 1: Current JSON DCAT

 

{
	"title": "{{name}}",
	"description": "{{description}}",
	"keyword": "{{tags}}",
	"issued": "{{created:toISO}}",
	"modified": "{{modified:toISO}}",
	"publisher": {
		"name": "{{source}}"
	},
	"keywords": {
		"en": "{{categories}}"
	},
	"contactPoint": {
		"fn": "{{owner}}",
		"hasEmail": "{{orgContactEmail}}"
	},
	"spatial": "{{extent}}",
	"theme": [
		"geospatial"
	],
	"distribution": [
		{
			"@type": "dcat:Distribution",
			"title": "{{name}} - ArcGIS Hub Dataset",
			"format": "Web Page",
			"mediaType": "text/html",
			"accessURL": "{{url}}"
		}
	]
}

 

 Figure 2: Figure 1's Output:

 

 "distribution": [
        {
          "@type": "dcat:Distribution",
          "title": "NES Shoreline Areas - ArcGIS Hub Dataset",
          "format": "Web Page",
          "mediaType": "text/html",
          "accessURL": "https://services1.arcgis.com/WxiLK82TWf8W3O3f/arcgis/rest/services/OpenData_NES_Shoreline_Areas/FeatureServer/21"
        },
        {
          "@type": "dcat:Distribution",
          "title": "ArcGIS Hub Dataset",
          "format": "Web Page",
          "mediaType": "text/html",
          "accessURL": "https://hub.arcgis.com/datasets/NiagaraRegion::nes-shoreline-areas-1"
...
So on and so forth with the typical distribution links

 




0 Kudos
0 Replies