diff --git a/lib_old/src/parsing/n3.pest b/lib_old/src/parsing/n3.pest index f4c76bd..b18b997 100644 --- a/lib_old/src/parsing/n3.pest +++ b/lib_old/src/parsing/n3.pest @@ -75,7 +75,8 @@ NewLine = { "\r" | "\n" } Var = {"?"~ASCII_ALPHA+~ASCII_ALPHANUMERIC*} Prefix = {"@prefix"~SPACE+~PrefixIdentifier~":"~SPACE+~"<"~Iri~">"~WS* ~"."~WS*} PrefixIdentifier = {ASCII_ALPHANUMERIC*} -Prefixed = {PrefixIdentifier ~":"~ASCII_ALPHANUMERIC+} +LocalNameChar = {ASCII_ALPHANUMERIC | "_"} +Prefixed = {PrefixIdentifier ~":"~LocalNameChar+} Term = {"<"~Iri~">" | Prefixed} varOrTerm = { Term | Var} Subject = { Term | Var} @@ -85,4 +86,4 @@ TP = { WS*~Subject ~WS+~ Property ~WS+~ Object ~WS* ~"."? ~WS* } Body = {"{"~TP+~"}"} Head = {"{"~WS*~TP~WS*~"}"} rule = { Body~WS*~"=>"~WS*~Head~WS*~"."? ~WS*} -document = {Prefix* ~ NewLine* ~rule+} \ No newline at end of file +document = {Prefix* ~ NewLine* ~rule+}