etc/turtle.rb in ebnf-0.1.0 vs etc/turtle.rb in ebnf-0.2.0
- old
+ new
@@ -3,70 +3,32 @@
module RDF::Turtle::Meta
START = :turtleDoc
BRANCH = {
:BlankNode => {
- "(" => [],
- "," => [],
+ "a" => [],
:ANON => [:ANON],
:BLANK_NODE_LABEL => [:BLANK_NODE_LABEL],
- :DECIMAL => [],
- :DOUBLE => [],
- :INTEGER => [],
:IRIREF => [],
:PNAME_LN => [],
:PNAME_NS => [],
- :STRING_LITERAL_LONG_QUOTE => [],
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
- :STRING_LITERAL_QUOTE => [],
- :STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
- "a" => [],
- "false" => [],
- "true" => [],
},
:BooleanLiteral => {
- "(" => [],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :DECIMAL => [],
- :DOUBLE => [],
- :INTEGER => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :STRING_LITERAL_LONG_QUOTE => [],
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
- :STRING_LITERAL_QUOTE => [],
- :STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
"false" => ["false"],
"true" => ["true"],
},
:NumericLiteral => {
- "(" => [],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
:DECIMAL => [:DECIMAL],
:DOUBLE => [:DOUBLE],
:INTEGER => [:INTEGER],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :STRING_LITERAL_LONG_QUOTE => [],
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
- :STRING_LITERAL_QUOTE => [],
- :STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
- "false" => [],
- "true" => [],
},
:PrefixedName => {
"(" => [],
- "," => [],
+ "[" => [],
+ "a" => [],
+ "false" => [],
+ "true" => [],
:ANON => [],
:BLANK_NODE_LABEL => [],
:DECIMAL => [],
:DOUBLE => [],
:INTEGER => [],
@@ -75,108 +37,41 @@
:PNAME_NS => [:PNAME_NS],
:STRING_LITERAL_LONG_QUOTE => [],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [],
:STRING_LITERAL_QUOTE => [],
:STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
- "a" => [],
- "false" => [],
- "true" => [],
},
:RDFLiteral => {
- "(" => [],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :DECIMAL => [],
- :DOUBLE => [],
- :INTEGER => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
:STRING_LITERAL_LONG_QUOTE => [:String, :_RDFLiteral_1],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [:String, :_RDFLiteral_1],
:STRING_LITERAL_QUOTE => [:String, :_RDFLiteral_1],
:STRING_LITERAL_SINGLE_QUOTE => [:String, :_RDFLiteral_1],
- "[" => [],
- "false" => [],
- "true" => [],
},
:String => {
- :LANGTAG => [],
:STRING_LITERAL_LONG_QUOTE => [:STRING_LITERAL_LONG_QUOTE],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [:STRING_LITERAL_LONG_SINGLE_QUOTE],
:STRING_LITERAL_QUOTE => [:STRING_LITERAL_QUOTE],
:STRING_LITERAL_SINGLE_QUOTE => [:STRING_LITERAL_SINGLE_QUOTE],
- "^^" => [],
},
:_RDFLiteral_1 => {
- "(" => [],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :DECIMAL => [],
- :DOUBLE => [],
- :INTEGER => [],
- :IRIREF => [],
- :LANGTAG => [:_RDFLiteral_2],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :STRING_LITERAL_LONG_QUOTE => [],
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
- :STRING_LITERAL_QUOTE => [],
- :STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
"^^" => [:_RDFLiteral_2],
+ :LANGTAG => [:_RDFLiteral_2],
:_empty => [],
- "false" => [],
- "true" => [],
},
:_RDFLiteral_2 => {
- "(" => [],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :DECIMAL => [],
- :DOUBLE => [],
- :INTEGER => [],
- :IRIREF => [],
- :LANGTAG => [:LANGTAG],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :STRING_LITERAL_LONG_QUOTE => [],
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
- :STRING_LITERAL_QUOTE => [],
- :STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
"^^" => [:_RDFLiteral_3],
- "false" => [],
- "true" => [],
+ :LANGTAG => [:LANGTAG],
},
:_RDFLiteral_3 => {
- "(" => [],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :DECIMAL => [],
- :DOUBLE => [],
- :INTEGER => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :STRING_LITERAL_LONG_QUOTE => [],
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
- :STRING_LITERAL_QUOTE => [],
- :STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
"^^" => ["^^", :iri],
- "false" => [],
- "true" => [],
},
:_collection_1 => {
"(" => [:_collection_2],
")" => [],
+ "[" => [:_collection_2],
+ "false" => [:_collection_2],
+ "true" => [:_collection_2],
:ANON => [:_collection_2],
:BLANK_NODE_LABEL => [:_collection_2],
:DECIMAL => [:_collection_2],
:DOUBLE => [:_collection_2],
:INTEGER => [:_collection_2],
@@ -185,18 +80,18 @@
:PNAME_NS => [:_collection_2],
:STRING_LITERAL_LONG_QUOTE => [:_collection_2],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [:_collection_2],
:STRING_LITERAL_QUOTE => [:_collection_2],
:STRING_LITERAL_SINGLE_QUOTE => [:_collection_2],
- "[" => [:_collection_2],
:_empty => [],
- "false" => [:_collection_2],
- "true" => [:_collection_2],
},
:_collection_2 => {
"(" => [:object, :_collection_1],
")" => [],
+ "[" => [:object, :_collection_1],
+ "false" => [:object, :_collection_1],
+ "true" => [:object, :_collection_1],
:ANON => [:object, :_collection_1],
:BLANK_NODE_LABEL => [:object, :_collection_1],
:DECIMAL => [:object, :_collection_1],
:DOUBLE => [:object, :_collection_1],
:INTEGER => [:object, :_collection_1],
@@ -205,25 +100,20 @@
:PNAME_NS => [:object, :_collection_1],
:STRING_LITERAL_LONG_QUOTE => [:object, :_collection_1],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [:object, :_collection_1],
:STRING_LITERAL_QUOTE => [:object, :_collection_1],
:STRING_LITERAL_SINGLE_QUOTE => [:object, :_collection_1],
- "[" => [:object, :_collection_1],
- "false" => [:object, :_collection_1],
- "true" => [:object, :_collection_1],
},
:_objectList_1 => {
"," => [:_objectList_3],
- ";" => [],
:_empty => [],
},
:_objectList_2 => {
"," => [",", :object],
},
:_objectList_3 => {
"," => [:_objectList_2, :_objectList_1],
- ";" => [],
},
:_predicateObjectList_1 => {
"." => [],
";" => [:_predicateObjectList_3],
"]" => [],
@@ -236,36 +126,30 @@
"." => [],
";" => [:_predicateObjectList_2, :_predicateObjectList_1],
"]" => [],
},
:_predicateObjectList_4 => {
- ";" => [],
+ "a" => [:_predicateObjectList_5],
:IRIREF => [:_predicateObjectList_5],
:PNAME_LN => [:_predicateObjectList_5],
:PNAME_NS => [:_predicateObjectList_5],
:_empty => [],
- "a" => [:_predicateObjectList_5],
},
:_predicateObjectList_5 => {
- ";" => [],
+ "a" => [:verb, :objectList],
:IRIREF => [:verb, :objectList],
:PNAME_LN => [:verb, :objectList],
:PNAME_NS => [:verb, :objectList],
- "a" => [:verb, :objectList],
},
:_statement_1 => {
"(" => [:triples, "."],
- "@base" => [],
- "@prefix" => [],
+ "[" => [:triples, "."],
:ANON => [:triples, "."],
:BLANK_NODE_LABEL => [:triples, "."],
:IRIREF => [:triples, "."],
:PNAME_LN => [:triples, "."],
:PNAME_NS => [:triples, "."],
- :SPARQL_BASE => [],
- :SPARQL_PREFIX => [],
- "[" => [:triples, "."],
},
:_triples_1 => {
"(" => [:subject, :predicateObjectList],
"." => [],
:ANON => [:subject, :predicateObjectList],
@@ -278,99 +162,55 @@
"." => [],
"[" => [:blankNodePropertyList, :_triples_3],
},
:_triples_3 => {
"." => [],
+ "a" => [:predicateObjectList],
:IRIREF => [:predicateObjectList],
:PNAME_LN => [:predicateObjectList],
:PNAME_NS => [:predicateObjectList],
:_empty => [],
- "a" => [:predicateObjectList],
},
:_turtleDoc_1 => {
"(" => [:statement, :turtleDoc],
"@base" => [:statement, :turtleDoc],
"@prefix" => [:statement, :turtleDoc],
+ "[" => [:statement, :turtleDoc],
:ANON => [:statement, :turtleDoc],
:BLANK_NODE_LABEL => [:statement, :turtleDoc],
:IRIREF => [:statement, :turtleDoc],
:PNAME_LN => [:statement, :turtleDoc],
:PNAME_NS => [:statement, :turtleDoc],
:SPARQL_BASE => [:statement, :turtleDoc],
:SPARQL_PREFIX => [:statement, :turtleDoc],
- "[" => [:statement, :turtleDoc],
:_eof => [],
},
:base => {
- "(" => [],
"@base" => ["@base", :IRIREF, "."],
- "@prefix" => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :SPARQL_BASE => [],
- :SPARQL_PREFIX => [],
- "[" => [],
},
:blankNodePropertyList => {
- "(" => [],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :DECIMAL => [],
- :DOUBLE => [],
- :INTEGER => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :STRING_LITERAL_LONG_QUOTE => [],
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
- :STRING_LITERAL_QUOTE => [],
- :STRING_LITERAL_SINGLE_QUOTE => [],
"[" => ["[", :predicateObjectList, "]"],
- "a" => [],
- "false" => [],
- "true" => [],
},
:collection => {
"(" => ["(", :_collection_1, ")"],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :DECIMAL => [],
- :DOUBLE => [],
- :INTEGER => [],
+ "a" => [],
:IRIREF => [],
:PNAME_LN => [],
:PNAME_NS => [],
- :STRING_LITERAL_LONG_QUOTE => [],
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
- :STRING_LITERAL_QUOTE => [],
- :STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
- "a" => [],
- "false" => [],
- "true" => [],
},
:directive => {
- "(" => [],
"@base" => [:base],
"@prefix" => [:prefixID],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
:SPARQL_BASE => [:sparqlBase],
:SPARQL_PREFIX => [:sparqlPrefix],
- "[" => [],
},
:iri => {
"(" => [],
- "," => [],
+ "[" => [],
+ "a" => [],
+ "false" => [],
+ "true" => [],
:ANON => [],
:BLANK_NODE_LABEL => [],
:DECIMAL => [],
:DOUBLE => [],
:INTEGER => [],
@@ -379,37 +219,27 @@
:PNAME_NS => [:PrefixedName],
:STRING_LITERAL_LONG_QUOTE => [],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [],
:STRING_LITERAL_QUOTE => [],
:STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
- "a" => [],
- "false" => [],
- "true" => [],
},
:literal => {
- "(" => [],
- "," => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
+ "false" => [:BooleanLiteral],
+ "true" => [:BooleanLiteral],
:DECIMAL => [:NumericLiteral],
:DOUBLE => [:NumericLiteral],
:INTEGER => [:NumericLiteral],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
:STRING_LITERAL_LONG_QUOTE => [:RDFLiteral],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [:RDFLiteral],
:STRING_LITERAL_QUOTE => [:RDFLiteral],
:STRING_LITERAL_SINGLE_QUOTE => [:RDFLiteral],
- "[" => [],
- "false" => [:BooleanLiteral],
- "true" => [:BooleanLiteral],
},
:object => {
"(" => [:collection],
- "," => [],
+ "[" => [:blankNodePropertyList],
+ "false" => [:literal],
+ "true" => [:literal],
:ANON => [:BlankNode],
:BLANK_NODE_LABEL => [:BlankNode],
:DECIMAL => [:literal],
:DOUBLE => [:literal],
:INTEGER => [:literal],
@@ -418,17 +248,16 @@
:PNAME_NS => [:iri],
:STRING_LITERAL_LONG_QUOTE => [:literal],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [:literal],
:STRING_LITERAL_QUOTE => [:literal],
:STRING_LITERAL_SINGLE_QUOTE => [:literal],
- "[" => [:blankNodePropertyList],
- "false" => [:literal],
- "true" => [:literal],
},
:objectList => {
"(" => [:object, :_objectList_1],
- ";" => [],
+ "[" => [:object, :_objectList_1],
+ "false" => [:object, :_objectList_1],
+ "true" => [:object, :_objectList_1],
:ANON => [:object, :_objectList_1],
:BLANK_NODE_LABEL => [:object, :_objectList_1],
:DECIMAL => [:object, :_objectList_1],
:DOUBLE => [:object, :_objectList_1],
:INTEGER => [:object, :_objectList_1],
@@ -437,16 +266,16 @@
:PNAME_NS => [:object, :_objectList_1],
:STRING_LITERAL_LONG_QUOTE => [:object, :_objectList_1],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [:object, :_objectList_1],
:STRING_LITERAL_QUOTE => [:object, :_objectList_1],
:STRING_LITERAL_SINGLE_QUOTE => [:object, :_objectList_1],
- "[" => [:object, :_objectList_1],
- "false" => [:object, :_objectList_1],
- "true" => [:object, :_objectList_1],
},
:predicate => {
"(" => [],
+ "[" => [],
+ "false" => [],
+ "true" => [],
:ANON => [],
:BLANK_NODE_LABEL => [],
:DECIMAL => [],
:DOUBLE => [],
:INTEGER => [],
@@ -455,110 +284,81 @@
:PNAME_NS => [:iri],
:STRING_LITERAL_LONG_QUOTE => [],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [],
:STRING_LITERAL_QUOTE => [],
:STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
- "false" => [],
- "true" => [],
},
:predicateObjectList => {
"." => [],
+ "]" => [],
+ "a" => [:verb, :objectList, :_predicateObjectList_1],
:IRIREF => [:verb, :objectList, :_predicateObjectList_1],
:PNAME_LN => [:verb, :objectList, :_predicateObjectList_1],
:PNAME_NS => [:verb, :objectList, :_predicateObjectList_1],
- "]" => [],
- "a" => [:verb, :objectList, :_predicateObjectList_1],
},
:prefixID => {
- "(" => [],
- "@base" => [],
"@prefix" => ["@prefix", :PNAME_NS, :IRIREF, "."],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :SPARQL_BASE => [],
- :SPARQL_PREFIX => [],
- "[" => [],
},
:sparqlBase => {
- "(" => [],
- "@base" => [],
- "@prefix" => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
:SPARQL_BASE => [:SPARQL_BASE, :IRIREF],
- :SPARQL_PREFIX => [],
- "[" => [],
},
:sparqlPrefix => {
- "(" => [],
- "@base" => [],
- "@prefix" => [],
- :ANON => [],
- :BLANK_NODE_LABEL => [],
- :IRIREF => [],
- :PNAME_LN => [],
- :PNAME_NS => [],
- :SPARQL_BASE => [],
:SPARQL_PREFIX => [:SPARQL_PREFIX, :PNAME_NS, :IRIREF],
- "[" => [],
},
:statement => {
"(" => [:_statement_1],
"@base" => [:directive],
"@prefix" => [:directive],
+ "[" => [:_statement_1],
:ANON => [:_statement_1],
:BLANK_NODE_LABEL => [:_statement_1],
:IRIREF => [:_statement_1],
:PNAME_LN => [:_statement_1],
:PNAME_NS => [:_statement_1],
:SPARQL_BASE => [:directive],
:SPARQL_PREFIX => [:directive],
- "[" => [:_statement_1],
},
:subject => {
"(" => [:collection],
+ "a" => [],
:ANON => [:BlankNode],
:BLANK_NODE_LABEL => [:BlankNode],
:IRIREF => [:iri],
:PNAME_LN => [:iri],
:PNAME_NS => [:iri],
- "a" => [],
},
:triples => {
"(" => [:_triples_1],
"." => [],
+ "[" => [:_triples_2],
:ANON => [:_triples_1],
:BLANK_NODE_LABEL => [:_triples_1],
:IRIREF => [:_triples_1],
:PNAME_LN => [:_triples_1],
:PNAME_NS => [:_triples_1],
- "[" => [:_triples_2],
},
:turtleDoc => {
"(" => [:_turtleDoc_1],
"@base" => [:_turtleDoc_1],
"@prefix" => [:_turtleDoc_1],
+ "[" => [:_turtleDoc_1],
:ANON => [:_turtleDoc_1],
:BLANK_NODE_LABEL => [:_turtleDoc_1],
:IRIREF => [:_turtleDoc_1],
:PNAME_LN => [:_turtleDoc_1],
:PNAME_NS => [:_turtleDoc_1],
:SPARQL_BASE => [:_turtleDoc_1],
:SPARQL_PREFIX => [:_turtleDoc_1],
- "[" => [:_turtleDoc_1],
:_empty => [],
:_eof => [],
},
:verb => {
"(" => [],
+ "[" => [],
+ "a" => ["a"],
+ "false" => [],
+ "true" => [],
:ANON => [],
:BLANK_NODE_LABEL => [],
:DECIMAL => [],
:DOUBLE => [],
:INTEGER => [],
@@ -567,24 +367,26 @@
:PNAME_NS => [:predicate],
:STRING_LITERAL_LONG_QUOTE => [],
:STRING_LITERAL_LONG_SINGLE_QUOTE => [],
:STRING_LITERAL_QUOTE => [],
:STRING_LITERAL_SINGLE_QUOTE => [],
- "[" => [],
- "a" => ["a"],
- "false" => [],
- "true" => [],
},
}.freeze
TERMINALS = [
"(",
")",
",",
".",
";",
"@base",
"@prefix",
+ "[",
+ "]",
+ "^^",
+ "a",
+ "false",
+ "true",
:ANON,
:BLANK_NODE_LABEL,
:DECIMAL,
:DOUBLE,
:INTEGER,
@@ -595,17 +397,11 @@
:SPARQL_BASE,
:SPARQL_PREFIX,
:STRING_LITERAL_LONG_QUOTE,
:STRING_LITERAL_LONG_SINGLE_QUOTE,
:STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- "[",
- "]",
- "^^",
- "a",
- "false",
- "true"
+ :STRING_LITERAL_SINGLE_QUOTE
].freeze
FIRST = {
:BlankNode => [
:BLANK_NODE_LABEL,
:ANON],
@@ -635,13 +431,10 @@
:_RDFLiteral_2 => [
:LANGTAG,
"^^"],
:_RDFLiteral_3 => [
"^^"],
- :_RDFLiteral_4 => [
- :LANGTAG,
- "^^"],
:_base_1 => [
:IRIREF],
:_blankNodePropertyList_1 => [
"a",
:IRIREF,
@@ -682,57 +475,21 @@
:STRING_LITERAL_QUOTE,
:STRING_LITERAL_SINGLE_QUOTE,
:STRING_LITERAL_LONG_SINGLE_QUOTE,
:STRING_LITERAL_LONG_QUOTE],
:_collection_3 => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :PNAME_NS,
- :PNAME_LN,
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
- :_collection_4 => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :PNAME_NS,
- :PNAME_LN,
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
+ ")"],
:_collection_5 => [
")"],
:_empty => [
],
:_objectList_1 => [
","],
:_objectList_2 => [
","],
:_objectList_3 => [
","],
- :_objectList_4 => [
- ","],
- :_objectList_5 => [
- ","],
:_objectList_6 => [
"[",
"(",
:IRIREF,
:BLANK_NODE_LABEL,
@@ -779,17 +536,10 @@
:PNAME_LN,
:STRING_LITERAL_QUOTE,
:STRING_LITERAL_SINGLE_QUOTE,
:STRING_LITERAL_LONG_SINGLE_QUOTE,
:STRING_LITERAL_LONG_QUOTE],
- :_predicateObjectList_7 => [
- ";"],
- :_predicateObjectList_8 => [
- "a",
- :IRIREF,
- :PNAME_NS,
- :PNAME_LN],
:_predicateObjectList_9 => [
"[",
"(",
:IRIREF,
:BLANK_NODE_LABEL,
@@ -838,15 +588,10 @@
:_triples_4 => [
"a",
:IRIREF,
:PNAME_NS,
:PNAME_LN],
- :_triples_5 => [
- "a",
- :IRIREF,
- :PNAME_NS,
- :PNAME_LN],
:_turtleDoc_1 => [
"@prefix",
"@base",
:SPARQL_PREFIX,
:SPARQL_BASE,
@@ -855,22 +600,10 @@
:IRIREF,
:BLANK_NODE_LABEL,
:ANON,
:PNAME_NS,
:PNAME_LN],
- :_turtleDoc_2 => [
- "@prefix",
- "@base",
- :SPARQL_PREFIX,
- :SPARQL_BASE,
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :PNAME_NS,
- :PNAME_LN],
:base => [
"@base"],
:blankNodePropertyList => [
"["],
:collection => [
@@ -990,50 +723,13 @@
}.freeze
FOLLOW = {
:BlankNode => [
:BLANK_NODE_LABEL,
:ANON],
- :BooleanLiteral => [
- "true",
- "false"],
- :NumericLiteral => [
- :INTEGER,
- :DECIMAL,
- :DOUBLE],
:PrefixedName => [
:PNAME_NS,
:PNAME_LN],
- :RDFLiteral => [
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
- :String => [
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
- :_RDFLiteral_1 => [
- :LANGTAG,
- "^^"],
- :_RDFLiteral_2 => [
- :LANGTAG,
- "^^"],
- :_RDFLiteral_3 => [
- "^^"],
- :_RDFLiteral_4 => [
- :LANGTAG,
- "^^"],
- :_base_1 => [
- :IRIREF],
- :_blankNodePropertyList_1 => [
- "a",
- :IRIREF,
- :PNAME_NS,
- :PNAME_LN],
- :_blankNodePropertyList_2 => [
- "]"],
:_collection_1 => [
"[",
"(",
:IRIREF,
:BLANK_NODE_LABEL,
@@ -1065,90 +761,19 @@
:STRING_LITERAL_QUOTE,
:STRING_LITERAL_SINGLE_QUOTE,
:STRING_LITERAL_LONG_SINGLE_QUOTE,
:STRING_LITERAL_LONG_QUOTE],
:_collection_3 => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :PNAME_NS,
- :PNAME_LN,
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
- :_collection_4 => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :PNAME_NS,
- :PNAME_LN,
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
+ ")"],
:_collection_5 => [
")"],
:_empty => [
],
- :_objectList_1 => [
- ","],
- :_objectList_2 => [
- ","],
- :_objectList_3 => [
- ","],
- :_objectList_4 => [
- ","],
- :_objectList_5 => [
- ","],
- :_objectList_6 => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :PNAME_NS,
- :PNAME_LN,
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
:_predicateObjectList_1 => [
";"],
- :_predicateObjectList_2 => [
- ";"],
:_predicateObjectList_3 => [
";"],
- :_predicateObjectList_4 => [
- "a",
- :IRIREF,
- :PNAME_NS,
- :PNAME_LN],
- :_predicateObjectList_5 => [
- "a",
- :IRIREF,
- :PNAME_NS,
- :PNAME_LN],
:_predicateObjectList_6 => [
"[",
"(",
:IRIREF,
:BLANK_NODE_LABEL,
@@ -1162,50 +787,10 @@
:PNAME_LN,
:STRING_LITERAL_QUOTE,
:STRING_LITERAL_SINGLE_QUOTE,
:STRING_LITERAL_LONG_SINGLE_QUOTE,
:STRING_LITERAL_LONG_QUOTE],
- :_predicateObjectList_7 => [
- ";"],
- :_predicateObjectList_8 => [
- "a",
- :IRIREF,
- :PNAME_NS,
- :PNAME_LN],
- :_predicateObjectList_9 => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :PNAME_NS,
- :PNAME_LN,
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
- :_prefixID_1 => [
- :PNAME_NS],
- :_sparqlBase_1 => [
- :IRIREF],
- :_sparqlPrefix_1 => [
- :PNAME_NS],
- :_statement_1 => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :PNAME_NS,
- :PNAME_LN],
- :_statement_2 => [
- "."],
:_triples_1 => [
"(",
:IRIREF,
:BLANK_NODE_LABEL,
:ANON,
@@ -1221,15 +806,10 @@
:_triples_4 => [
"a",
:IRIREF,
:PNAME_NS,
:PNAME_LN],
- :_triples_5 => [
- "a",
- :IRIREF,
- :PNAME_NS,
- :PNAME_LN],
:_turtleDoc_1 => [
"@prefix",
"@base",
:SPARQL_PREFIX,
:SPARQL_BASE,
@@ -1238,105 +818,22 @@
:IRIREF,
:BLANK_NODE_LABEL,
:ANON,
:PNAME_NS,
:PNAME_LN],
- :_turtleDoc_2 => [
- "@prefix",
- "@base",
- :SPARQL_PREFIX,
- :SPARQL_BASE,
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :PNAME_NS,
- :PNAME_LN],
- :base => [
- "@base"],
- :blankNodePropertyList => [
- "["],
:collection => [
"("],
- :directive => [
- "@prefix",
- "@base",
- :SPARQL_PREFIX,
- :SPARQL_BASE],
:iri => [
:IRIREF,
:PNAME_NS,
:PNAME_LN],
- :literal => [
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
- :object => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :PNAME_NS,
- :PNAME_LN,
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
- :objectList => [
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
- :INTEGER,
- :DECIMAL,
- :DOUBLE,
- "true",
- "false",
- :PNAME_NS,
- :PNAME_LN,
- :STRING_LITERAL_QUOTE,
- :STRING_LITERAL_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
- :STRING_LITERAL_LONG_QUOTE],
:predicate => [
:IRIREF,
:PNAME_NS,
:PNAME_LN],
:predicateObjectList => [
"a",
:IRIREF,
- :PNAME_NS,
- :PNAME_LN],
- :prefixID => [
- "@prefix"],
- :sparqlBase => [
- :SPARQL_BASE],
- :sparqlPrefix => [
- :SPARQL_PREFIX],
- :statement => [
- "@prefix",
- "@base",
- :SPARQL_PREFIX,
- :SPARQL_BASE,
- "[",
- "(",
- :IRIREF,
- :BLANK_NODE_LABEL,
- :ANON,
:PNAME_NS,
:PNAME_LN],
:subject => [
"(",
:IRIREF,