initial stage
This commit is contained in:
parent
b2329a7b63
commit
735f08aee8
|
@ -40,6 +40,14 @@ def map_fos_topic_to_domain(fos: str):
|
|||
|
||||
return None
|
||||
|
||||
|
||||
def trasform_interoperability(p: dict) -> dict:
|
||||
p = trasform_catalog_entity(p)
|
||||
if 'domain' in p:
|
||||
p['domain'] = {"domain": p['domain']}
|
||||
return p
|
||||
|
||||
|
||||
def trasform_product(p: dict) -> dict:
|
||||
p = trasform_graph_entity(p)
|
||||
p['accessRights'] = list(set(
|
||||
|
@ -72,7 +80,7 @@ transform_entities = {
|
|||
"topics": trasform_graph_entity,
|
||||
"venues": trasform_graph_entity,
|
||||
# EOSC catalog entities
|
||||
"interoperability": trasform_catalog_entity,
|
||||
"interoperability": trasform_interoperability,
|
||||
"services": trasform_catalog_entity,
|
||||
"training": trasform_catalog_entity,
|
||||
}
|
|
@ -681,6 +681,9 @@ mappings['products'] = {
|
|||
#
|
||||
mappings['services'] = {
|
||||
"properties": {
|
||||
"access_modes": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"category": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -751,6 +754,24 @@ mappings['services'] = {
|
|||
},
|
||||
"type": "text"
|
||||
},
|
||||
"relatedPlatforms": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
"relatedResources": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
"tags": {
|
||||
"type": "keyword"
|
||||
},
|
||||
|
@ -759,6 +780,9 @@ mappings['services'] = {
|
|||
},
|
||||
"webpage": {
|
||||
"type": "text"
|
||||
},
|
||||
"year": {
|
||||
"type": "long"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -768,6 +792,18 @@ mappings['interoperability'] = {
|
|||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"domain": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"guidelineType": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
"id": {
|
||||
"type": "keyword"
|
||||
},
|
||||
|
@ -826,9 +862,6 @@ mappings['training'] = {
|
|||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"duration": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"domain": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -840,6 +873,9 @@ mappings['training'] = {
|
|||
}
|
||||
}
|
||||
},
|
||||
"duration": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"expertiseLevel": {
|
||||
"type": "keyword"
|
||||
},
|
||||
|
@ -870,17 +906,20 @@ mappings['training'] = {
|
|||
"qualifications": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"title": {
|
||||
"type": "text"
|
||||
},
|
||||
"targetGroup": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"title": {
|
||||
"type": "text"
|
||||
},
|
||||
"type": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"url": {
|
||||
"type": "text"
|
||||
},
|
||||
"year": {
|
||||
"type": "long"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue