Skip to content

Conversation

SarahGrand
Copy link

@SarahGrand SarahGrand commented Jul 29, 2025

#5327

Briefly describe the changes proposed in this PR:

Added support for rdf:JSON datatype.

Added support for dirLangString literals. Added dirLangString datatype, and the base direction itself is stored within the language string in Literal implementations. Supported in parsers and writers for Turtle, TriG, NTriples, and NQuads.

Cleaned up parser testing code and put common functionality in AbstractParserTest.

Note: SPARQL functions for language direction (hasLANGDIR and LANGDIR) not implemented.


PR Author Checklist (see the contributor guidelines for more details):

  • my pull request is self-contained
  • I've added tests for the changes I made
  • I've applied code formatting (you can use mvn process-resources to format from the command line)
  • I've squashed my commits where necessary
  • every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

Copy link

@odysa odysa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nitpicks

@odysa
Copy link

odysa commented Jul 30, 2025

@SarahGrand BTW, we should squash your commits.

private final BaseDirection baseDirection;

TaggedLiteral(String label, String language) {
this(label, language, null);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this(label, language, BaseDirection.NONE);

@odysa
Copy link

odysa commented Aug 1, 2025

I've completed my review. Let me know your thoughts when you get a chance.
@kenwenzel @hmottestad

@hmottestad
Copy link
Contributor

Unless you've modified any of the pom.xml files then you don't need worry about the license checks, they routinely fail.

@SarahGrand SarahGrand force-pushed the GH-5327-rdf12 branch 2 times, most recently from d93bdb3 to 4f69381 Compare August 4, 2025 19:35
Copy link
Contributor

@kenwenzel kenwenzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good for me - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants