QuickSparqlStatements/TestDaniel2/250118110152
From MaRDI portal
the sparql query should now be printed more pretty
Query
# This query produces statements for
# https://quickstatements.portal.mardi4nfdi.de/#/batch/new
# Help: https://www.wikidata.org/wiki/Help:QuickStatements .
PREFIX wdt: <https://portal.mardi4nfdi.de/prop/direct/>
PREFIX wd: <https://portal.mardi4nfdi.de/entity/>
PREFIX wikidata_wd: <http://www.wikidata.org/entity/>
PREFIX wikidata_wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT
#######
# To get the QuickStatements commands, comment out the lines until the next hash line
# ?mardi_item
# ?mardi_item_label
# ?wikidata
# ?wikidata_label
# ?zbMATH_author
#######
(REPLACE(STR(?mardi_item), ".*Q", "Q") AS ?qid)
# ("P20" AS ?property)
# (CONCAT("\"", REPLACE(STR(?wikidata), ".*Q", "Q"), "\"") AS ?wikidata_qid)
(CONCAT("\"", ?ORCID, "\"") AS ?P20)
WHERE {
SERVICE bd:sample { ?mardi_item wdt:P676 ?zbMATH_author . bd:serviceParam bd:sample.limit 20000 }
?mardi_item wdt:P12 ?WikidataQID .
BIND(URI(STR(CONCAT(wikidata_wd:, ?WikidataQID))) AS ?wikidata)
service <https://query.wikidata.org/sparql> {
?wikidata wikidata_wdt:P1556 ?zbMATH_author .
?wikidata wikidata_wdt:P496 ?ORCID .
?wikidata rdfs:label ?wikidata_label .
FILTER (LANG(?wikidata_label) = "en")
}
?mardi_item rdfs:label ?mardi_item_label .
FILTER (LANG(?mardi_item_label) = "en")
}
Form data
{
"query": "# This query produces statements for\n# https:\/\/quickstatements.portal.mardi4nfdi.de\/#\/batch\/new\n# Help: https:\/\/www.wikidata.org\/wiki\/Help:QuickStatements .\n\nPREFIX wdt: <https:\/\/portal.mardi4nfdi.de\/prop\/direct\/>\nPREFIX wd: <https:\/\/portal.mardi4nfdi.de\/entity\/>\n\nPREFIX wikidata_wd: <http:\/\/www.wikidata.org\/entity\/>\nPREFIX wikidata_wdt: <http:\/\/www.wikidata.org\/prop\/direct\/>\n\nSELECT DISTINCT\n\n#######\n# To get the QuickStatements commands, comment out the lines until the next hash line\n# ?mardi_item\n# ?mardi_item_label\n# ?wikidata\n# ?wikidata_label\n# ?zbMATH_author\n#######\n\n(REPLACE(STR(?mardi_item), \".*Q\", \"Q\") AS ?qid) \n# (\"P20\" AS ?property)\n# (CONCAT(\"\\\"\", REPLACE(STR(?wikidata), \".*Q\", \"Q\"), \"\\\"\") AS ?wikidata_qid) \n(CONCAT(\"\\\"\", ?ORCID, \"\\\"\") AS ?P20) \n\nWHERE {\n SERVICE bd:sample { ?mardi_item wdt:P676 ?zbMATH_author . bd:serviceParam bd:sample.limit 20000 }\n\n ?mardi_item wdt:P12 ?WikidataQID .\n BIND(URI(STR(CONCAT(wikidata_wd:, ?WikidataQID))) AS ?wikidata)\n service <https:\/\/query.wikidata.org\/sparql> {\n ?wikidata wikidata_wdt:P1556 ?zbMATH_author .\n ?wikidata wikidata_wdt:P496 ?ORCID .\n ?wikidata rdfs:label ?wikidata_label .\n FILTER (LANG(?wikidata_label) = \"en\")\n }\n ?mardi_item rdfs:label ?mardi_item_label .\n FILTER (LANG(?mardi_item_label) = \"en\")\n}\n",
"job-title": "TestDaniel2",
"job-description": "the sparql query should now be printed more pretty",
"totalLimit": "2"
}
Endpoint
https://query.portal.mardi4nfdi.de/proxy/wdqs/bigdata/namespace/wdq/sparql