From 7e2dea12d12c422babe4cf0765871b822e58adb9 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Sat, 23 Nov 2024 10:02:27 +0100 Subject: [PATCH] be more flexible with bnode extraction --- src/triple_common_parser.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/triple_common_parser.rs b/src/triple_common_parser.rs index cc3f799..ce34ece 100644 --- a/src/triple_common_parser.rs +++ b/src/triple_common_parser.rs @@ -356,7 +356,9 @@ pub(crate) mod triple { pub(crate) fn labeled_bnode(s: &str) -> ParserResult { let parse_label = delimited( tag(BLANK_NODE_LABEL), - take_while(|s: char| !s.is_whitespace() && s != '.' && s != ';' && s != '<'), + take_while(|s: char| { + !s.is_whitespace() && s != '.' && s != ';' && s != '<' && s != '(' && s != '[' + }), space0, );