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
<?php | |
$list = getFtpFileList('ftp.ebi.ac.uk','/pub/databases/chembl/ChEMBL-RDF/16.0/', 'ttl.gz'); | |
$total = count($list); | |
print_r($list); | |
/** | |
* Given an FTP uri get a non recursive list of all files of a given extension | |
* located inside a given path | |
*/ |
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
#!/bin/sh | |
############################################################################ | |
# | |
# Script for mirroring PDB FTP archive using rsync | |
# | |
############################################################################ | |
# This script is being provided to PDB users as a template for using rsync | |
# to mirror the FTP archive from an anonymous rsync server. You may want |
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
<?php | |
$myQuery = "select * where{?x ?y ?z}"; | |
$result = getFromEndpoint(urlencode($myQuery), 10, 10); | |
if($result != null){ | |
print_r($result); | |
} |
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
#Modify line 66 of virtuoso.ini from | |
DirsAllowed = ., /usr/local/virtuoso-opensource/share/virtuoso/vad | |
#to the following | |
DirsAllowed = ., /usr/local/virtuoso-opensource/share/virtuoso/vad, / |
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
#this is a comment | |
#isql-port http-port name | |
12001 12002 myFirstEndpoint | |
12003 12004 mySecondEndpoint |
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
# open ~/.bashrc with your favourite text editor and add the following line at the end of the file | |
export PATH=$PATH:/usr/local/virtuoso-opensource/bin |
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
# for 64-bit | |
~ $ export CFLAGS="-O2 -m64" | |
# for 32-bit | |
~ $ export CFLAGS="-O2" | |
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
sudo apt-get install dpkg-dev build-essential gawk automake autoconf libtool bison flex gperf libssl-dev |
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
// For testing reasons one can add a X509TrustManager to a HttpClient to avoid the SSLPeerUnverifiedException | |
// References: | |
// http://javaskeleton.blogspot.com/2010/07/avoiding-peer-not-authenticated-with.html | |
// http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Services/How_to_Trust_Any_SSL_Certificate | |
// Made some customizations to these guides. Works with Java 7 (no NullPointerException when calling init() of SSLContext) and does not use any deprecated functions of HttpClient, SSLContext... | |
import java.security.SecureRandom; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import javax.net.ssl.SSLContext; |
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
SPARQL-DL : Type(?human_gene, 'gene'), Type(?mouse_gene, 'gene'), Type(?homologene_group, HomoloGene_Group), PropertyValue(?human_gene, has_taxid, 'Homo sapiens'), PropertyValue(?mouse_gene, has_taxid, 'Mus musculus'), PropertyValue(?human_gene,'has function', 'ATP binding'), PropertyValue(?mouse_gene, 'has function', 'ATP binding'), PropertyValue(?homologene_group, has_gene, ?human_gene), PropertyValue(?homologene_group, has_gene, ?mouse_gene) | |
# gene : http://semanticscience.org/resource/SIO_010035 | |
# HomoloGene_Group : http://bio2rdf.org/homologene_vocabulary:HomoloGene_Group | |
# has_taxid : http://bio2rdf.org/geneid_vocabulary:has_taxid | |
# 'Homo sapiens' : http://bio2rdf.org/taxon:9606 | |
# 'Mus musculus' : http://bio2rdf.org/taxon:10090 | |
# 'has function' : http://semanticscience.org/resource/SIO_000225 | |
# 'ATP binding' : http://bio2rdf.org/go:0005524 | |
# has_gene : http://bio2rdf.org/homologene_vocabulary:has_gene |