Customize DCAT output
Pages 202
- Home
- 2009 Esri Federal UC
- 2009 Esri International UC
- 2010 Esri Federal UC
- 2010 Esri International UC
- 2011 Esri Federal UC
- 2012 Esri Federal UC
- 2013 Esri Federal GIS Conference
- 2013 Esri International User Conference
- 2015 SDI Special Interest Group
- Add a Custom Profile
- Add an OpenSearch endpoint for Federated Search
- Add Another Tab to the Geoportal Interface
- Add Custom Link to a Search Result
- Add Custom Search Criteria
- Add the Geoportal Search to a List of Search Providers
- Add v1.1.1 FGDC editor to a previous Geoportal release
- AGP TO AGP Harvesting with the Geoportal
- AGS TO AGP Harvesting with the Geoportal
- All gpt.xml file settings
- An Introduction to vi
- Apache Tomcat geoportal logging
- Being a Good Robot
- Best Practice for Edits to JSP files
- Biological or Remote Sensing FGDC xsds
- Browse Tree
- Cart Processor
- Catalog Service
- Clear the Tomcat Work Folder
- Collections
- Common problems and solutions
- Communities and live examples
- Components
- Configure a Directory Server for the Geoportal
- Configure geoportal User and Schema in the PostgreSQL Database
- Configure Previewable Filetypes
- Configure Searching of YouTube
- Configure the gpt.xml File
- Configure Widgets
- Connecting to a User Directory
- Create a user account
- Create Relationships between Resources
- Customizations
- Customize DCAT output
- Customize Metadata Validation
- Database problems
- Database Tables
- DataDownload Tab
- Deploy and Configure the Geoportal Web Application in Tomcat
- Deploy and Configure the Servlet Web Application
- Deploy the Geoportal Web Application
- Details of Lucene Indexing in the Geoportal
- Development topics
- Discovering Resources
- Eclipse Project from Compiled WAR
- Eclipse Project from Source Code
- Enable Search Using an Ontology Service
- Error Messages in the Geoportal Web Application
- Esri Geoportal Server LiveDVD
- Extending the Web Harvester
- Federated Search in Portal for ArcGIS
- Feedback
- FGDC Biological Profile and Remote Sensing Extension
- FGDC Service Checker Integration
- Geoportal Clients for ArcGIS
- Geoportal CSW Clients
- Geoportal Facets using Apache Solr
- Geoportal genie
- Geoportal Project from Compiled WAR
- Geoportal Publish Client
- Geoportal Server 1.2.5 What's New
- Geoportal Server 1.2.6 What's New
- Geoportal Server 1.2.7 What's New
- Geoportal server as a broker
- Geoportal Server Downloads
- Geoportal Server v 1.0 What's New
- Geoportal Server v 1.1 What's New
- Geoportal Server v 1.1.1 What's New
- Geoportal Server v 1.2 What's New
- Geoportal Server v 1.2.2 What's New
- Geoportal Server v 1.2.4 What's New
- Geoportal SPARQL Sample
- Geoportal User Interface Components
- Geoportal Web Application File Organization
- Geoportal XML Editor
- Get Assistance with an Implementation
- GXE Concepts
- GXE Crash Course
- GXE Structure
- GXE Workflow
- High Availability and Large Number of Records
- How to Browse for Resources
- How to Create and Manage My Profile
- How to find all documents of a particular metadata standard
- How to Leave a Resource Review
- How to Login and Manage my Password
- How to Manage and Edit Resources
- How to Publish Resources
- How to Restrict Access to Resources
- How to Search for Resources
- How to Search with an Ontology Service
- How to Set Up an Esri Geoportal Server on Linux
- How to Use Search Page Results
- How to Use the Data Download Feature
- How to View Resource Relationships
- IDE Topics
- Identity Components LDAP and Single Sign On
- Index All Metadata Content
- Indexing and Searching the Time Period of the Content
- Install Apache Tomcat 6
- Install Desktop Tools
- Install Esri Geoportal Server
- Install PostgreSQL 9.1.2
- Install the JDBC .jar Files
- Installation
- Installation Version 1.0
- Installation Version 1.1
- Installation Version 1.2
- Installation Version 1.2.2
- Installation Version 1.2.4
- Installation Version 1.2.5
- Installation Version 1.2.6
- Installation Version 1.2.7
- Installation Version 1.2.8
- Integrate with a Content Management System
- Integrate with the con terra Security Solution
- Localization
- Log In to the Geoportal
- Logging
- Look and Feel of the User Interface
- Main Page
- Map LDAP Attributes on the Registration Page
- Map Viewer
- Online form editing for all publication methods
- Open source acknowledgements
- Oracle WebLogic geoportal logging
- Orientation to the Create Metadata Page
- Perform Preinstallation Computer Setup
- Portal for ArcGIS Integration
- Post Deployment Actions
- Preinstallation
- Preinstallation 0.9
- Preinstallation 1.0 and 1.1.x
- Preinstallation 1.2
- Preinstallation 1.2.2
- Preinstallation 1.2.4
- Preinstallation 1.2.5
- Preinstallation 1.2.6
- Preinstallation 1.2.7
- Preinstallation 1.2.8
- Preview Function
- Publication Components
- Ratings and Comments for Search Results
- Register ArcGIS for Server with the Geoportal
- Release notes
- REST API Syntax
- Sample FGDC metadata.xml
- Scheduled tasks
- Search Components
- Search Map
- Search Widget for Flex
- Search Widget for HTML
- Search Widget for Silverlight
- Security Concepts
- Set Up Systemwide Environment Variables
- Set up the Geoportal Database
- Share Link
- Single Sign On
- Smoketest the Geoportal
- Standards Support
- Supported CSW Profiles for Synchronization
- Theme Library
- Troubleshooting
- Troubleshooting Tips
- Two geoportals on the same server
- Upgrade 1.x to 1.2 database
- Upgrading file system approach
- Upgrading Read This Overview
- Upgrading SVN approach
- Url filter customization
- Use an XSLT to Render the Details Page
- Use Ant to build Geoportal
- User Functions and Roles
- User Management Interface
- Using a geoportal
- Using Lucene Search Text Queries
- Version 0.9
- Version 1.0
- Version 1.1
- Version 1.1.1
- Version 1.2
- Version 1.2.2
- Version 1.2.4
- Version 1.2.5
- Version 1.2.6
- Version 1.2.7
- Version 1.2.8
- What is a geoportal and the geoportal server
- What is the esri geoportal server
- What's New
- wiki template
- WMC Client
- Show 187 more pages…
Clone this wiki locally
Geoportal Server (starting from 1.2.4) now support DCAT (Data Catalog Vocabulary) outputs. The DCAT output is in json format and is available through url pattern http://servername:port/geoportal/rest/find/document?f=dcat, it is possible to add additional parameters to the url as well, please refer to REST API Syntax for additional parameters.
Capabilities available since:
Available Since 1.2.4
Enable/disable DCAT support
To enable/disable DCAT support:
- Open gpt.xml in geoportal/WEB-INF/classes/gpt/config
- Uncomment/comment the following section to enable/disable DCAT response
<parameter key="dcat.mappings" value="gpt/metadata/dcat-mappings.xml"/>
- Save gpt.xml and retart the geoportal application
Customize DCAT response
If you would like to customize DCAT response, you modify gpt/metadata/dcat-mappings.xml. Here, you will find a section for FGDC, ISO, and other formats by default. The fgdc section handled the FGDC metadata, the iso section processes ISO format metadata, and all other formats are handled by the others section.
Within each section, there are field mapping for the DCAT response for the specified metadata format, where name attribute is the name of the field in DCAT response, and index attribute is the equivalent field name in gpt\metadata\property-meanings.xml for the metadata.
Following is a segment of dcat-mappings.xml:
<fields schema="others">
<field name="title" index="title" />
<field name="abstract" index="abstract" />
<field name="keyword" index="keywords,dataTheme,apisoTopicCategory" />
<field name="modified" index="dateModified" isDate="true" />
...
If you would like to add/remove/modify mapping for a field:
- Find the section for the metadata format in
dcat-mappings.xml. - To delete a mapping: delete the row that contain the field name to be deleted.
- To modify a mapping: find the index name for the field in
property-meanings.xmland modify the index name. - To add a new mapping: copy/paste another row and modify the field name, find the equivalent index name for the field in
property-meanings.xmland modify the index name. - For the index attribute, a combination of fields can also be used: a semicolon separated list means Geoportal Server will use the value from the first index, if the first is empty then the second, and so on. The
+concatenates the results through the join operator. - To map value of a field from one value to a new value in DCAT output, using the format like below, the "from" attribute can be a string or regular expression:
...
<field name="accessLevel" index="accessLevel" required="true">
<map from="High Confidentiality|Non-public|Secret|Top Secret" to="non-public"/>
...
- By default all values are treated as string type. To make sure dates are formatted and treated as dates, add
<code>isDate=true</code>to field. - Save
dcat-mappings.xmland restart the geoportal application.
If you would like to add DCAT support for a metadata format that is not yet in dcat-mappings.xml
- Copy and paste an existing section.
- Find the schema name for the matadata format and modify the value of schema attribute in
<code><fields schema="schemaname"></code>. - Add/modify/delete the mapping entry for the fields as necessary as described above.
- Save ```dcat-mappings.xml and restart geoportal application.
Available since 1.2.5
Output the entire Geoportal catalog into a DCAT file
Starting from Geoportal 1.2.5, it is possible to make the entire Geoportal Server catalog available as a single DCAT file in json format. This allows client applications such as those used by Data.gov to download the entire Geoportal Server catalog every now and then as a form of harvesting. To enable this option:
- Create a folder that will store the DCAT output.
- Update value of parameter
dcat.cache.pathingeoportal/WEB-INF/classes/gpt/config/gpt.xmlas follows:
<parameter key="dcat.cache.path" value="C:/geoportaldata/dcatcache"/>
- Make sure the following line is uncommented and update the value as needed. Similar to the harvesting schedule, this determines how often the single file is updated and how long Geoportal Server will wait before updates are started.
<thread class="com.esri.gpt.control.georss.dcatcache.DcatCacheTask" period='1[DAY]' delay="15[SECOND]"/>
- Save
gpt.xmland restart the Geoportal application. - Download the DCAT output file using url pattern:
http://servername:port/geoportal/dcat.json.
Available since 1.2.6
- 144 - Allow mapping between value domains.
- 145 - Distribution endpoints missing mandatory tag.
-
146 - The
distributionURLsneed a mediatype. -
148 - Ensure
accessLevelCommentor rights element no longer appears in the data.json output. - 149 - Allow mapping between periodicity values to ISO 8601 equivalents.
- 150 - Allow defining cascading elements to look up values.
Available since 1.2.7
- Added DCAT profile into Geoportal Server
- Added support for harvesting DCAT outputs (geoportal and non-geoportal sites)
- Added support for DCAT in metadata editor
- Enhanced DCAT outputs, including enhancements to dataQuality, modified, issued, rights, landingPage, describedBy, describedByType, and date related fields.