On Fri, Jun 20, 2014 at 10:34 AM, Yana Panchenko
<[email protected]> wrote:
> Hi,
>
> I am getting myself familiar with named graphs and with the possibility to 
> include subgraphs into the data. I saw a couple of examples demonstrating 
> signing chains that include nested graphs like this (in Trig format):

Where'd you find those examples?  Section 4.5 Grammar [1] has these productions:

[5g]wrappedGraph::='{' triplesBlock? '}'
[6g]triplesBlock::=triples ('.' triplesBlock?)?

that make it look like the only thing that should appear immediately
with the braces of a wrapped graph are triples.  This would seem to
disallow something like

:G1 { :G2 { } }





[1] http://www.w3.org/TR/2014/REC-trig-20140225/#grammar-ebnf

>
>
> @prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix foaf:    <http://xmlns.com/foaf/0.1/> .
> @prefix sig:     <http://www.example.com/signature#> .
> @prefix :     <http://www.example.com/graph#> .
> :G2 {
>    :G1 {
>    _:bnode1
>       rdf:type foaf:Person ;
>       foaf:name "Manu Sporny" ;
>       foaf:homepage
>  <http://manu.sporny.org/> .
>    }
>    :G1 sig:signature [
>       rdf:type sig:JsonldSignature ;
>       sig:signer <http://manu.sporny.org/webid#key-5> ;
>       sig:signatureValue 
> "OGQzNGVkMzVmMmQ3ODIyOWM32MzQzNmExMgoYzI4ZDY3NjI4NTIyZTk=" . ] .
> }
> :G2 sig:signature [
>    rdf:type sig:JsonldSignature ;
>    sig:signer <http://authority.payswarm.com/webid#key-873> ;
>    sig:signatureValue 
> "kMzVmMVDIyOWM32MzI4ZDY3NjI4mQ3OOGQzNGNTIyZTkQzNmExMgoYz=" . ] .
>
>
> But I could not read this RDF into Jena Dataset (parser error). Do I 
> understand it correctly that Jena and current
>  RDF specification don't support such nested graphs? Is there is any 
> known/accepted work around when similar representation of the data as in the 
> example above is desirable for the application?
>
> Thanks,
> Yana



-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/

Reply via email to