Project:New queries about the portal 2024: Difference between revisions
From MaRDI portal
Created page with "== About == This page is created to provide assistance for developing the portal. One can list out the questions they have regarding the portal here and the answers will be provided accordingly. * How can I query the MaRDI Portal using SPARQL to retrieve the list of softwares that were added to the MaRDI knowledge graph in a yearly manner? * What are the endpoints for querying the MaRDI portal using SPARQL. * Do we need to use the following portal for querying the M..." |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
# How can I query the MaRDI Portal using SPARQL to retrieve the list of softwares that were added to the MaRDI knowledge graph in a yearly manner? | |||
## Partial answer: Queries of [https://query.portal.mardi4nfdi.de/#%23title%3A%20Most%20recently%20created%20items%20with%20P1451%0ASELECT%20%3Fitem%20%3FitemLabel%20%7B%0A%20%20SERVICE%20wikibase%3Amwapi%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Aendpoint%20%22portal.mardi4nfdi.de%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wikibase%3Aapi%20%22Generator%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wikibase%3Alimit%20%22once%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agenerator%20%22search%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agsrsearch%20%22haswbstatement%3AP1451%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agsrsort%20%22create_timestamp_desc%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agsrlimit%20%22100%22.%0A%20%20%20%20%3Fitem%20wikibase%3AapiOutputItem%20mwapi%3Atitle.%0A%20%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AORDER%20BY%20DESC%28xsd%3Ainteger%28SUBSTR%28STR%28%3Fitem%29%2C%2033%29%29%29 this structure] should be able to provide such data in principle but this does not work in practice yet. [https://w.wiki/9otv Here] is a Wikidata example that works. As an alternative route, we could add the creation date as a dedicated statement, e.g. as done in [https://sparql.uniprot.org/sparql/?query=PREFIX+up%3A+%3Chttp%3A%2F%2Fpurl.uniprot.org%2Fcore%2F%3E%0D%0ASELECT+%3Fprotein%0D%0AWHERE%0D%0A%7B%0D%0A%09%3Fprotein+a+up%3AProtein+.+%0D%0A%09%3Fprotein+up%3Acreated+%272010-11-30%27%5E%5Exsd%3Adate%0D%0A%7D&format=html# UniProt]. | |||
* Do we need to use the following portal for querying the MaRDI knowledge graph? | # What are the endpoints for querying the MaRDI portal using SPARQL. | ||
If yes, I need some help regarding using this for the purpose of retrieving the list of softwares added to the MaRDI Knowledge graph in a yearly fashion. | #* If accessed through a script, the SPARQL-endpoint is https://query.portal.mardi4nfdi.de/proxy/wdqs/bigdata/namespace/wdq/sparql | ||
#* Alternatively, there is also the GUI accessible at https://query.portal.mardi4nfdi.de/ | |||
# Do we need to use the following portal for querying the MaRDI knowledge graph? https://query.portal.mardi4nfdi.de/ | |||
#* Yes, that is the best option to write and execute SPARQL queries. | |||
#If yes, I need some help regarding using this for the purpose of retrieving the list of softwares added to the MaRDI Knowledge graph in a yearly fashion. |
Latest revision as of 05:54, 21 April 2024
About
This page is created to provide assistance for developing the portal. One can list out the questions they have regarding the portal here and the answers will be provided accordingly.
- How can I query the MaRDI Portal using SPARQL to retrieve the list of softwares that were added to the MaRDI knowledge graph in a yearly manner?
- Partial answer: Queries of this structure should be able to provide such data in principle but this does not work in practice yet. Here is a Wikidata example that works. As an alternative route, we could add the creation date as a dedicated statement, e.g. as done in UniProt.
- What are the endpoints for querying the MaRDI portal using SPARQL.
- If accessed through a script, the SPARQL-endpoint is https://query.portal.mardi4nfdi.de/proxy/wdqs/bigdata/namespace/wdq/sparql
- Alternatively, there is also the GUI accessible at https://query.portal.mardi4nfdi.de/
- Do we need to use the following portal for querying the MaRDI knowledge graph? https://query.portal.mardi4nfdi.de/
- Yes, that is the best option to write and execute SPARQL queries.
- If yes, I need some help regarding using this for the purpose of retrieving the list of softwares added to the MaRDI Knowledge graph in a yearly fashion.