diff --git a/list_state_counterparts.rq b/list_state_counterparts.rq index d08b8f0..8c8e0b4 100644 --- a/list_state_counterparts.rq +++ b/list_state_counterparts.rq @@ -1,3 +1,4 @@ +PREFIX rdfs: # List all states which are values for a character PREFIX obo: PREFIX ps: @@ -5,14 +6,23 @@ PREFIX rdf: PREFIX owl: PREFIX dc: PREFIX StandardState: +PREFIX StandardCharacter: PREFIX bd: -# replace the value of the following prefix with the character URI of interest -PREFIX character: +PREFIX hint: -SELECT DISTINCT ?state ?state_label +SELECT DISTINCT ?character_label ?state ?state_label FROM WHERE { -character: ps:may_have_state_value ?state . +?character ps:may_have_state_value ?state . ?state dc:description ?state_label . +?character rdfs:label ?character_label + { + # This subselect grabs a random character state. Replace + # ?character_state in the above with a specific URI if desired. + SELECT ?character WHERE { + ?character rdf:type StandardCharacter: + } LIMIT 1 + } + hint:Prior hint:runFirst true . }