Skip to content

Instantly share code, notes, and snippets.

View ficolo's full-sized avatar
🎯
Focusing

Federico López Gómez ficolo

🎯
Focusing
View GitHub Profile
{
BreadcrumbList:[
{
"xpath":"/HTML[1]/BODY[1]/DIV[2]/DIV[1]/OL[1]",
"id":null,
"refs":[
],
"type":"http://schema.org/BreadcrumbList",
"itemid":null,
@ficolo
ficolo / pom.xml
Last active December 6, 2017 00:53
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>edu.univalle.eisc</groupId>
<artifactId>semantic-annotation</artifactId>
<version>1.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>My wonderfull scala app</description>
<inceptionYear>2015</inceptionYear>
<licenses>
<license>
@ficolo
ficolo / App.scala
Last active December 6, 2017 00:54
import org.apache.spark.sql.functions._
import com.databricks.spark.corenlp.functions._
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
object HelloWorld {
def main(args: Array[String]): Unit = {
val conf = new SparkConf().setAppName("Simple Application").setMaster("local[*]")
{
"_id": "ObjectId(5ae03cc352cf9a2d956ad9ff)",
"mpId": "MP:0013661",
"mixSynQf": [
"MP:0013661",
"abnormal myeloid cell number",
"decreased erythroid progenitor cell number",
"Reticulocytosis",
"decreased basophil cell number",
"increased myeloid cell number",
@ficolo
ficolo / datamodel.graphql
Created September 14, 2018 09:47
Example prisma graphql datamodel
type User {
id: ID! @unique
name: String
interestedIn: [University!]!
}
type University {
id: ID! @unique
name: String
careers: [Career!]!
@ficolo
ficolo / nodes-001.json
Created September 14, 2018 09:50
Example data for prisma
{
"valueType": "nodes",
"values": [
{
"_typeName": "User",
"id": "1",
"name": "Federico"
},
{
"_typeName": "University",
@ficolo
ficolo / PMC4968803_linkingdata.rdf
Created November 15, 2018 09:30
Biotea output RDF files for the PMC4968803
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:wd="http://www.wikidata.org/entity/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:void="http://rdfs.org/ns/void#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsp="http://www.owl-ontologies.com/2005/08/07/xsp.owl#"
xmlns:prov="http://www.w3.org/ns/prov#"
xmlns:biotea="https://biotea.github.io/biotea-ontololgy#"
@ficolo
ficolo / BFOROS-Wrapper-0.png
Last active December 26, 2018 14:31
Tutorial images
BFOROS-Wrapper-0.png
@prefix nanopub: <http://www.nanopub.org/nschema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix opm: <http://purl.org/net/opmv/ns#> .
@prefix pav: <http://swan.mindinformatics.org/ontologies/1.2/pav/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sio: <http://semanticscience.org/resource/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://rdf.biosemantics.org/vocabularies/gene_disease_nanopub_example#> .
:NanoPub_1_Head {

SPOT developer's talk [24/05/2019]

Spark 101 - Federico López Gómez

Setting up your environment

Requirements

  • You need to have Java 8 installed, I tried to run Spark using Java 11 and it didn't work, so please make sure that you JAVA_HOME environment variable is pointing to your Java 8 installation directory. In MacOS you can check it like this:
    • To know where is you JAVA_HOME pointing to: