Closed zachcp closed 2 years ago
I get no results from either of the samples you're trying to re-encode. It would help me a great deal if you could find some working SPARQL queries (don't worry about re-writing them in the DSL) from which I could start.
Thanks Jack,
The best (only) example I can find that mix Wikidata and Uniprot SPARQL are from the Sulab (see here). They query the UNIPROT endpoint and pull in data from Wikidata. Maybe we can "invert" the query to be initiated on the wikidata side?
But I think I may try to play around a bit more with SPARQL and maybe I can figure some of the connections myself. Mundaneum smooths out some of the rough edges so it can be an inspiration as I explore these other datasources.
I think the hardest bit is knowing what things are related to what other things and the best way to explore is to build off of preexisting examples (or have some tools that help you navigte the properties you care about). Of the portals I found so far I think Nextprot does the best job of illustrating the power of linked data through its large number of ready-to-go queries.
One path to this sort of functionality might be for me to make a general purpose SPARQL wrapper (this library is almost there) with optional extensions for Wikidata. That way, one could use it for any arbitrary SPARQL endpoints, including federated queries. The only downside is that it's a bit more work than I have time for just now.
@zachcp Being too busy to write a general SPARQL wrapper has worked in my favor, as someone else has done the work. I am now looking into re-writing this library on top of flint, which should give us the bits we need for Federated Queries. :)
@jackrusher This seems to have been a wise strategy you've employed!
I re-wrote it last night after dinner. New version pushed. Multi-lingual support and federated queries examples TK.
Federated query using WikiPathways added to examples.clj
:)
Hi Jack,
Nice updates on Mundaneum. Any chance I could use Mundaneum to combine Wikidata queries with other SPARQL sources, like, say , Uniprot? Below is an example of what I'd like to do where I take your recent example and attempt to retrieve the underlying AminoAcid sequences via the Uniprot Ids and the Uniprot Sqarql endpoint.
zach cp