Skip to content

Instantly share code, notes, and snippets.

View gaurav's full-sized avatar

Gaurav Vaidya gaurav

View GitHub Profile
@gaurav
gaurav / .vimrc
Created December 5, 2018 15:48
My .vimrc
" Activate pathogen.
call pathogen#infect()
call pathogen#helptags()
" These are a few of my favourite settings.
syntax on
set background=dark
set hlsearch
set incsearch
set smartindent
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:ns1="http://www.w3.org/2002/07/owl#"
xmlns:ns2="http://www.essepuntato.it/2012/04/tvc/"
xmlns:ns3="http://rs.tdwg.org/dwc/terms/"
xmlns:ns4="http://vocab.phyloref.org/phyloref/testcase.owl#"
xmlns:ns5="http://purl.org/opentree/nexson#"
xmlns:ns6="http://purl.obolibrary.org/obo/"
xmlns:ns7="http://ontology.phyloref.org/phyloref.owl#"
xmlns:ns8="http://purl.org/spar/pso/"
[{
"@context": "https://www.phyloref.org/curation-tool/json/phyx.json",
"@type": "owl:Ontology",
"citation": "Example"
}]
@gaurav
gaurav / test.json
Last active December 13, 2017 15:30
Converting a blank node from JSON-LD (test.json) -> XML/RDF (test.xml) -> JSON-LD (test_back.json) and Turtle (test_back.ttl)
{
"@context": {
"obo": "http://purl.obolibrary.org/obo/",
"denotes": {
"@id": "obo:IAO_0000219",
"@type": "@id"
}
},
@gaurav
gaurav / sources.sparql
Created November 26, 2015 21:08
Searching for sources within a category on the DBpedia commons
SELECT DISTINCT ?page ?source WHERE {
?page <http://purl.org/dc/terms/subject> <http://commons.dbpedia.org/resource/Category:Media_from_Open_Beelden> .
?page dcterms:source ?source
}
@gaurav
gaurav / BHLposter.svg
Created May 28, 2015 22:24
BHL poster for Biology StackExchange
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gaurav
gaurav / gist:c552109b9d66e44d2aed
Last active August 29, 2015 14:13
If Scandinavia was a family
If Scandinavia was a family, Sweden'd be the obnoxiously anxious hipster older brother.
Denmark would be the hippie sister, smoking weed on her room while googling "dolphin telepathy".
She'd have a penchant for "funny" hats.
Norway would be the chipper healthy brother who's always out on some outdoor activity. He use the
mixer to do "nutritious" kale shakes.
Finland would be the alcoholic, solopsist brother whom nobody in the family really understand. He
collects knives.
Iceland would be the illegitimate sibling whom nobody ever talks about since he seems bat shit crazy.
Oh, I forgot Åland. She's the only genuinely healthy person in the family. She's boring,
conventionally pretty and likes to travel.
@gaurav
gaurav / gist:6da2c17bc0168ef6798f
Last active August 29, 2015 14:06
Instructions on installing PyQt4 on MacOS X using Homebrew
brew install qt
brew install sip
[download PyQT from http://www.riverbankcomputing.com/software/pyqt/download and unzip]
/usr/local/bin/python configure-ng.py
make
make install
<http://commons.dbpedia.org/resource/File:Buta-1,3-diene_200.svg> <http://purl.org/dc/terms/created> "2014-02-22"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://commons.dbpedia.org/resource/File:Buta-1,3-diene_200.svg__https://upload.wikimedia.org/wikipedia/commons/8/8__1> <http://dbpedia.org/ontology/inchi> "InChI=1S/C4H6/c1-3-4-2/h3-4H,1-2H2;"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://commons.dbpedia.org/resource/File:Buta-1,3-diene_200.svg__https://upload.wikimedia.org/wikipedia/commons/8/8__1> <http://purl.org/dc/terms/references> <http://www.nlm.nih.gov/cgi/mesh/2014/MB_cgi?term=106-99-0&rn=1&rr=1> .
<http://commons.dbpedia.org/resource/File:Buta-1,3-diene_200.svg__https://upload.wikimedia.org/wikipedia/commons/8/8__1> <http://purl.org/dc/terms/references> <http://esis.jrc.ec.europa.eu/lib/esis_reponse.php?GENRE=ECNO&ENTREE=203-450-8&PGM=esi&FROM=FORMULAIRE&CPT_DEB=1> .
<http://commons.dbpedia.org/resource/File:Buta-1,3-diene_200.svg> <http://dbpedia.org/ontology/license> <http://creativec
University of Alaska Museum Bird Collection (UAM), University of Alaska Fairbanks
University of Wyoming Museum of Vertebrates
Denver Museum of Nature & Science Bird Collection
Division of Birds, Museum of Southwestern Biology (MSB), University of New Mexico, Albuquerque
Estonian Nature Observations Database, Estonian Nature Observations Database
Moore Laboratory of Zoology (MLZ)
Museum of Comparative Zoology, Harvard University: Museum of Comparative Zoology, Harvard University
UMMZ Bird Collection
ArtDatabanken: Artdata
Royal Ontario Museum: Ornithology Collection Non Passeriformes - Royal Ontario Museum