Skip to content

Commit

Permalink
Add disease query
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcisiotmf authored Nov 22, 2024
1 parent 54f0e64 commit fafc99a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/sparql_llm/embed_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,21 @@ def generate_embeddings_for_entities():
up:scientificName ?label .
}""",
},
,
"uniprot_disease": {
"uri": "http://purl.uniprot.org/core/Disease",
"label": "Disease",
"description": "The preferred names of diseases.",
"endpoint": "https://sparql.uniprot.org/sparql/",
"pagination": False,
"query": """PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT ?uri ?label ?type WHERE {
?uri a up:Disease ;
skos:prefLabel ?label .
} """,
},
}

docs: list[Document] = []
Expand Down

0 comments on commit fafc99a

Please sign in to comment.