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
| #!/usr/bin/env bash | |
| # | |
| # Retrieves chat messages in chronological order for a Gitter room. | |
| # Each chat message is outputted per line and is formatted like: | |
| # | |
| # (sent) username: text | |
| # | |
| if [ $# -ne 2 ]; then | |
| echo "Retrieves gitter room's chat log in chronological order." 1>&2 |
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 watson = require('watson-developer-cloud'); | |
| var fs = require('fs'); | |
| var exec = require('child_process').exec; | |
| var text_to_speech = watson.text_to_speech({ | |
| username: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', | |
| password: 'xxxxxxxxxxxxxxxxx', | |
| version: 'v1' | |
| }); |
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 fetch = require('node-fetch'); | |
| var FormData = require('./form-data'); | |
| var form = new FormData(); | |
| form.append('file', fs.createReadStream("/home/tony/projects/openbel/openbel-api/full_abstract1.bel")); | |
| fetch('http://next.belframework.org/api/datasets', { | |
| method: 'POST', | |
| body: form | |
| }).then(function(res) { console.log(res.json()); }); |
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
| module Configuration | |
| def self.configured_components | |
| @components | |
| end | |
| def self.component(key) | |
| return unless block_given? | |
| @components ||= {} | |
| @components[key] = yield |
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
| { | |
| "evidence": { | |
| "bel_statement": "a(\"cyclic AMP\") increases r(HGNC:AR)", | |
| "citation": { | |
| "type": "PubMed", | |
| "name": "J Clin Endocrinol Metab 2003 Sep 88(9) 4043-54", | |
| "id": "12970260", | |
| "date": "", | |
| "authors": [ |
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
| -------------------------------------------------------------------- | |
| | s | | |
| ==================================================================== | |
| | <http://www.openbel.org/bel/namespace/affy-probeset> | | |
| | <http://www.openbel.org/bel/namespace/entrez-gene> | | |
| | <http://www.openbel.org/bel/namespace/chebi> | | |
| | <http://www.openbel.org/bel/namespace/disease-ontology> | | |
| | <http://www.openbel.org/bel/namespace/mesh-diseases> | | |
| | <http://www.openbel.org/bel/namespace/mgi-mouse-genes> | | |
| | <http://www.openbel.org/bel/namespace/rgd-rat-genes> | |
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 org.openbel.resource_reasoner; | |
| import org.apache.jena.query.*; | |
| import org.apache.jena.rdf.model.Model; | |
| import org.apache.jena.rdf.model.ResIterator; | |
| import org.apache.jena.rdf.model.Resource; | |
| import org.apache.jena.update.UpdateAction; | |
| import org.apache.jena.update.UpdateFactory; | |
| import org.apache.jena.update.UpdateRequest; | |
| import org.apache.jena.vocabulary.RDF; |
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
| Select | |
| PREFIX belv: <http://www.openbel.org/vocabulary/> | |
| PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
| PREFIX xsd: <http://www.w3.org/2001/XMLSchema/> | |
| PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
| PREFIX dc: <http://purl.org/dc/elements/1.1/> | |
| PREFIX fn: <http://www.w3.org/2005/xpath-functions#> | |
| # Bind ?namespaceConceptScheme to the URI of the namespace resource whose concepts you would like equivalenced via concept type and case-insensitive string match. |
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
| module Hardwire::Plugins | |
| module Bar | |
| class BarPlugin | |
| include Hardwire::PluginDefinition | |
| def self.plugin_file_path | |
| __FILE__ |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdarg.h> | |
| #include <librdf.h> | |
| #include <raptor2.h> | |
| /* function prototypes */ | |
| int main(int argc, char *argv[]); |