forked from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from Arquisoft/Ruben
Arreglados errores y Test Game
- Loading branch information
Showing
10 changed files
with
181 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Todas las consultas | ||
var queries = | ||
// pregunta = Imagen de un presidente de EE.UU., opcion = Nombres de presidentes de EE.UU. | ||
[`SELECT ?option ?optionLabel ?imageLabel | ||
WHERE { | ||
?option wdt:P31 wd:Q5; | ||
wdt:P39 wd:Q11696; | ||
wdt:P18 ?imageLabel. | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],es". } | ||
} | ||
`, | ||
// pregunta = Imagen de un país, opcion = Pais | ||
`SELECT DISTINCT ?option ?optionLabel ?imageLabel | ||
WHERE { | ||
?option wdt:P31 wd:Q6256; | ||
rdfs:label ?optionLabel; | ||
OPTIONAL { ?option wdt:P18 ?imageLabel. } | ||
FILTER(lang(?optionLabel) = "es") | ||
FILTER EXISTS { ?option wdt:P18 ?imageLabel } | ||
} | ||
`]; | ||
|
||
// Todas las preguntas, en el mismo orden que las consultas | ||
var questions = ["¿Que presidente de EE.UU es el que se muestra en la imagen?", | ||
"¿Que país es el que aparece en la siguiente imagen?"]; | ||
|
||
module.exports = { queries, questions }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Todas las consultas | ||
var queries = | ||
// pregunta = Pais, opcion = capitales | ||
[`SELECT ?question ?questionLabel ?option ?optionLabel | ||
WHERE { | ||
?question wdt:P31 wd:Q6256; wdt:P36 ?option. | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],es". } | ||
} | ||
LIMIT 200 | ||
`, | ||
// pregunta = Club de futbol, opcion = estadio | ||
` | ||
SELECT ?question ?questionLabel ?option ?optionLabel | ||
WHERE { | ||
?question wdt:P31 wd:Q476028. | ||
?question wdt:P115 ?option. | ||
?question wdt:P17 wd:Q29. | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],es". } | ||
} | ||
LIMIT 100 | ||
`, | ||
// Pregunta = Numero en la tabla periodica, opcion = Elemento | ||
` | ||
SELECT ?option ?optionLabel ?questionLabel (SUBSTR(?símbolo, 1, 1) AS ?sym) | ||
WHERE { | ||
?option wdt:P31 wd:Q11344; | ||
wdt:P1086 ?questionLabel. | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], es". } | ||
} | ||
LIMIT 100 | ||
`, | ||
// Pregunta = Batalla historica, opcion = año | ||
`SELECT ?question ?questionLabel ?optionLabel | ||
WHERE { | ||
?question wdt:P31 wd:Q178561. | ||
?question wdt:P580 ?date. | ||
FILTER (YEAR(?date) >= 1500 && YEAR(?date) <= 2000) | ||
BIND(YEAR(?date) as ?optionLabel) | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],es". } | ||
} | ||
LIMIT 100 | ||
`]; | ||
|
||
// Todas las preguntas, en el mismo orden que las consultas | ||
var questions = ["¿Cuál es la capital de ", | ||
"¿En que campo juega el ", | ||
"¿Cuál es el elemento de la tabla periódica número ", | ||
"¿En que año ocurrio la "]; | ||
|
||
module.exports = { queries, questions }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
REACT_APP_API_ENDPOINT=http://localhost:8000 | ||
REACT_APP_API_GENERATOR_ENDPOINT=http://localhost:8003 | ||
REACT_GENERATOR_APP_API_ENDPOINT=http://localhost:8003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.