30,537
edits
Line 509: | Line 509: | ||
# return English language labels | # return English language labels | ||
SERVICE wikibase:label { | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". | ||
?record rdfs:label ?recordLabel . | ?record rdfs:label ?recordLabel . | ||
?material rdfs:label ?materialLabel . | ?material rdfs:label ?materialLabel . | ||
Line 519: | Line 518: | ||
LIMIT 10000 | LIMIT 10000 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Try it [https://catalog.digital-scriptorium.org/query/#%23%20prefixes%0APREFIX%20wd%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fentity%2F%3E%0APREFIX%20wds%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fentity%2Fstatement%2F%3E%0APREFIX%20wdv%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fvalue%2F%3E%0APREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fprop%2Fdirect%2F%3E%0APREFIX%20p%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fprop%2F%3E%0APREFIX%20ps%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fprop%2Fstatement%2F%3E%0APREFIX%20pq%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fprop%2Fqualifier%2F%3E%0APREFIX%20wikibase%3A%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A%0A%23%20find%20manuscript%20records%20with%20materials%20description%0ASELECT%20%3Frecord%20%3FrecordLabel%20%3FmaterialString%20%28GROUP_CONCAT%28%3FmaterialLabel%3Bseparator%3D%22%7C%22%29%20as%20%3Fmaterials%29%20%28GROUP_CONCAT%28%3FexternalID%3Bseparator%3D%22%7C%22%29%20as%20%3FexternalIDs%29%0AWHERE%20%7B%0A%23%20bind%20query%20variables%0A%20%20BIND%28p%3AP30%20AS%20%3FmaterialAsRecordedStatement%29.%0A%20%20BIND%28ps%3AP30%20AS%20%3FmaterialAsRecorded%29.%0A%20%20BIND%28pq%3AP31%20AS%20%3FhasMaterial%29.%0A%20%20BIND%28wdt%3AP44%20AS%20%3FhasExternalURI%29.%0A%23%20statement%3A%20manuscript%20record%20has%20statement%20for%20material%0A%20%20%3Frecord%20%3FmaterialAsRecordedStatement%20%3FmaterialStatement%20.%0A%23%20statement%3A%20material%20statement%20has%20material%20object%20recorded%20as%20string%20value%0A%20%20%3FmaterialStatement%20%3FmaterialAsRecorded%20%3FmaterialString%20.%0A%23%20statement%3A%20material%20statement%20has%20qualifier%20for%20structured%2Fauthority%20value%0A%23%20statement%3A%20authority%20value%20is%20represented%20by%20URI%20in%20external%20controlled%20vocabulary%0A%20%20OPTIONAL%20%7B%0A%20%20%3FmaterialStatement%20%3FhasMaterial%20%3Fmaterial%20.%0A%20%20%3Fmaterial%20%3FhasExternalURI%20%3FexternalID%20.%0A%20%20%20%20%7D%0A%0A%23%20return%20English%20language%20labels%0A%20%20SERVICE%20wikibase%3Alabel%20%7B | Try it [https://catalog.digital-scriptorium.org/query/#%23%20prefixes%0APREFIX%20wd%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fentity%2F%3E%0APREFIX%20wds%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fentity%2Fstatement%2F%3E%0APREFIX%20wdv%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fvalue%2F%3E%0APREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fprop%2Fdirect%2F%3E%0APREFIX%20p%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fprop%2F%3E%0APREFIX%20ps%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fprop%2Fstatement%2F%3E%0APREFIX%20pq%3A%20%3Chttps%3A%2F%2Fcatalog.digital-scriptorium.org%2Fprop%2Fqualifier%2F%3E%0APREFIX%20wikibase%3A%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A%0A%23%20find%20manuscript%20records%20with%20materials%20description%0ASELECT%20%3Frecord%20%3FrecordLabel%20%3FmaterialString%20%28GROUP_CONCAT%28%3FmaterialLabel%3Bseparator%3D%22%7C%22%29%20as%20%3Fmaterials%29%20%28GROUP_CONCAT%28%3FexternalID%3Bseparator%3D%22%7C%22%29%20as%20%3FexternalIDs%29%0AWHERE%20%7B%0A%23%20bind%20query%20variables%0A%20%20BIND%28p%3AP30%20AS%20%3FmaterialAsRecordedStatement%29.%0A%20%20BIND%28ps%3AP30%20AS%20%3FmaterialAsRecorded%29.%0A%20%20BIND%28pq%3AP31%20AS%20%3FhasMaterial%29.%0A%20%20BIND%28wdt%3AP44%20AS%20%3FhasExternalURI%29.%0A%23%20statement%3A%20manuscript%20record%20has%20statement%20for%20material%0A%20%20%3Frecord%20%3FmaterialAsRecordedStatement%20%3FmaterialStatement%20.%0A%23%20statement%3A%20material%20statement%20has%20material%20object%20recorded%20as%20string%20value%0A%20%20%3FmaterialStatement%20%3FmaterialAsRecorded%20%3FmaterialString%20.%0A%23%20statement%3A%20material%20statement%20has%20qualifier%20for%20structured%2Fauthority%20value%0A%23%20statement%3A%20authority%20value%20is%20represented%20by%20URI%20in%20external%20controlled%20vocabulary%0A%20%20OPTIONAL%20%7B%0A%20%20%3FmaterialStatement%20%3FhasMaterial%20%3Fmaterial%20.%0A%20%20%3Fmaterial%20%3FhasExternalURI%20%3FexternalID%20.%0A%20%20%20%20%7D%0A%0A%23%20return%20English%20language%20labels%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%0A%20%20%20%20%3Frecord%20rdfs%3Alabel%20%3FrecordLabel%20.%0A%20%20%20%20%3Fmaterial%20rdfs%3Alabel%20%3FmaterialLabel%20.%0A%20%20%7D%0A%20%20%7D%0AGROUP%20BY%20%3Frecord%20%3FrecordLabel%20%3FmaterialString%0AORDER%20BY%20%3FrecordLabel%0ALIMIT%2010000 here]. | ||
====Other associated names/agents==== | ====Other associated names/agents==== |