Skip to content

Commit

Permalink
Added percentage too, and fixed the qudt:symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Apr 11, 2012
1 parent fa3b8f2 commit 759bbd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions activities.php
Expand Up @@ -5,10 +5,11 @@
include 'functions.php';

$unitMappings = [
"nM" => "NanoMolar",
"mM" => "Millimolar",
"uM" => "Micromolar",
"pM" => "Picomolar",
"nM" => $OPS . "Nanomolar",
"mM" => $OPS . "Millimolar",
"uM" => $OPS . "Micromolar",
"pM" => $OPS . "Picomolar",
"%" => $QUDT . "floatPercentage",
];

mysql_connect("localhost", $user, $pwd) or die(mysql_error());
Expand Down
1 change: 1 addition & 0 deletions namespaces.php
Expand Up @@ -10,6 +10,7 @@
$BIBO = "http://purl.org/ontology/bibo/";
$FOAF = "http://xmlns.com/foaf/0.1/";
$CITO = "http://purl.org/spar/cito/";
$QUDT = "http://qudt.org/schema/qudt#";

$BODO = "http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#";
$CHEM = "http://www.blueobelisk.org/chemistryblogs/";
Expand Down
10 changes: 5 additions & 5 deletions ops.ttl
Expand Up @@ -15,7 +15,7 @@ ops:Molar
1000 ;
qudt:conversionOffset
"0.0"^^xsd:double ;
qudt:symbol "mol/m^3"^^xsd:string ;
qudt:symbol "mol/dm^3"^^xsd:string ;
skos:exactMatch <http://dbpedia.org/resource/Molar_concentration> .

ops:Millimolar
Expand All @@ -26,7 +26,7 @@ ops:Millimolar
1 ;
qudt:conversionOffset
"0.0"^^xsd:double ;
qudt:symbol "mol/m^3"^^xsd:string .
qudt:symbol "mmol/dm^3"^^xsd:string .

ops:Micromolar
rdf:type qudt:MolarConcentrationUnit , qudt:SIDerivedUnit ;
Expand All @@ -36,7 +36,7 @@ ops:Micromolar
0.001 ;
qudt:conversionOffset
"0.0"^^xsd:double ;
qudt:symbol "mol/m^3"^^xsd:string .
qudt:symbol "μmol/dm^3"^^xsd:string .

ops:Nanomolar
rdf:type qudt:MolarConcentrationUnit , qudt:SIDerivedUnit ;
Expand All @@ -46,7 +46,7 @@ ops:Nanomolar
0.000001 ;
qudt:conversionOffset
"0.0"^^xsd:double ;
qudt:symbol "mol/m^3"^^xsd:string .
qudt:symbol "nmol/dm^3"^^xsd:string .

ops:Picomolar
rdf:type qudt:MolarConcentrationUnit , qudt:SIDerivedUnit ;
Expand All @@ -56,5 +56,5 @@ ops:Picomolar
0.000000001 ;
qudt:conversionOffset
"0.0"^^xsd:double ;
qudt:symbol "mol/m^3"^^xsd:string .
qudt:symbol "pmol/dm^3"^^xsd:string .

0 comments on commit 759bbd9

Please sign in to comment.