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 dbp: <http://dbpedia.org/property/> | |
prefix dbo: <http://dbpedia.org/ontology/> | |
prefix dbr: <http://dbpedia.org/resource/> | |
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
select * where { | |
?obra dbo:author ?author . | |
?obra dbp:year ?year ; | |
dbp:type ?type . | |
FILTER (?year > 1500 && ?year < 1600) |
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 dbo: <http://dbpedia.org/ontology/> | |
prefix dbr: <http://dbpedia.org/resource/> | |
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
select * where { | |
?obra dbo:author dbr:El_Greco | |
} |
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 dbo: <http://dbpedia.org/ontology/> | |
prefix dbr: <http://dbpedia.org/resource/> | |
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
select * where { | |
dbr:El_Greco rdf:type ?o | |
} |
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 :<http://example.org/> | |
PREFIX foaf:<http://xmlns.com/foaf/0.1/> | |
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#> | |
CONSTRUCT { | |
?Course :hasShape <Course> | |
} where { | |
{ SELECT ?Course { | |
?Course rdfs:label ?o . | |
} GROUP BY ?Course HAVING (COUNT(*)=1)} |
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
h1 { | |
color: blue; | |
background: cyan; | |
box-shadow: 3px 3px 5px 6px grey; | |
border-radius: 5px; | |
width: 50%; | |
} |
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
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="/"> | |
<html> | |
<link rel="stylesheet" href="pedido.css" /> | |
<body> | |
<h1>Lista de productos</h1> | |
<ul><xsl:apply-templates /></ul> | |
</body> |
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="pedido"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="producto" type="tipoProducto" maxOccurs="unbounded"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> |
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
<!ELEMENT pedido (producto*) > | |
<!ELEMENT producto (nombre,cantidad)> | |
<!ELEMENT nombre (#PCDATA)> | |
<!ELEMENT cantidad (#PCDATA)> | |
<!ATTLIST producto codigo CDATA #REQUIRED> |
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
<?xml version="1.0" ?> | |
<pedido> | |
<producto codigo="RX2"> | |
<nombre>Rotulador RX2</nombre> | |
<cantidad>20</cantidad> | |
</producto> | |
<producto codigo="L23"> | |
<nombre>Grapadora Lin</nombre> | |
<cantidad>2</cantidad> | |
</producto> |
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 es.poo | |
import org.scalatest._ | |
import Matchers._ | |
class CorrectorSpec extends FunSpec with Matchers { | |
describe("Corrector") { | |
val preguntas = Preguntas( | |
items = List(Item(pregunta = 1, correcta = "a"), |