Requirement5Soln

From Filtered Push Wiki
(Redirected from Requirement5)
Jump to: navigation, search

Requirement

Report:_FP_Requirements#5 An annotation can be about another annotation and can contain assertions about that other annotation.

Solution

Requirements5Annotation.rdf contains an Annotation exhibiting solution in AO with data extensions.

aod_example_response_annotation.rdf] contains an Annotation exhibiting solution in AO/AOD using BOM and MARL ontologies to express issue resolution and opinion.

Competency Question

How can a filter be specified that will select an Annotation meeting the solution above?

Answers

Select all annotations that are of other annotations

As SPARQL:

PREFIX ao: <http://purl.org/ao#>       
SELECT ?annotation 
WHERE {
      ?annotation a ao:Annotation.
      ?annotation ao:annotatesResource ?r.
      ?r a ao:Annotation
}

As JMS key-value pairs:

message.contentType: ao:Annotation #required to select parser for JMS message content
message.contentFormat: RDF/XML
message.content.annotationResourceType: ao:Annotation

Select all annotations of a specific annotation

As SPARQL:

PREFIX ao: <http://purl.org/ao#>       
SELECT ?annotation 
WHERE {
      ?annotation a ao:Annotation.
      ?annotation ao:annotatesResource http://etaxonomy.org/CQA19.owl#one_specimen_annotation_example.
}

As JMS key-value pairs:

message.contentType: ao:Annotation #required to select parser for JMS message content
message.contentFormat: RDF/XML
message.content.annotationResourceType: http://etaxonomy.org/CQA19.owl#one_specimen_annotation_example

Select all annotations expressing a positive opinion

Select all annotations about a specific annotation which express an opinion

Notes

  1. Keys from the AO ontology are needed, but none from the domain ontology of the content of the entries in the Pub/Sub queues.
  2. message.contentType and contentFormat are needed so that clients know how to interpret the JMS message.