Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Sep 5, 2023
1 parent d800673 commit 60247db
Show file tree
Hide file tree
Showing 3 changed files with 293 additions and 232 deletions.
6 changes: 6 additions & 0 deletions duck/processes/wps_clintai.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
FORMAT_PNG = Format("image/png", extension=".png", encoding="base64")

MEDIA_ROLE = "http://www.opengis.net/spec/wps/2.0/def/process/description/media"
INFO_ROLE = "https://clint.dkrz.de/spec/crai/info"

models_list = list(craimodels.info_models().keys())

Expand Down Expand Up @@ -83,6 +84,11 @@ def __init__(self):
version="0.1.0",
abstract="AI-enhanced climate service to infill missing values in climate datasets.",
metadata=[
Metadata(
title="CRAI Info Model",
href='{"test":1}',
role=INFO_ROLE,
),
Metadata(
title="CRAI Logo",
href="https://github.com/FREVA-CLINT/duck/raw/main/docs/source/_static/crai_logo.png",
Expand Down
6 changes: 1 addition & 5 deletions duck/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ def display_json(data):

def query():
query_str = """
SELECT ?process ?dataset ?variable ?startTime ?endTime ?input ?output ?min ?max ?mean ?stddev ?info ?histogram
SELECT ?process ?dataset ?variable ?startTime ?endTime ?input ?output ?info ?histogram
WHERE {
?exec rdf:type provone:Execution ;
rdfs:label ?process ;
clint:dataset_name ?dataset ;
clint:variable_name ?variable ;
prov:startedAtTime ?startTime ;
prov:endedAtTime ?endTime ;
clint:min ?min ;
clint:max ?max ;
clint:mean ?mean ;
clint:stddev ?stddev ;
clint:info ?info ;
clint:histogram ?histogram .
Expand Down
Loading

0 comments on commit 60247db

Please sign in to comment.