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

[Datahub] Add service metadata support #1081

Merged
merged 6 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export class RecordFormComponent implements AfterViewInit {
this.record = {
...record,
kind: 'service',
spatialExtents: [],
}
}
this.recordChanged.emit(this.record)
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
import { ServiceRecord } from '@geonetwork-ui/common/domain/model/record'

export const GEO2FRANCE_SERVICE_EAUXUSEES_RECORD: ServiceRecord = {
uniqueIdentifier: 'be052079-f1f6-4f6f-a722-cbf11deb40eb',
resourceIdentifier: 'https://id.eaufrance.fr/meta/ODP_WFS',
kind: 'service',
otherLanguages: [],
defaultLanguage: 'fr',
recordUpdated: new Date('2024-05-29T11:58:54.326Z'),
resourceCreated: new Date('2019-12-02T00:00:00.000Z'),
title:
'Service web géographique OGC (WFS) du référentiel des Stations de traitement des eaux usées - Ouvrages de dépollution',
abstract:
"Le service web (WFS) du référentiel des Stations de traitement des eaux permet de télécharger les ouvrages impliqués dans la dépollution des eaux usées. Les différents concepts définis dans le scénario d'échange du référentiel Stations de traitement des eaux usées du Sandre sont diffusés par ce service.",
ownerOrganization: {
name: 'Sandre',
translations: {},
},
contacts: [
{
email: 'sandre@sandre.eaufrance.fr',
role: 'point_of_contact',
organization: {
name: 'Sandre',
translations: {},
},
address: 'OIEau, 15 rue Edouard Chamberland, 87000, France',
},
],
contactsForResource: [
{
email: 'sandre@sandre.eaufrance.fr',
role: 'custodian',
organization: {
name: 'Sandre',
translations: {},
},
address: 'OIEau, 15 Rue Edouad Chamberland, 87000, France',
},
],
keywords: [
{
label: 'WFS',
type: 'theme',
translations: {},
},
{
label: 'Ouvrage de dépollution',
type: 'theme',
translations: {},
},
{
label: 'Rapportage',
type: 'theme',
translations: {},
},
{
label: 'ODP',
type: 'theme',
translations: {},
},
{
label: 'SysTraitementEauxUsees',
type: 'theme',
translations: {},
},
{
label: 'Données ouvertes',
type: 'theme',
translations: {},
},
{
label: "Services d'utilité publique et services publics",
type: 'theme',
translations: {},
},
{
label: 'France métropolitaine',
type: 'theme',
translations: {},
},
{
label: 'hvd',
type: 'theme',
translations: {},
},
{
thesaurus: {
id: null,
name: 'Champ géographique',
},
label: 'National',
type: 'other',
translations: {},
},
{
thesaurus: {
id: 'Registre de thème INSPIRE',
name: 'GEMET - INSPIRE themes, version 1.0',
url: new URL('http://inspire.ec.europa.eu/theme'),
},
label: "Services d'utilité publique et services publics",
type: 'theme',
translations: {},
},
{
thesaurus: {
id: null,
name: 'COMMISSION REGULATION (EC) No 1205/2008 of 3 December 2008 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards metadata, Part D 4, Classification of Spatial Data Services',
},
label: 'Service d’accès aux éléments',
type: 'other',
translations: {},
},
{
thesaurus: {
id: null,
name: 'INSPIRE priority data set',
},
label: 'Directive 2012/18/EU',
type: 'other',
translations: {},
},
{
thesaurus: {
id: null,
name: 'INSPIRE priority data set',
},
label:
'Urban waste-water treatment plants (Urban Waste Water Treatment Directive)',
type: 'other',
translations: {},
},
{
thesaurus: {
id: 'geonetwork.thesaurus.external.theme.high-value-dataset-category-skos-ap-eu',
name: 'High-value dataset categories',
url: new URL(
'https://www.sandre.eaufrance.fr/atlas/srv/api/registries/vocabularies/external.theme.high-value-dataset-category-skos-ap-eu'
),
},
label: 'Observation de la terre et environnement',
type: 'theme',
translations: {},
},
],
topics: [],
licenses: [],
legalConstraints: [
{
url: new URL(
'http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations'
),
text: 'No limitations on public access',
translations: {},
},
{
url: new URL(
'http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply'
),
text: 'No conditions apply to access and use',
translations: {},
},
],
securityConstraints: [],
spatialExtents: [
{
bbox: [-61.798, -21.371, 55.855, 51.088],
translations: {},
},
],
otherConstraints: [],
overviews: [],
onlineResources: [
{
type: 'endpoint',
endpointUrl: new URL(
'https://services.sandre.eaufrance.fr/geo/odp?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities'
),
protocol: 'wfs',
description:
'Ouvrages de dépollution - Système de traitement des eaux usées - France entière',
translations: {},
},
],
translations: {},
}
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ export const GEOCAT_CH_SERVICE_RECORD: ServiceRecord = {
id: 'geonetwork.thesaurus.external.theme.gemet',
name: 'GEMET',
url: new URL(
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
),
},
type: 'other',
Expand Down Expand Up @@ -798,4 +798,12 @@ export const GEOCAT_CH_SERVICE_RECORD: ServiceRecord = {
en: '',
},
},
spatialExtents: [
{
bbox: [
8.749927283333331, 46.853613697777774, 9.697637729444445, 47.5586926625,
],
translations: {},
},
],
}
Original file line number Diff line number Diff line change
Expand Up @@ -657,4 +657,10 @@ export const METAWAL_SERVICE_RECORD: ServiceRecord = {
landingPage: new URL(
'https://metawal.wallonie.be/geonetwork/srv/api/records/6d2b6fdb-f1ea-4d48-8697-a0c05512f1dc'
),
spatialExtents: [
{
bbox: [2.75, 49.45, 6.5, 50.85],
translations: {},
},
],
}
Loading
Loading