Re: [web-annotation] Should oa:start / oa:end be xsd:nonNegativeInteger or xsd:integer ?

I would hope the context made RDF that was valid according to the 
ontology - so if we want to change it in JSON-LD it should be updated 
also in the ontology (even if a negative number here would be 
confusing - some might think it is like in Python from the end?).

JSON-LD playground examples:

```json
{
  "@context": {
    "ex": "http://example.com/vocab#",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "ex:start": {
      "@type": "xsd:integer"
    }
  },
  "@id": "http://example.com/",
  "ex:start": 1566
}
```

Expanding this yields:

```json
[
  {
    "@id": "http://example.com/",
    "http://example.com/vocab#start": [
      {
        "@type": "http://www.w3.org/2001/XMLSchema#integer",
        "@value": 1566
      }
    ]
  }
]
```

However if you leave out `@type` in the context it is expanded as:

```json
[
  {
    "@id": "http://example.com/",
    "http://example.com/vocab#start": [
      {
        "@value": 1566
      }
    ]
  }
]
```

Both yield the same triple
 
<http://example.com/> <http://example.com/vocab#start> 
"1566"^^<http://www.w3.org/2001/XMLSchema#integer> .



-- 
GitHub Notification of comment by stain
Please view or discuss this issue at 
https://github.com/w3c/web-annotation/issues/200#issuecomment-210806657
 using your GitHub account

Received on Saturday, 16 April 2016 12:42:40 UTC