W3 Web Annotation - SWE-574-Spring-2018/LinkyWay GitHub Wiki
It is desired that there would be different kind of annotations on LinkyWay. The examples can be found below. These examples include the explanation of the use case and the resulting JSON of the annotation.
Use Case #1
The user annotates the LinkyWay node "Donald Trump" with a tweet.
{
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "http://linkyway.com/anno1",
"type": "Annotation",
"body": "https://twitter.com/realDonaldTrump/status/970451373681790978",
"target": "http://linkyway.com/nodes/DonaldTrump"
}
Use Case #2
The user annotates the LinkyWay node "Donald Trump" with a Wikidata item.
{
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "http://linkyway.com/anno2",
"type": "Annotation",
"body": "https://www.wikidata.org/wiki/Q22686",
"target": "http://linkyway.com/nodes/DonaldTrump"
}
Use Case #3
The user annotates the LinkyWay node "Donald Trump" with a tweet. However, s/he thinks that the full text is not related with the node. That is why s/he wants to select some part of the tweet text.
{
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "http://linkyway.com/anno3",
"type": "Annotation",
"body": {
"source": "https://twitter.com/realDonaldTrump/status/970451373681790978",
"selector": {
"type": "TextPositionSelector",
"start": 12,
"end": 38
}
},
"target": "http://linkyway.com/nodes/DonaldTrump"
}
Use Case #4
The user annotates the LinkyWay node "Donald Trump" with an image of a tweet. However, s/he thinks that the full image is not related with the node. That is why s/he wants to select some part of the image of tweet.
{
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "http://linkyway.com/anno4",
"type": "Annotation",
"body": {
"source": "https://twitter.com/realDonaldTrump/status/970451373681790978",
"selector": {
"type": "DataPositionSelector",
"start": 4096,
"end": 4104
}
},
"target": "http://linkyway.com/nodes/DonaldTrump"
}
The details of this use case should be discussed further. In the first place, the URL of body above only include the tweet but the URL should include image. Another problematic part is whether the selector is true or not. Which selector(XPath Selector or another) should be used?