Skip to content

Instantly share code, notes, and snippets.

Avatar

Gaurav Vaidya gaurav

View GitHub Profile
View PFB dd_100.avro metadata.json
{
"nodes": [
{
"name": "root",
"ontology_reference": "",
"values": {},
"links": [],
"properties": []
},
{
@gaurav
gaurav / CGEX_CtxAll010-shex-validation.json
Created Jan 14, 2020
ShEx validation of example validation for CGEX_CtxAll010
View CGEX_CtxAll010-shex-validation.json
{
"type": "Failure",
"node": "http://dataexchange.clinicalgenome.org/CGEX_CtxAll010",
"shape": "http://dataexchange.clinicalgenome.org/interpretation/shacl/shapes/ContextualAllele",
"errors": [
{
"type": "TypeMismatch",
"triple": {
"type": "TestedTriple",
"subject": "http://dataexchange.clinicalgenome.org/CGEX_CtxAll010",
@gaurav
gaurav / field_summaries.2019-nov-4
Created Nov 4, 2019
List of fields used in PubMed Annual Baseline 2019
View field_summaries.2019-nov-4
# '.' indicates XML nodes
# '/' indicates XML attributes
# '#' are XML values, but only for some fields
(PubmedArticleSet.PubmedArticle.MedlineCitation.Article.Abstract.AbstractText,34722040)
(PubmedArticleSet.PubmedArticle.MedlineCitation.Article.Abstract.AbstractText.DispFormula.math.mfrac.mn,2)
(PubmedArticleSet.PubmedArticle.MedlineCitation.Article.Abstract.AbstractText.DispFormula.math.mfrac.mrow.mi,7)
(PubmedArticleSet.PubmedArticle.MedlineCitation.Article.Abstract.AbstractText.DispFormula.math.mfrac.mrow.mo,6)
(PubmedArticleSet.PubmedArticle.MedlineCitation.Article.Abstract.AbstractText.DispFormula.math.mfrac.mrow.msub.mi,4)
(PubmedArticleSet.PubmedArticle.MedlineCitation.Article.Abstract.AbstractText.DispFormula.math.mfrac.msup.mi,1)
(PubmedArticleSet.PubmedArticle.MedlineCitation.Article.Abstract.AbstractText.DispFormula.math.mfrac.msup.mrow.mi,1)
View batman bares bear arms
Jon Jon Wendt gives Gene Valgene his hooded cloak.
Gene Valgene: ...
Gene Valgene: [Batman voice] I'm the Batman now.
Jon Jon Wendt: Batman!
Gene Valgene: Batman.
Jon Jon Wendt: Batman! Batman! Batman!
Gene Valgene: BAAAAAAAAAT
Gene Valgene: MAAAAAAAAAAN
Jon Jon Wendt: That's the spirit!
Gene Valgene: [Batman voice] Hmm.
View .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
View paper-from-clade-ontology.owl
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#"
View fails.jsonld
[{
"@context": "https://www.phyloref.org/curation-tool/json/phyx.json",
"@type": "owl:Ontology",
"citation": "Example"
}]
@gaurav
gaurav / test.json
Last active Dec 13, 2017
Converting a blank node from JSON-LD (test.json) -> XML/RDF (test.xml) -> JSON-LD (test_back.json) and Turtle (test_back.ttl)
View test.json
{
"@context": {
"obo": "http://purl.obolibrary.org/obo/",
"denotes": {
"@id": "obo:IAO_0000219",
"@type": "@id"
}
},
@gaurav
gaurav / sources.sparql
Created Nov 26, 2015
Searching for sources within a category on the DBpedia commons
View sources.sparql
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
BHL poster for Biology StackExchange
View BHLposter.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.