Yes, that's page I found the example. There, G2 is a graph that contains 
triples describing the signature of G1 and G1 itself as nested graph (the 
latter you omitted from the example in your reply). It not clear to me how 
should I represent such data (when I want G1 to include triples from G2 
preserving the information that these triples constitute G2) so that it coforms 
to the current RDF grammar and is supported by Jena.



________________________________
 Von: Joshua TAYLOR <[email protected]>
An: "[email protected]" <[email protected]>; Yana Panchenko 
<[email protected]> 
Gesendet: 17:09 Freitag, 20.Juni 2014
Betreff: Re: nested named graphs
 

On Fri, Jun 20, 2014 at 10:58 AM, Joshua TAYLOR <[email protected]> wrote:
> 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

Googling for some of your example turned up  TF-Graphs-UC/Digital
Signatures [1]. I think that the example actually  needs to be (with
some comments):

# G1 is a graph that contains some triples
G1 {
_:bnode1
    rdf:type foaf:Person ;
    foaf:name "Manu Sporny" ;
    foaf:homepage <http://manu.sporny.org/> .
}

# 2 is a graph that contains a triple "G1 sig:signature [ ... ]"
G2 {
   G1 sig:signature [
      rdf:type sig:JsonldSignature ;
      sig:signer <http://manu.sporny.org/webid#key-5> ;
      sig:signatureValue
"OGQzNGVkMzVmMmQ3ODIyOWM32MzQzNmExMgoYzI4ZDY3NjI4NTIyZTk=" . ] .
}

# the default graph contains a triple "G2 sig:signature [ ... ]"
G2 sig:signature [
   rdf:type sig:JsonldSignature ;
   sig:signer <http://authority.payswarm.com/webid#key-873> ;
   sig:signatureValue
"kMzVmMVDIyOWM32MzI4ZDY3NjI4mQ3OOGQzNGNTIyZTkQzNmExMgoYz=" . ] .



[1] http://www.w3.org/2011/rdf-wg/wiki/TF-Graphs-UC/Digital_Signatures





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

Reply via email to