def __init__(self, edam_url):
"""
:param edam_url: path to EDAM.owl file
:type edam_url: STRING
All the EDAM ontology will be contained in a dictionnary (self.edam_ontology).
"""
if edam_url is None:
LOGGER.info("Loading EDAM info from http://edamontology.org/EDAM.owl")
self.edam_ontology = rdflib.Graph()
self.edam_ontology.parse("http://edamontology.org/EDAM.owl")
# Get version of EDAM ontology
version_query = """SELECT ?version WHERE {
<http://edamontology.org> doap:Version ?version}"""
for row in self.edam_ontology.query(version_query):
self.version = row[0]
break
else:
pass
评论列表
文章目录