1,317
edits
TrMendenhall (talk | contribs) (Added another query example) |
TrMendenhall (talk | contribs) m (Fixed typos in query added in previous edit) |
||
Line 12: | Line 12: | ||
*** <nowiki>SELECT ?label WHERE { ?b <http://cul-dlc-test.wiki.opencura.com/prop/direct/P1> <http://cul-dlc-test.wiki.opencura.com/entity/Q3> ; <http://www.w3.org/2000/01/rdf-schema#label> ?label .}</nowiki> | *** <nowiki>SELECT ?label WHERE { ?b <http://cul-dlc-test.wiki.opencura.com/prop/direct/P1> <http://cul-dlc-test.wiki.opencura.com/entity/Q3> ; <http://www.w3.org/2000/01/rdf-schema#label> ?label .}</nowiki> | ||
** Get labels, local Hyacinth URIs, LCNAF IDs, and MarcOrg codes for Hyacinth Locations vocabulary | ** Get labels, local Hyacinth URIs, LCNAF IDs, and MarcOrg codes for Hyacinth Locations vocabulary | ||
*** <nowiki> SELECT ?label ?HyacinthURI ?LCNAFID ?MarcOrgCode | *** <nowiki> SELECT ?label ?HyacinthURI ?LCNAFID ?MarcOrgCode</nowiki><br> | ||
<nowiki> WHERE { ?b <http://cul-dlc-test.wiki.opencura.com/prop/direct/P1> <http://cul-dlc-test.wiki.opencura.com/entity/Q3> ;</nowiki><br> | |||
<nowiki> <http://www.w3.org/2000/01/rdf-schema#label> ?label .</nowiki><br> | |||
<nowiki> OPTIONAL</nowiki><br> | |||
<nowiki> {?b <http://cul-dlc-test.wiki.opencura.com/prop/direct/P2> ?HyacinthURI .</nowiki><br> | |||
<nowiki> ?b <http://cul-dlc-test.wiki.opencura.com/prop/direct/P4> ?LCNAFID .</nowiki><br> | |||
<nowiki> ?b <http://cul-dlc-test.wiki.opencura.com/prop/direct/P5> ?MarcOrgCode .}</nowiki><br> | |||
<nowiki> }</nowiki><br> | |||
<nowiki> ORDER BY ?label</nowiki><br> |