Skip to content

Instantly share code, notes, and snippets.

CONSTRUCT {?concept a skos:Concept .
?concept skos:prefLabel ?label .
?concept skos:notation ?identifier .
}
WHERE {
?concept a skos:Concept .
OPTIONAL { ?resource2 a gpml:requiresCurationAttention . FILTER(?resource2 = ?concept) }
FILTER(!bound(?resource2))
?concept rdfs:label ?label .
?concept dc:identifier ?identifier.
construct {?identifier skos:relatedMatch ?relatedId .
}
where {
?uniprotconcept dc:identifier ?identifier .
?uniprotconcept wp:bdbEnsembl ?relatedId .
}
CONSTRUCT {?concept a skos:Concept .
?concept skos:prefLabel ?label .
?concept skos:notation ?identifier .
}
WHERE {
?concept a skos:Concept .
OPTIONAL { ?resource2 a gpml:requiresCurationAttention . FILTER(?resource2 = ?concept) }
FILTER(!bound(?resource2))
?concept rdfs:label ?label .
?concept dc:identifier ?identifier.
@andrawaag
andrawaag / gist:5270250
Created March 29, 2013 11:13
matlab example
a= 43;
If (a > 34) then
m=”1”;
elseif (a<3) then
m=”2”;
elseif (a<=34) then
m=”3”; else
m=”4”;
@andrawaag
andrawaag / CizarExample
Created May 7, 2013 12:21
Korte beschrijving
# Create subject and identify them with family URI
adam = familyUri["adam"]
beth = familyUri["beth"]
chuck = familyUri["chuck"]
dotty = familyUri["dotty"]
edward = familyUri["edward"]
fran = familyUri["fran"]
greg = familyUri["greg"]
harriet = familyUri["harriet"]
@fruit = ("apple", "banana", "orange", "kiwi");
foreach (@fruit) {
print $_."\n";
}
%fruitcolor = ("apple", "red", "banana", "yellow", "orange", "orange", "kiwi", "brown");
print $fruitcolor{"apple"}."\n";
print $fruitcolor{"banana"}."\n";
print $fruitcolor{"orange"}."\n";
print $fruitcolor{"kiwi"}."\n";
@andrawaag
andrawaag / gist:5689819
Created June 1, 2013 09:37
BGKMLW25_task7.pl
open EXPRESSIONFILE, "N:/FHML_BIGCAT/Bioinformatics/Programming/GeneExpression.txt";
while ($line = <FILE>){
@fields = split('\t', $line);
if ($fields[2]<0){
print $line;
}
}
open EXPRESSIONFILE, "N:/FHML_BIGCAT/Bioinformatics/Programming/GeneExpression.txt";
$counter = 0;
while ($line = <FILE>){
@fields = split('\t', $line);
if ($fields[2]<0){
$counter = $counter + 1;
}
}
print $counter;
@fruit = ("apple", "banana", "orange", "kiwi");
print $fruit[0]."\n";
print $fruit[1]."\n";
print $fruit[2]."\n";
print $fruit[3]."\n";