Its

On 28/02/18 12:57, Laura Morales wrote:
I was looking at this draft [1] about standardizing a "graph" URI. A suggested 
format would be

<graph:name:ec654ec1-7f8f-11e3-ae96-b385f4bc450c>

I tried to define a prefix like this

PREFIX graph: <graph:name:>

such that I could use

graph:ec654ec1-7f8f-11e3-ae96-b385f4bc450c

but this is causing problems with JSON-LD. The error is

ERROR riot                 :: cyclic IRI mapping: graph

A simple way to reproduce the error is with this JSON-LD file:

{
   "@graph" : [ ],
   "@context" : {
     "graph" : "graph:name:"
   }
}

$ riot --syntax jsonld --validate test.json
ERROR riot                 :: cyclic IRI mapping: graph

Shouldn't the parser recognize that "graph:name:" is an absolute URI? I don't understand 
why this would be ambiguous. Looks like it's treating "graph:" as a prefix but it's 
actually a URI scheme.

This is a bug in JSON-LD 1.0 spec itself. I saw Gregg Kellogg mention it on a JSON-LD list recently. It is mentioned in the 1.1 spec.

    Andy







[1] 
https://s3.amazonaws.com/artifacts.opencypher.org/website/ocig3/oCIG3+-+Draft+graph+URI+Scheme+Specification+0.3.pdf

Reply via email to