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/