from pyomexmeta import RDF # collect the link from "https://www.ebi.ac.uk/biomodels/BIOMD0000000308#Files" tyson2003 = "https://www.ebi.ac.uk/biomodels/model/download/BIOMD0000000308.2?filename=BIOMD0000000308_url.xml" # download the model, scan document for annotations and docs-build a graph rdf = RDF.from_uri(tyson2003, format="rdfxml") print(f"Number of annotations in graph: {len(rdf)}")
import os from pyomexmeta import RDF, eUriType # get the link to teusink2000 teusink_biomod_link = r"https://www.ebi.ac.uk/biomodels/model/download/BIOMD0000000064.2?filename=BIOMD0000000064_url.xml" # download model xml, scan for rdf, create rdf graph and store in sqlite database rdf = RDF.from_uri(teusink_biomod_link, format="rdfxml", storage_type="sqlite", storage_name="TeusinkAnnotations2000", storage_options="new='yes'") # do a search for all annotations with glucode as resource: CHEBI:17234 query_string = """ SELECT ?x ?y WHERE { ?x ?y <http://identifiers.org/obo.chebi/CHEBI:17234> } """ results_formats = [ "xml", "json", "table", "csv", "mkr", "tsv", "html", "turtle", "rdfxml", ]
from pyomexmeta import RDF, eUriType # collect the link from "https://www.ebi.ac.uk/biomodels/BIOMD0000000308#Files" tyson2003 = "https://www.ebi.ac.uk/biomodels/model/download/BIOMD0000000308.2?filename=BIOMD0000000308_url.xml" # download the model, scan document for annotations and docs-build a graph rdf = RDF.from_uri(tyson2003, syntax="rdfxml") print(f"Number of annotations in graph: {len(rdf)}")