library(phisWSClientR)
Ask permission to request to the web service:
# If you want to access to a private web service, you have to insert the address of the WS and the port connect(apiID="ws_private", url = "www.opensilex.org/openSilexAPI/rest/")
aToken will be used in all the requests to the web service. This is your identification and grants the access to some data according to your login information.
aToken <- getToken("guestphis@supagro.inra.fr","guestphis")
getProjects2(aToken$data, uri="http://www.opensilex.org/demo/PHENOME-FPPN")
getExperiments2(aToken$data, uri="http://www.opensilex.org/demo/DIA2017-1")
getScientificObjects(aToken$data, uri="http://www.opensilex.org/demo/2018/o18000076")
getInfrastructures(aToken$data, uri="https://emphasis.plant-phenotyping.eu")
getVariables2(aToken$data, uri="http://www.opensilex.org/demo/id/variables/v010")
getTraits(aToken$data, uri="http://www.opensilex.org/demo/id/traits/t010")
getMethods2(aToken$data, uri="http://www.opensilex.org/demo/id/methods/m010")
getUnits(aToken$data, uri="http://www.opensilex.org/demo/id/units/u007")
getSpecies(aToken$data, uri="http://www.opensilex.org/id/species/helianthusannuus", language = "en")
getSensors(aToken$data, uri="http://www.opensilex.org/demo/2018/s18001")
getVectors(aToken$data, serialNumber = "01BD1DD71500001")
# Where to find the "type" URL ? # Where is the ontology access ? getEvents(aToken$data, type = "http://www.opensilex.org/vocabulary/oeev#Fertilization", pageSize=10)
# Where to find the "type" URL ? # Where is the ontology access ? getAnnotations(aToken$data, comment = "Ustilago maydis infection" , pageSize=10)
getEnvironmentData(aToken$data, variable = "http://www.opensilex.org/demo/id/variables/v010", pageSize=50)
head(getPhenotypeData(aToken$data, variable = "http://www.opensilex.org/demo/id/variables/v001", pageSize=10)$data)
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.