Skip to content

Commit 8c94c99

Browse files
committed
feat: metadata sanification
1 parent 7d399a7 commit 8c94c99

14 files changed

Lines changed: 1041 additions & 149 deletions

cwl-workflow/pattern-1.cwl

Lines changed: 68 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,88 @@
11
cwlVersion: v1.0
2+
schemas:
3+
- http://schema.org/version/9.0/schemaorg-current-http.rdf
24
$namespaces:
35
s: https://schema.org/
6+
eoap: "http://oeap.github.io/schema"
47

5-
schemas:
6-
- http://schema.org/version/9.0/schemaorg-current-http.rdf
7-
8-
s:softwareVersion: 1.0.0
9-
10-
s:applicationCategory: "Earth Observation application package"
11-
s:additionalProperty:
12-
- s:@type: s:PropertyValue
13-
s:name: application-type
14-
s:value: delineation
15-
- s:@type: s:PropertyValue
16-
s:name: domain
17-
s:value: hydrology
8+
s:name: Water bodies detection based on NDWI and the otsu threshold
9+
s:description: Water bodies detection based on NDWI and otsu threshold applied to a single Landsat-8/9 acquisition.
10+
s:dateCreated: '2025-01-01'
11+
s:license:
12+
'@type': s:CreativeWork
13+
s:identifier: Apache-2.0
1814

19-
s:thumbnail:
20-
s:@type: s:ImageObject
21-
s:contentUrl: "https://s3.waw3-2.cloudferro.com/swift/v1/stac-png/S2_L2A.jpg"
22-
s:caption: "Water bodies detected based on the NDWI and otsu threshold"
23-
s:encodingFormat: "image/jpeg"
24-
s:height: "360"
25-
s:width: "640"
15+
s:keywords:
16+
- CWL
17+
- Workflow
18+
- Earth Observation
2619

20+
s:operatingSystem:
21+
- Linux
22+
- macOS
23+
s:softwareRequirements:
24+
- https://cwltool.readthedocs.io/en/latest/
25+
- https://www.python.org/
2726

28-
s:license:
29-
s:@type: s:CreativeWork
30-
s:name: "License CC BY 4.0"
31-
s:url: "https://creativecommons.org/licenses/by/4.0/"
32-
s:encodingFormat: "text/html"
27+
s:softwareVersion: 1.0.0
28+
s:softwareHelp:
29+
- '@type': s:CreativeWork
30+
s:name: User Manual
31+
s:url: tps://eoap.github.io/application-package-patterns/
3332

34-
s:documentation:
35-
- s:@type: s:CreativeWork
36-
s:name: "User Manual"
37-
s:url: "https://eoap.github.io/application-package-patterns/"
38-
s:encodingFormat: "text/html"
33+
s:publisher:
34+
'@type': s:Organization
35+
s:name: Make Earth Observation Great Again
36+
s:email: info@meoga.com
37+
s:identifier: https://ror.org/9999cx000
3938

4039
s:author:
41-
s:@type: s:Person
42-
s:name: "John Doe"
40+
- '@type': s:Role
41+
s:roleName: Project Manager
42+
s:additionalType: http://purl.org/spar/datacite/ProjectManager
43+
s:author:
44+
'@type': s:Person
45+
s:givenName: Lois
46+
s:familyName: Lane
47+
s:email: lois.lane@dailyplanet.com
48+
s:identifier: https://orcid.org/0000-9999-0000-9999
49+
s:affiliation:
50+
'@type': s:Organization
51+
s:name: Daily Planet
52+
s:identifier: https://ror.org/0000cx000
53+
- '@type': s:Role
54+
s:roleName: Researcher
55+
s:additionalType: http://purl.org/spar/datacite/Researcher
56+
s:author:
57+
'@type': s:Person
58+
s:givenName: Clark
59+
s:familyName: Kent
60+
s:email: clark.kent@dailyplanet.com
61+
s:identifier: https://orcid.org/0000-9999-0000-9999
62+
s:affiliation:
63+
'@type': s:Organization
64+
s:name: Daily Planet
65+
s:identifier: https://ror.org/0000cx000
66+
67+
s:contributor:
68+
- '@type': s:Person
69+
s:givenName: Lex
70+
s:familyName: Luthor
71+
s:email: lex.luthor@luthorcorp.com
72+
s:identifier: https://orcid.org/0000-9999-0000-9999
4373
s:affiliation:
44-
s:@type: s:Organization
45-
s:name: "Make EO Great Again Platform"
46-
s:email: "john.doe@meogap.org"
47-
74+
'@type': s:Organization
75+
s:name: Luthor Corp
76+
s:identifier: https://ror.org/0000cx000
77+
4878
$graph:
4979
- class: Workflow
5080
id: pattern-1
5181
label: Water bodies detection based on NDWI and the otsu threshold
5282
doc: Water bodies detection based on NDWI and otsu threshold applied to a single Landsat-8/9 acquisition
5383
requirements: []
84+
hints:
85+
- eoap:JSONSchemaHint
5486
inputs:
5587
aoi:
5688
label: area of interest

cwl-workflow/pattern-10.cwl

Lines changed: 75 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,83 @@
66

77
# This scenario takes as input an array of acquisition, applies an algorithm to each of them.
88

9-
109
cwlVersion: v1.0
10+
schemas:
11+
- http://schema.org/version/9.0/schemaorg-current-http.rdf
1112
$namespaces:
1213
s: https://schema.org/
14+
eoap: "http://oeap.github.io/schema"
15+
16+
s:name: NDVI and NDWI vegetation indexes
17+
s:description: NDVI and NDWI vegetation indexes from Landsat-8/9 acquisitions.
18+
s:dateCreated: '2025-01-01'
19+
s:license:
20+
'@type': s:CreativeWork
21+
s:identifier: Apache-2.0
22+
23+
s:keywords:
24+
- CWL
25+
- Workflow
26+
- Earth Observation
27+
28+
s:operatingSystem:
29+
- Linux
30+
- macOS
31+
s:softwareRequirements:
32+
- https://cwltool.readthedocs.io/en/latest/
33+
- https://www.python.org/
34+
1335
s:softwareVersion: 1.0.0
14-
s:applicationCategory: "Earth Observation application package"
15-
s:additionalProperty:
16-
- s:@type: s:PropertyValue
17-
s:name: application-type
18-
s:value: vegetation-index
19-
- s:@type: s:PropertyValue
20-
s:name: domain
21-
s:value: agriculture
22-
schemas:
23-
- http://schema.org/version/9.0/schemaorg-current-http.rdf
36+
s:softwareHelp:
37+
- '@type': s:CreativeWork
38+
s:name: User Manual
39+
s:url: tps://eoap.github.io/application-package-patterns/
40+
41+
s:publisher:
42+
'@type': s:Organization
43+
s:name: Make Earth Observation Great Again
44+
s:email: info@meoga.com
45+
s:identifier: https://ror.org/9999cx000
46+
47+
s:author:
48+
- '@type': s:Role
49+
s:roleName: Project Manager
50+
s:additionalType: http://purl.org/spar/datacite/ProjectManager
51+
s:author:
52+
'@type': s:Person
53+
s:givenName: Lois
54+
s:familyName: Lane
55+
s:email: lois.lane@dailyplanet.com
56+
s:identifier: https://orcid.org/0000-9999-0000-9999
57+
s:affiliation:
58+
'@type': s:Organization
59+
s:name: Daily Planet
60+
s:identifier: https://ror.org/0000cx000
61+
- '@type': s:Role
62+
s:roleName: Researcher
63+
s:additionalType: http://purl.org/spar/datacite/Researcher
64+
s:author:
65+
'@type': s:Person
66+
s:givenName: Clark
67+
s:familyName: Kent
68+
s:email: clark.kent@dailyplanet.com
69+
s:identifier: https://orcid.org/0000-9999-0000-9999
70+
s:affiliation:
71+
'@type': s:Organization
72+
s:name: Daily Planet
73+
s:identifier: https://ror.org/0000cx000
74+
75+
s:contributor:
76+
- '@type': s:Person
77+
s:givenName: Lex
78+
s:familyName: Luthor
79+
s:email: lex.luthor@luthorcorp.com
80+
s:identifier: https://orcid.org/0000-9999-0000-9999
81+
s:affiliation:
82+
'@type': s:Organization
83+
s:name: Luthor Corp
84+
s:identifier: https://ror.org/0000cx000
85+
2486
$graph:
2587
- class: Workflow
2688
id: pattern-10
@@ -29,6 +91,8 @@ $graph:
2991
requirements:
3092
SubworkflowFeatureRequirement: {}
3193
ScatterFeatureRequirement: {}
94+
hints:
95+
- eoap:JSONSchemaHint
3296
inputs:
3397
aoi:
3498
label: area of interest

cwl-workflow/pattern-11.cwl

Lines changed: 75 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,88 @@
11
cwlVersion: v1.0
2+
schemas:
3+
- http://schema.org/version/9.0/schemaorg-current-http.rdf
24
$namespaces:
35
s: https://schema.org/
6+
eoap: "http://oeap.github.io/schema"
7+
8+
s:name: Water bodies detection based on NDWI and the otsu threshold (with DEM)
9+
s:description: Water bodies detection based on NDWI and otsu threshold applied to a single Landsat-8/9 acquisition.
10+
s:dateCreated: '2025-01-01'
11+
s:license:
12+
'@type': s:CreativeWork
13+
s:identifier: Apache-2.0
14+
15+
s:keywords:
16+
- CWL
17+
- Workflow
18+
- Earth Observation
19+
20+
s:operatingSystem:
21+
- Linux
22+
- macOS
23+
s:softwareRequirements:
24+
- https://cwltool.readthedocs.io/en/latest/
25+
- https://www.python.org/
26+
427
s:softwareVersion: 1.0.0
5-
s:applicationCategory: "Earth Observation application package"
6-
s:additionalProperty:
7-
- s:@type: s:PropertyValue
8-
s:name: application-type
9-
s:value: delineation
10-
- s:@type: s:PropertyValue
11-
s:name: domain
12-
s:value: hydrology
13-
schemas:
14-
- http://schema.org/version/9.0/schemaorg-current-http.rdf
28+
s:softwareHelp:
29+
- '@type': s:CreativeWork
30+
s:name: User Manual
31+
s:url: tps://eoap.github.io/application-package-patterns/
32+
33+
s:publisher:
34+
'@type': s:Organization
35+
s:name: Make Earth Observation Great Again
36+
s:email: info@meoga.com
37+
s:identifier: https://ror.org/9999cx000
38+
39+
s:author:
40+
- '@type': s:Role
41+
s:roleName: Project Manager
42+
s:additionalType: http://purl.org/spar/datacite/ProjectManager
43+
s:author:
44+
'@type': s:Person
45+
s:givenName: Lois
46+
s:familyName: Lane
47+
s:email: lois.lane@dailyplanet.com
48+
s:identifier: https://orcid.org/0000-9999-0000-9999
49+
s:affiliation:
50+
'@type': s:Organization
51+
s:name: Daily Planet
52+
s:identifier: https://ror.org/0000cx000
53+
- '@type': s:Role
54+
s:roleName: Researcher
55+
s:additionalType: http://purl.org/spar/datacite/Researcher
56+
s:author:
57+
'@type': s:Person
58+
s:givenName: Clark
59+
s:familyName: Kent
60+
s:email: clark.kent@dailyplanet.com
61+
s:identifier: https://orcid.org/0000-9999-0000-9999
62+
s:affiliation:
63+
'@type': s:Organization
64+
s:name: Daily Planet
65+
s:identifier: https://ror.org/0000cx000
66+
67+
s:contributor:
68+
- '@type': s:Person
69+
s:givenName: Lex
70+
s:familyName: Luthor
71+
s:email: lex.luthor@luthorcorp.com
72+
s:identifier: https://orcid.org/0000-9999-0000-9999
73+
s:affiliation:
74+
'@type': s:Organization
75+
s:name: Luthor Corp
76+
s:identifier: https://ror.org/0000cx000
77+
1578
$graph:
1679
- class: Workflow
1780
id: pattern-11
1881
label: Water bodies detection based on NDWI and the otsu threshold (with DEM)
1982
doc: Water bodies detection based on NDWI and otsu threshold applied to a single Landsat-8/9 acquisition
2083
requirements: []
84+
hints:
85+
- eoap:JSONSchemaHint
2186
inputs:
2287
aoi:
2388
label: area of interest

0 commit comments

Comments
 (0)