Difference between revisions of "Module:Analyte"

From DAAP
Jump to navigation Jump to search
Line 25: Line 25:
  
  
:addRow('nom_analyte', linkedwiki.checkUser(daapProp..'abbreviationMetabolite',f.args.abbreviationMetabolite))
+
:addRow('nomAnalyte', linkedwiki.checkUser(daapProp..'abbreviationMetabolite',f.args.abbreviationMetabolite))
:addRow('formule_brute_analyte', linkedwiki.checkString(daapProp..'casRegistryNumberMetabolite',f.args.casRegistryNumberMetabolite))
+
:addRow('formule_bruteAnalyte', linkedwiki.checkString(daapProp..'casRegistryNumberMetabolite',f.args.casRegistryNumberMetabolite))
:addRow('casRegistryNumberMetabolite', linkedwiki.checkString(daapProp..'casRegistryNumberMetabolite',f.args.casRegistryNumberMetabolite))
 
 
:addRow('cas_analyte', linkedwiki.checkString(daapProp..'chemicalFormula',f.args.RegistrychemicalFormula))
 
:addRow('cas_analyte', linkedwiki.checkString(daapProp..'chemicalFormula',f.args.RegistrychemicalFormula))
:addRow('cas_analyte', linkedwiki.checkString(daapProp..'commentary',f.args.casRegistryNumberMetabolite) )
+
:addRow('masse_molaire_analyte', linkedwiki.checkString(daapProp..'commentary',f.args.casRegistryNumberMetabolite) )
 
:addRow('masse_monoisotopique_analyte', linkedwiki.checkString(daapProp..'iupacMatabolite',f.args.casRegistryNumberMetabolite))
 
:addRow('masse_monoisotopique_analyte', linkedwiki.checkString(daapProp..'iupacMatabolite',f.args.casRegistryNumberMetabolite))
 
:addRow('abreviation_analyte', linkedwiki.checkString(daapProp..'keggMetabolite',f.args.casRegistryNumberMetabolite) )
 
:addRow('abreviation_analyte', linkedwiki.checkString(daapProp..'keggMetabolite',f.args.casRegistryNumberMetabolite) )

Revision as of 16:40, 12 November 2015

Documentation for this module may be created at Module:Analyte/doc

local p = {}
 
function p.infobox(f)
    local capiunto = require 'capiunto'
    local linkedwiki = require 'linkedwiki'
    
	local endpointUpsud = 'http://opendata1.opendata.u-psud.fr/sparql'
	
   local rdfs = 'http://www.w3.org/2000/01/rdf-schema#'
   local daapProp = 'http://daap.eu/wiki/Property:'
   local geo = 'http://www.w3.org/2003/01/geo/wgs84_pos#'
   local vcard = 'http://www.w3.org/2006/vcard/ns#'
   
   linkedwiki.setEndpoint(endpointUpsud)
   linkedwiki.setSubject(linkedwiki.getCurrentIRI())
   
	return capiunto.create( {
	    -- bodyStyle = 'border: 15px solid red',
		title =  linkedwiki.checkLink(linkedwiki.getCurrentIRI(), rdfs..'label',f.args.Title)  ,
        top = 'Analyte',
		topStyle = 'background:#cfc;font-size:larger',		
		bottom = linkedwiki.checkExternLink('Website',rdfs..'seeAlso',f.args.Website)
	} )



	:addRow('nomAnalyte', linkedwiki.checkUser(daapProp..'abbreviationMetabolite',f.args.abbreviationMetabolite))
	:addRow('formule_bruteAnalyte', linkedwiki.checkString(daapProp..'casRegistryNumberMetabolite',f.args.casRegistryNumberMetabolite))
	:addRow('cas_analyte', linkedwiki.checkString(daapProp..'chemicalFormula',f.args.RegistrychemicalFormula))	
	:addRow('masse_molaire_analyte', linkedwiki.checkString(daapProp..'commentary',f.args.casRegistryNumberMetabolite)	)
	:addRow('masse_monoisotopique_analyte', linkedwiki.checkString(daapProp..'iupacMatabolite',f.args.casRegistryNumberMetabolite))	
	:addRow('abreviation_analyte', linkedwiki.checkString(daapProp..'keggMetabolite',f.args.casRegistryNumberMetabolite)	)
	:addRow('spectre_analyte', linkedwiki.checkString(daapProp..'casRegistryNumberMetabolite',f.args.casRegistryNumberMetabolite))	
	:addRow('defaut_quant_mass_analyte', linkedwiki.checkString(daapProp..'molarMass',f.args.casRegistryNumberMetabolite))	
	:addRow('indice_retention_analyte', linkedwiki.checkString(daapProp..'otherName',f.args.casRegistryNumberMetabolite))
	:addRow('isotopologue_analyte', linkedwiki.checkString(daapProp..'otherName',f.args.casRegistryNumberMetabolite))
	:addRow('commentaire_analyte', linkedwiki.checkString(daapProp..'otherName',f.args.casRegistryNumberMetabolite))
	:addRow('nom_module_reference_analyte', linkedwiki.checkString(daapProp..'otherName',f.args.casRegistryNumberMetabolite))
	:addRow('mode_analyte', linkedwiki.checkString(daapProp..'otherName',f.args.casRegistryNumberMetabolite))
	:addRow('temps_retention_analyte', linkedwiki.checkString(daapProp..'otherName',f.args.casRegistryNumberMetabolite))
	:addWikitext( linkedwiki.getMaintenanceCategory() .. "[[Category:Metabolite]]" )
end
 
return p