-
Notifications
You must be signed in to change notification settings - Fork 175
GH-5327 Add Support for RDF 1.2 Literals - JSON datatype and Language Base Direction #5389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rdf12
Are you sure you want to change the base?
Conversation
Signed-off-by: Håvard Ottestad <[email protected]>
Signed-off-by: Håvard Ottestad <[email protected]>
Signed-off-by: Håvard Ottestad <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nitpicks
core/rio/nquads/src/test/java/org/eclipse/rdf4j/rio/nquads/AbstractNQuadsWriterTest.java
Outdated
Show resolved
Hide resolved
core/rio/trig/src/test/java/org/eclipse/rdf4j/rio/trig/AbstractTriGWriterTest.java
Outdated
Show resolved
Hide resolved
core/rio/api/src/main/java/org/eclipse/rdf4j/rio/LanguageHandler.java
Outdated
Show resolved
Hide resolved
core/rio/api/src/test/java/org/eclipse/rdf4j/rio/AbstractParserTest.java
Outdated
Show resolved
Hide resolved
@SarahGrand BTW, we should squash your commits. |
core/model/src/main/java/org/eclipse/rdf4j/model/impl/SimpleLiteral.java
Outdated
Show resolved
Hide resolved
core/model-api/src/main/java/org/eclipse/rdf4j/model/base/AbstractLiteral.java
Outdated
Show resolved
Hide resolved
core/model-api/src/main/java/org/eclipse/rdf4j/model/base/AbstractValueFactory.java
Show resolved
Hide resolved
core/model-api/src/main/java/org/eclipse/rdf4j/model/base/AbstractValueFactory.java
Outdated
Show resolved
Hide resolved
core/rio/api/src/main/java/org/eclipse/rdf4j/rio/helpers/RDFParserHelper.java
Show resolved
Hide resolved
core/model-api/src/main/java/org/eclipse/rdf4j/model/Literal.java
Outdated
Show resolved
Hide resolved
core/rio/languages/src/main/java/org/eclipse/rdf4j/rio/languages/RFC3066LanguageHandler.java
Outdated
Show resolved
Hide resolved
ff8c411
to
fdd4b7f
Compare
private final BaseDirection baseDirection; | ||
|
||
TaggedLiteral(String label, String language) { | ||
this(label, language, null); |
There was a problem hiding this comment.
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);
I've completed my review. Let me know your thoughts when you get a chance. |
fdd4b7f
to
4f69381
Compare
Unless you've modified any of the pom.xml files then you don't need worry about the license checks, they routinely fail. |
d93bdb3
to
4f69381
Compare
341ae94
to
d1e25c4
Compare
There was a problem hiding this 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!
#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
andLANGDIR
) not implemented.PR Author Checklist (see the contributor guidelines for more details):
mvn process-resources
to format from the command line)