rdfn3.g

source: rdfn3.g.txt
document
( directive
| statement scp ) * END
directive
"@prefix" PREFIX URIREF "\\."
statement scp
clause scp "\\."
clause scp
( phrase scp [ popair scp, phrase ( ";" popair scp, phrase ) * ] )
| ( term scp popair scp, term ( ";" popair scp, term ) * )
term scp
( expr scp )
| ( name scp )
popair scp, subj
pred scp objects scp, subj, pred
pred scp
( expr scp )
| ( "is" expr scp "of" )
objects scp, subj, pred
term scp ( "," term scp ) *
name scp
( "this" )
| ( STRLITB )
| ( STRLITA )
| ( formula )
expr scp
( URIREF )
| ( QNAME )
| ( EXIVAR )
| ( UNIVAR )
| ( "a" )
| ( "=" )
| ( list scp )
| ( phrase scp )
list scp
"\\(" ( term scp ) * "\\)"
phrase scp
"\\[" [ popair scp, subj ( ";" popair scp, subj ) * ] "\\]"
formula
"{" clause scp ( "\\." clause scp ) * [ "\\." ] "}"