Difference between revisions of "Annotating"

From Wikidocumentaries
Jump to navigation Jump to search
(Created page with "We investigate the idea of adding links to Wikipedia articles, either to red links of plain text. The annotations should follow a standard format, the collected data should m...")
 
(Text Quote Selector)
Line 17: Line 17:
  
 
===Text Quote Selector===
 
===Text Quote Selector===
<pre>"selector": {
+
<pre>{
  "type": "TextQuoteSelector",
+
  "@context": "http://www.w3.org/ns/anno.jsonld",
  "exact": "anotation",
+
  "id": "http://example.org/anno23",
  "prefix": "this is an ",
+
  "type": "Annotation",
  "suffix": " that has some"
+
  "body": "http://example.org/comment1",
 +
  "target": {
 +
    "source": "http://example.org/page1",
 +
    "selector": {
 +
      "type": "TextQuoteSelector",
 +
      "exact": "anotation",
 +
      "prefix": "this is an ",
 +
      "suffix": " that has some"
 +
    }
 +
  }
 +
}
 
</pre>
 
</pre>
  

Revision as of 14:59, 22 December 2018

We investigate the idea of adding links to Wikipedia articles, either to red links of plain text.

The annotations should follow a standard format, the collected data should match.

  • type: Annotation?
  • body: The source document URL
  • target:
    • source:

Selectors

Xpath

  • selector: (for a redlink)
    • type: "XPathSelector",
    • value: xpath selector

CSS selector

Text Quote Selector

{
  "@context": "http://www.w3.org/ns/anno.jsonld",
  "id": "http://example.org/anno23",
  "type": "Annotation",
  "body": "http://example.org/comment1",
  "target": {
    "source": "http://example.org/page1",
    "selector": {
      "type": "TextQuoteSelector",
      "exact": "anotation",
      "prefix": "this is an ",
      "suffix": " that has some"
    }
  }
}

TextPositionSelector

{
  "@context": "http://www.w3.org/ns/anno.jsonld",
  "id": "http://example.org/anno24",
  "type": "Annotation",
  "body": "http://example.org/review1",
  "target": {
    "source": "http://example.org/ebook1",
    "selector": {
      "type": "TextPositionSelector",
      "start": 412,
      "end": 795
    }
  }
}