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,comentarios)> | |
<!ELEMENT nombre (#PCDATA)> | |
<!ELEMENT cantidad (#PCDATA)> | |
<!ELEMENT comentarios (#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" encoding="UTF-8"?> | |
<quiz> | |
<question type="multichoice"> | |
<name> | |
<text>EspacioNombres</text> | |
</name> | |
<questiontext format="html"> | |
<text><![CDATA[<p>Dado el siguiente fichero:</p> | |
<pre><prueba xmlns="http://n1.org" <br /> xmlns:aa="http://n2.org"<br /> <aa xmlns="http://n3.org" <br /> xmlns:bb="http://n4.org"><br /> Hola<br /> </aa><br /></prueba><br /><br />¿Cuál es el espacio de nombres al que corresponde el elemento aa ?</pre>]]></text> | |
</questiontext> |
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
<pedido> | |
<producto codigo="R23"> | |
<nombre>Rotulador RX2</nombre> | |
<cantidad>20</cantidad> | |
<comentarios>Comprobad que escriben</comentarios> | |
</producto> | |
<producto codigo="G56"> | |
<nombre>Grapadora Lin</nombre> | |
<cantidad>2</cantidad> | |
<comentarios>Envuelta para regalo</comentarios> |
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
var http= require('http'), | |
url = require('url'), | |
qs = require('querystring'), | |
Negotiator = require('negotiator'); | |
var alumnos = require('./alumnos.js'); | |
http.createServer(procesa).listen(3000); | |
console.log("Servidor arrancado"); |
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
var http= require('http'), | |
url = require('url'), | |
qs = require('querystring'); | |
var alumnos = require('./alumnos.js'); | |
http.createServer(procesa).listen(3000); | |
console.log("Servidor arrancado"); | |
function procesa(req,resp) { |
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
/* | |
* Ejemplo de tipo abstracto para gestionar lista de alumnos | |
* Cada alumno tiene un nombre y una edad | |
*/ | |
// Internamente se representan como una sola lista | |
var alumnos = []; | |
// Se inicializan un par de valores | |
alumnos.push({ "nombre": "pepe", "edad": 23 }); |
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX dbp: <http://dbpedia.org/property/> | |
prefix : <http://ejemplo.org/> | |
SELECT ?name ?population ?v1 ?v2 WHERE { | |
SERVICE <http://dbpedia.org/sparql> { | |
SELECT ?name ?population WHERE { | |
?c rdf:type dbo:Country . |
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://ejemplo.org/> | |
select ?country ?v1 ?v2 where { | |
?x :country ?country ; :value ?v1 ; :indicator :Man . | |
?y :country ?country ; :value ?v2 ; :indicator :Woman . | |
} |
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://ejemplo.org/> . | |
:c11 :country :Spain ; :indicator :Man ; :value 25 . | |
:c12 :country :Spain ; :indicator :Woman ; :value 20 . | |
:c21 :country :Vietnam ; :indicator :Man ; :value 15 . | |
:c22 :country :Vietnam ; :indicator :Woman ; :value 19 . |
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX dbo: <http://dbpedia.org/ontology/> | |
PREFIX dbpprop: <http://dbpedia.org/property/> | |
PREFIX dbprop: <http://dbpedia.org/property/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT ?x ?codigo ?poblacion ?name WHERE { | |
?x rdf:type dbo:Country . | |
?x rdf:type <http://schema.org/Country> . | |
?x dbpprop:iso3166code ?codigo . |