This file contains 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
import java.io.*; | |
import java.net.*; | |
public class GLinks { | |
public static void main(String[] args) { | |
String url_str= "http://link.g-language.org/"; | |
try { | |
URL url= new URL(url_str); |
This file contains 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 ruby | |
require 'net/http' | |
require 'uri' | |
uri= URI.parse('http://link.g-language.org/') | |
Net::HTTP.start(uri.host, uri.port){|http| | |
request= Net::HTTP::Post.new(uri.path) | |
request.set_form_data( |
This file contains 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 python | |
import urllib | |
reqdata= {} | |
reqdata['query']= 'hsa:128,RECA_ECOLI' # hsa:128 (KEGG) and RECA_ECOLI (UniProt) | |
reqdata['format']= 'n3' # Notation3 format | |
params= urllib.urlencode(reqdata) | |
fh= urllib.urlopen('http://link.g-language.org/', params) |
This file contains 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 perl | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
use HTTP::Request::Common qw/POST/; | |
my $serv_url= 'http://link.g-language.org/'; | |
my %form_data= ( |
This file contains 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 perl | |
use strict; | |
use warnings; | |
while (<DATA>) { | |
chomp; | |
print "$_\n" if ( /^_START_$/ .. /^_END_$/ ); | |
} | |
__END__ |
This file contains 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 perl | |
use strict; | |
use warnings; | |
while (<DATA>) { | |
chomp; | |
print "$_\n" if ( /^_START_$/ .. /^_END_$/ ); | |
} | |
__END__ |
This file contains 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 perl | |
use strict; | |
use warnings; | |
use SFC::Room; | |
my $rooms = SFC::Room->new(); | |
my $delta = $rooms->parse('ΔS113'); | |
print $delta->string,"\n"; # デルタS113 |