Skip to content

Commit

Permalink
Temporary workaround for issue with blank node labels generated by
Browse files Browse the repository at this point in the history
java based rdf2hdt cli. rdfhdt/hdt-java#210
  • Loading branch information
GregHanson committed May 20, 2024
1 parent 8216278 commit 1770ed9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/oxrdf/src/blank_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,17 @@ impl IdStr {
fn validate_blank_node_identifier(id: &str) -> Result<(), BlankNodeIdParseError> {
let mut chars = id.chars();
let front = chars.next().ok_or(BlankNodeIdParseError)?;
// TODO: blank node issue with label _:@ with java based rdt2hdt conversion
// upstream issue https://github.com/rdfhdt/hdt-java/issues/210
// List of acceptable char in label found here: https://www.w3.org/TR/turtle/#grammar-production-PN_CHARS_BASE
// temporarily adding 0040 for @ until consensus is reached
match front {
'0'..='9'
| '_'
| ':'
| 'A'..='Z'
| 'a'..='z'
| '\u{0040}'
| '\u{00C0}'..='\u{00D6}'
| '\u{00D8}'..='\u{00F6}'
| '\u{00F8}'..='\u{02FF}'
Expand Down

0 comments on commit 1770ed9

Please sign in to comment.