30,567
edits
Line 803: | Line 803: | ||
====Dated status==== | ====Dated status==== | ||
* Dated | * Dated | ||
This example provides a list of records for manuscripts which are dated. | |||
<syntaxhighlight lang="SPARQL"> | <syntaxhighlight lang="SPARQL"> | ||
# prefixes | # prefixes | ||
Line 838: | Line 839: | ||
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%20dated%20status%0ASELECT%20%3Frecord%20%3FrecordLabel%20%3FdateString%20%3FdatedStatusLabel%0AWHERE%20%7B%0A%23%20set%20variable%20value%20for%20dated%20classification%20to%20be%20queried%0A%20%20VALUES%20%3FdatedStatus%20%7B%20wd%3AQ14%20%7D%20%23%20dated%0A%23%20bind%20query%20variables%0A%20%20BIND%28p%3AP23%20AS%20%3FdateAsRecordedStatement%29.%0A%20%20BIND%28ps%3AP23%20AS%20%3FdateAsRecorded%29.%0A%20%20BIND%28wdt%3AP26%20AS%20%3FhasDatedStatus%29.%0A%0A%23%20statement%3A%20record%20has%20statement%20for%20dated%20classification%0A%20%20%3Frecord%20%3FhasDatedStatus%20%3FdatedStatus%20.%0A%23%20statement%3A%20manuscript%20record%20may%20have%20statement%20for%20date%20of%20production%0A%20%20OPTIONAL%20%7B%20%3Frecord%20%3FdateAsRecordedStatement%20%3FdateStatement%20.%20%20%3FdateStatement%20%3FdateAsRecorded%20%3FdateString%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%22.%0A%20%20%7D%0A%20%20%7D%0AORDER%20BY%20%3FrecordLabel here]. | 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%20dated%20status%0ASELECT%20%3Frecord%20%3FrecordLabel%20%3FdateString%20%3FdatedStatusLabel%0AWHERE%20%7B%0A%23%20set%20variable%20value%20for%20dated%20classification%20to%20be%20queried%0A%20%20VALUES%20%3FdatedStatus%20%7B%20wd%3AQ14%20%7D%20%23%20dated%0A%23%20bind%20query%20variables%0A%20%20BIND%28p%3AP23%20AS%20%3FdateAsRecordedStatement%29.%0A%20%20BIND%28ps%3AP23%20AS%20%3FdateAsRecorded%29.%0A%20%20BIND%28wdt%3AP26%20AS%20%3FhasDatedStatus%29.%0A%0A%23%20statement%3A%20record%20has%20statement%20for%20dated%20classification%0A%20%20%3Frecord%20%3FhasDatedStatus%20%3FdatedStatus%20.%0A%23%20statement%3A%20manuscript%20record%20may%20have%20statement%20for%20date%20of%20production%0A%20%20OPTIONAL%20%7B%20%3Frecord%20%3FdateAsRecordedStatement%20%3FdateStatement%20.%20%20%3FdateStatement%20%3FdateAsRecorded%20%3FdateString%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%22.%0A%20%20%7D%0A%20%20%7D%0AORDER%20BY%20%3FrecordLabel here]. | ||
* Non-dated | * Non-dated | ||
This example provides a list of records for manuscripts which are not dated. | |||
<syntaxhighlight lang="SPARQL"> | <syntaxhighlight lang="SPARQL"> | ||
# prefixes | # prefixes |