This file contains hidden or 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
https://docs.google.com/document/d/1kuIxwcJZdMK2rQZy09N-h-Rbn3g1wDUooKMje9futKE/pub |
This file contains hidden or 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
# Routes | |
# This file defines all application routes (Higher priority routes first) | |
# ~~~~ | |
# Home page | |
GET /saluda controllers.Application.saludaEdad(nombre: String, edad: Int) | |
GET / controllers.Application.index() |
This file contains hidden or 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
@(country: Country) | |
<html> | |
<h1>País</h1> | |
<p>@country.code - @country.name</p> | |
</html> |
This file contains hidden or 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
@(countries: List[Country]) | |
<html> | |
<h1>Vista de países</h1> | |
<table> | |
@for(country <- countries) { | |
<tr> | |
<td>@country.code</td> | |
<td>@country.name</td> | |
</tr> |
This file contains hidden or 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
package controllers; | |
import models.Country; | |
import play.data.Form; | |
import play.mvc.Controller; | |
import play.mvc.Result; | |
import views.html.*; | |
public class Application extends Controller { |
This file contains hidden or 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
package models; | |
import javax.persistence.Entity; | |
import javax.persistence.Id; | |
import com.avaje.ebean.Ebean; | |
import play.db.ebean.Model; | |
@Entity |
This file contains hidden or 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
# Creators and collections of Europeana objects from spain | |
PREFIX dc: <http://purl.org/dc/elements/1.1/> | |
PREFIX ens: <http://www.europeana.eu/schemas/edm/> | |
PREFIX edm: <http://www.europeana.eu/schemas/edm/> | |
SELECT * | |
WHERE { | |
?object dc:creator ?Creator ; | |
edm:collectionName ?Collection ; | |
edm:country "spain" ; | |
ens:aggregatedCHO ?CHO. |
This file contains hidden or 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
# Artistas de estilo manierista que tienen otro estilo diferente al manierista | |
PREFIX dbo: <http://dbpedia.org/ontology/> | |
SELECT * WHERE { | |
?x dbo:movement <http://dbpedia.org/resource/Mannerism> . | |
dbo:movement ?y . | |
FILTER (?y != <http://dbpedia.org/resource/Mannerism>) | |
} |
This file contains hidden or 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
@prefix wi-people: <http://data.webfoundation.org/webindex/people/> . | |
@prefix indicator: <http://data.webfoundation.org/webindex/v2013/indicator/> . | |
@prefix sdmxConcept: <http://purl.org/linked-data/sdmx/2009/concept#> . | |
@prefix sdmxAttribute: <http://purl.org/linked-data/sdmx/2009/attribute#> . | |
@prefix cex: <http://purl.org/weso/ontology/computex#> . | |
@prefix dcterms: <http://purl.org/dc/terms/> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix obs: <http://data.webfoundation.org/webindex/v2013/observation/> . | |
@prefix time: <http://www.w3.org/2006/time#> . | |
@prefix sdmxSubject: <http://purl.org/linked-data/sdmx/2009/subject#> . |
This file contains hidden or 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
import scala.tools.nsc.Settings | |
import scala.tools.nsc.interpreter.ILoop | |
object TestConsole extends App { | |
val settings = new Settings | |
settings.usejavacp.value = true | |
settings.deprecation.value = true | |
new SampleILoop().process(settings) | |
} |
NewerOlder