252 lines
6.4 KiB
Python
252 lines
6.4 KiB
Python
KML = """{
|
|
"logFormat": "zip",
|
|
"entryType": "@class",
|
|
"spatials": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.LogEntryLocation"
|
|
],
|
|
"actions": [],
|
|
"boards": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.ShowBoardLogEntry"
|
|
],
|
|
"analyzers": {
|
|
"analysis.analyzers": [
|
|
"BiogamesCategorizer",
|
|
"LocationAnalyzer"
|
|
]
|
|
},
|
|
"sequences": {
|
|
"start": "de.findevielfalt.games.game2.instance.log.entry.LogEntryCache",
|
|
"end": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.LogEntryInstanceAction",
|
|
"action.@class": "de.findevielfalt.games.game2.instance.action.CacheEnableAction"
|
|
}
|
|
},
|
|
"custom": {
|
|
"simulation_rounds": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.LogEntryQuestion"
|
|
],
|
|
"simu_data": [
|
|
"de.findevielfalt.games.game2.instance.data.sequence.simulation.SimulationBoardData"
|
|
],
|
|
"instance_start": "de.findevielfalt.games.game2.instance.log.entry.LogEntryStartInstance",
|
|
"instance_id": "instance_id",
|
|
"instance_config_id": "config.@id",
|
|
"sequences2": {
|
|
"id_field": "sequence_id",
|
|
"start": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.ShowSequenceLogEntry",
|
|
"action": "START"
|
|
},
|
|
"end": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.ShowSequenceLogEntry",
|
|
"action": "PAUSE"
|
|
}
|
|
},
|
|
"coordinates": "location.coordinates",
|
|
"metadata": {
|
|
"timestamp": "timestamp",
|
|
"gamefield": "instance_id",
|
|
"user": "player_group_name"
|
|
}
|
|
},
|
|
"source": {
|
|
"type": "Biogames",
|
|
"username": "ba",
|
|
"password": "853451",
|
|
"host": "http://biodiv2govm.kinf.wiai.uni-bamberg.de"
|
|
},
|
|
"render": [
|
|
"KMLRender"
|
|
]
|
|
}"""
|
|
|
|
ACTIVITY = """{
|
|
"logFormat": "zip",
|
|
"entryType": "@class",
|
|
"spatials": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.LogEntryLocation"
|
|
],
|
|
"actions": [],
|
|
"boards": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.ShowBoardLogEntry"
|
|
],
|
|
"analyzers": {
|
|
"analysis.analyzers": [
|
|
"BiogamesCategorizer",
|
|
"ActivityMapper"
|
|
]
|
|
},
|
|
"sequences": {
|
|
"start": "de.findevielfalt.games.game2.instance.log.entry.LogEntryCache",
|
|
"end": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.LogEntryInstanceAction",
|
|
"action.@class": "de.findevielfalt.games.game2.instance.action.CacheEnableAction"
|
|
}
|
|
},
|
|
"custom": {
|
|
"simulation_rounds": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.LogEntryQuestion"
|
|
],
|
|
"simu_data": [
|
|
"de.findevielfalt.games.game2.instance.data.sequence.simulation.SimulationBoardData"
|
|
],
|
|
"instance_start": "de.findevielfalt.games.game2.instance.log.entry.LogEntryStartInstance",
|
|
"instance_id": "instance_id",
|
|
"instance_config_id": "config.@id",
|
|
"sequences2": {
|
|
"id_field": "sequence_id",
|
|
"start": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.ShowSequenceLogEntry",
|
|
"action": "START"
|
|
},
|
|
"end": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.ShowSequenceLogEntry",
|
|
"action": "PAUSE"
|
|
}
|
|
},
|
|
"coordinates": "location.coordinates",
|
|
"metadata": {
|
|
"timestamp": "timestamp",
|
|
"gamefield": "instance_id",
|
|
"user": "player_group_name"
|
|
}
|
|
},
|
|
"source": {
|
|
"type": "Biogames",
|
|
"username": "ba",
|
|
"password": "853451",
|
|
"host": "http://biodiv2govm.kinf.wiai.uni-bamberg.de"
|
|
},
|
|
"render": [
|
|
"ActivityMapper"
|
|
]
|
|
}"""
|
|
|
|
KML_geo = """{
|
|
"logFormat": "neocartographer",
|
|
"entryType": "type",
|
|
"spatials": [
|
|
"location"
|
|
],
|
|
"actions": [],
|
|
"boards": [],
|
|
"analyzers": {
|
|
"analysis.analyzers": [
|
|
"SimpleCategorizer",
|
|
"LocationAnalyzer"
|
|
]
|
|
},
|
|
"sequences": {},
|
|
"custom": {
|
|
"coordinates": "location.coordinates",
|
|
"metadata": {
|
|
"timestamp": "timestamp",
|
|
"gamefield": "instance_id",
|
|
"user": "player_group_name"
|
|
}
|
|
},
|
|
"source": {
|
|
"type": "Geogames",
|
|
"host": "http://log_data/",
|
|
"path": "neocartographer"
|
|
},
|
|
"render": [
|
|
"KMLRender"
|
|
]
|
|
}"""
|
|
|
|
OEB = """{
|
|
"logFormat": "zip",
|
|
"entryType": "@class",
|
|
"spatials": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.LogEntryLocation"
|
|
],
|
|
"actions": [
|
|
"...QuestionAnswerEvent",
|
|
"...SimuAnswerEvent"
|
|
],
|
|
"boards": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.ShowBoardLogEntry"
|
|
],
|
|
"analyzers": {
|
|
"analysis.analyzers": [
|
|
"BiogamesCategorizer",
|
|
"LocationAnalyzer",
|
|
"BiogamesDuration",
|
|
"BiogamesTasks",
|
|
"GameFieldInstanceGroup"
|
|
]
|
|
},
|
|
"sequences": {
|
|
"start": "de.findevielfalt.games.game2.instance.log.entry.LogEntryCache",
|
|
"end": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.LogEntryInstanceAction",
|
|
"action.@class": "de.findevielfalt.games.game2.instance.action.CacheEnableAction"
|
|
}
|
|
},
|
|
"custom": {
|
|
"simulation_rounds": [
|
|
"de.findevielfalt.games.game2.instance.log.entry.LogEntryQuestion"
|
|
],
|
|
"simu_data": [
|
|
"de.findevielfalt.games.game2.instance.data.sequence.simulation.SimulationBoardData"
|
|
],
|
|
"instance_start": "de.findevielfalt.games.game2.instance.log.entry.LogEntryStartInstance",
|
|
"instance_id": "instance_id",
|
|
"instance_config_id": "config.@id",
|
|
"sequences2": {
|
|
"id_field": "sequence_id",
|
|
"start": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.ShowSequenceLogEntry",
|
|
"action": "START"
|
|
},
|
|
"end": {
|
|
"@class": "de.findevielfalt.games.game2.instance.log.entry.ShowSequenceLogEntry",
|
|
"action": "PAUSE"
|
|
}
|
|
},
|
|
"coordinates": "location.coordinates",
|
|
"metadata": {
|
|
"timestamp": "timestamp",
|
|
"gamefield": "instance_id",
|
|
"user": "player_group_name"
|
|
}
|
|
},
|
|
"source": {
|
|
"type": "Biogames",
|
|
"username": "ba",
|
|
"password": "853451",
|
|
"host": "https://biogames.kinf.wiai.uni-bamberg.de"
|
|
},
|
|
"render": [
|
|
"OEBRender"
|
|
]
|
|
}
|
|
|
|
|
|
"""
|
|
CONFIGS = {
|
|
"Biogames": {
|
|
"ActivityMapper": ACTIVITY,
|
|
"KML": KML,
|
|
"DauerEntfernungPunkteZeit": OEB,
|
|
},
|
|
"Geogames": {
|
|
"KML": KML_geo,
|
|
},
|
|
}
|
|
|
|
URLS = {
|
|
"KML": "/",
|
|
"DauerEntfernungPunkteZeit": "/",
|
|
"ActivityMapper": "#",
|
|
}
|
|
|
|
HOSTS = {
|
|
#"Biogames": "http://biogames.potato.kinf.wiai.uni-bamberg.de",
|
|
#"Biogames": "http://www.biodiv2go.de",
|
|
"Biogames": "http://biogames.kinf.wiai.uni-bamberg.de/",
|
|
"Geogames": "http://log_data/",
|
|
}
|
|
|
|
RESULT_HOST = "http://results.ma.potato.kinf.wiai.uni-bamberg.de/" |