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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX p: <http://www.wikidata.org/prop/> | |
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX xml: <http://www.w3.org/XML/1998/namespace> | |
PREFIX wikibase: <http://wikiba.se/ontology#> | |
PREFIX schema: <http://schema.org/> | |
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> |
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 cm: <http://vocab.linkeddata.es/def/conceptual-mapping#> | |
prefix cmf: <http://vocab.linkeddata.es/def/conceptual-mapping/functions_list/> | |
prefix cmp: <http://vocab.linkeddata.es/def/conceptual-mapping/protocols_list/> | |
prefix wotsec: <https://www.w3.org/2019/wot/security> | |
prefix def: <http://vocab.linkeddata.es/def> | |
prefix owl: <http://www.w3.org/2002/07/owl> | |
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns> | |
prefix rdflicense: <http://purl.org/NET/rdflicense> | |
prefix terms: <http://purl.org/dc/terms> | |
prefix xsd: <http://www.w3.org/2001/XMLSchema#> |
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
{ | |
"@context": { | |
"schema": "http://schema.org/", | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
"bts": "http://discovery.biothings.io/bts/" | |
}, | |
"@graph": [{ | |
"@id": "bts:CTSADataset", | |
"@type": "rdfs:Class", |
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
{ | |
"@graph" : [ { | |
"@id" : "http://journal1.xyz", | |
"@type" : "schema:Periodical", | |
"hasPart" : "http://pub1.xyz", | |
"issn" : "issn:1234", | |
"name" : "A journal" | |
}, { | |
"@id" : "http://pub1.xyz", | |
"@type" : "schema:ScholarlyArticle" |
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 schema: <http://schema.org/> | |
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
prefix bts: <http://discovery.biothings.io/bts/> | |
prefix xsd: <http://www.w3.org/2001/XMLSchema#> | |
prefix dct: <http://purl.org/dc/terms/> | |
bts:CTSADatasetShape { | |
schema:name xsd:string // dct:description "The name of the CTSA Dataset" ; | |
schema:description xsd:string // dct:description "A description of the CTSA Dataset" ; |
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
SET currentDir=%cd% | |
cd C:\utils\Stream\kafka_2.11-1.0.1 | |
start "Zookeeper" /min bin\windows\zookeeper-server-start.bat config/zookeeper.properties | |
timeout 5 | |
start "Kafka" /min bin\windows\kafka-server-start.bat config/server.properties | |
cd %currentDir% |
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 com.example.http4sfile | |
import cats.effect.IO | |
import org.http4s._ | |
import org.http4s.dsl.Http4sDsl | |
import org.http4s.multipart.{Multipart, Part} | |
import org.http4s.server.blaze.BlazeBuilder | |
import org.http4s.util.StreamApp | |
import org.http4s.MediaType._ | |
import org.http4s.headers._ |
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 | |
let 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
'use strict'; | |
let http= require('http'), | |
url = require('url'), | |
qs = require('querystring'); | |
let Pedido = require('./pedido.js'); | |
let pedido = new Pedido; | |
pedido.insertaProducto(23,"Botella",3); |
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
'use strict'; | |
class Pedido { | |
constructor() { | |
this.productos = {}; | |
} | |
getProducto(id) { | |
if (id in this.productos) | |
return this.productos[id]; |
NewerOlder