Version 1 by Vladimir Alexiev
on Jan 25, 2013 11:09.

compared with
Current by Vladimir Alexiev
on Feb 11, 2013 17:44.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History
The needed fields are:
| *UI Field* | *Property (path)* | *Notes* |
| Type | (1) a ?t {?t=rso:DataAnnotation or ?t=rso:ImageAnnotation}
(2) oac:hasTarget/a rdf:Statement or oac:hasTarget/a rso:FC70_Thing -> rso:DataAnnotation
oac:hasTarget/oac:constrains/a crm:E38_Image -> rso:ImageAnnotation|There are two variants:
(1) Is better: (!) enrich the Annotation API to record domain-specific subtype of oac:Annotation, same as in [Data Basket Model#Item Types]
(2) Is worse: guess the type by exploring two alternative paths
In either case, the Dashboard API should return one of the 2 domain-specific types.
| Type | a ?t {?t=rso:DataAnnotation or ?t=rso:ImageAnnotation}{footnote}Assumes that the Annotation API is enriched to record the domain-specific subtype of oac:Annotation (as in [Data Basket Model#Item Types]){footnote}|Maybe it's better to show icon instead of text?|
| -Item- | | -What was annotated-. Typically this is in the Title, so no need to duplicate |
| Title | oac:hasBody/rso:P3_has_title | Annotation title |
| Link | the annotation itself | link to annotation. What exactly do the tools need to start (?) |
| User | oac:hasBody/dc:creator | Who created the annotation |
| Date | oac:hasBody/dc:created | Shown in section's title, used for filtering |
| User | oac:hasBody/dcterms:creator | Who created the annotation |
| Date | oac:hasBody/dcterms:created | Shown in section's title, used for filtering |
{display-footnotes}
Otherwise we'd need to guess the type by exploring two alternative paths:
- oac:hasTarget/a rdf:Statement or oac:hasTarget/a rso:FC70_Thing -> rso:DataAnnotation
- oac:hasTarget/oac:constrains/a crm:E38_Image -> rso:ImageAnnotation

The needed query assuming variant (1) and parameter $DATE is:
{noformat}
select ?ann ?type ?title ?user ?date {

h2. Project Announcements
These are simple messages in plain text
These are simple messages in plain text. All the fields that we need are:
{noformat}
<http://www.researchspace.org/announcement/3> a rso:Announcement;
dcterms:creator "username2";
dcterms:created "2012-10-08T12:34:56"^^xsd:dateTime;
rso:P3_has_title "Important project announcement".
{noformat}

User: author
Text of announcement
Note: I considered storing them like a Bookmark of type "Text Snippet" (rdfs:Literal) (see [Data Basket Model#Item Types]).

h1. Dashboard API