Query service: Difference between revisions

From Columbia Wikibase Test
Jump to navigation Jump to search
(Created page documenting the CUL WbStack Query Service)
 
No edit summary
Line 1: Line 1:
=== Using the query service ===
=== Using the query service ===
* Query service lives [https://cul-dlc-test.wiki.opencura.com/query/ here]
* [https://wiki.wbstack.com/wiki/Query_Service Documentation] on WbStack's query service (general)
* [https://wiki.wbstack.com/wiki/Query_Service Documentation] on WbStack's query service (general)
* Queries are made in SPARQL
* Queries are made in SPARQL
* Note that you cannot use the standard Wikidata prefixes when constructing your query.  Instead, fill in the P# and Q# in the following:
* Note that you cannot use the standard Wikidata prefixes when constructing your query.  Instead, fill in the P# and Q# in the following:
** Property: <http://cul-dlc-test.wiki.opencura.com/prop/direct/P#>
** Property: <nowiki><http://cul-dlc-test.wiki.opencura.com/prop/direct/P#></nowiki>
** Item: <http://cul-dlc-test.wiki.opencura.com/entity/Q#>
** Item: <nowiki><http://cul-dlc-test.wiki.opencura.com/entity/Q#></nowiki>
* Example queries
* Example queries
** Get the URIs for all library locations in the Hyacinth Locations vocabulary (Q-numbers only)
** Get the URIs for all library locations in the Hyacinth Locations vocabulary (Q-numbers only)

Revision as of 21:27, 17 September 2020

Using the query service

  • Query service lives here
  • Documentation on WbStack's query service (general)
  • Queries are made in SPARQL
  • Note that you cannot use the standard Wikidata prefixes when constructing your query. Instead, fill in the P# and Q# in the following:
    • Property: <http://cul-dlc-test.wiki.opencura.com/prop/direct/P#>
    • Item: <http://cul-dlc-test.wiki.opencura.com/entity/Q#>
  • Example queries
    • Get the URIs for all library locations in the Hyacinth Locations vocabulary (Q-numbers only)
      • SELECT * WHERE { ?libraryQnumber <http://cul-dlc-test.wiki.opencura.com/prop/direct/P1> <http://cul-dlc-test.wiki.opencura.com/entity/Q3> . }
    • Get the labels for all library locations in the Hyacinth Locations vocabulary
      • 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 .}