Skip to content

Conversation

@atextor
Copy link
Owner

@atextor atextor commented Jan 19, 2024

Fixes #19.

WIP

atextor added 30 commits March 2, 2021 05:43
This is to enable build automation where one action creates a release
and another action has a trigger on it, see https://github.community/t/github-action-trigger-on-release-not-working-if-releases-was-created-by-automation/16559
This is the first feature-complete version.
This is to tell Jacoco about code generated by lombok, to exclude it from
coverage/reports
apache-jena-libs is a `pom` type dependency, while jena-core is of type `jar`.
This change makes possible to properly use turtle-formatter as a maven
dependency itself without having to override the jena dependency.
This is a maintenance release, which does not add features. It fixes the
dependency declarations that prevented the previous version to be used as Maven
depenency without custom overrides.
* Bugfix: Subjects with a `rdf:type` not in `subjectOrder` are rendered correctly
* Adjust default `subjectOrder` and `predicateOrder`
* Add new option `keepUnusedPrefixes` and by default render only used prefixes
Bugfix: Subjects with a `rdf:type` not in `subjectOrder` are rendered correctly.
Adjust default `subjectOrder` and `predicateOrder`.
Add new option `keepUnusedPrefixes` and by default render only used prefixes.
The formatter used to swallow leading zeros in integer literals, as in the triple,

```
:thing :value 060 .
```

With this change, by rendering the lexical form of the literal, the exact input form is reproduced.
@atextor atextor mentioned this pull request Sep 28, 2024
atextor and others added 28 commits October 3, 2024 21:25
…literals

Fix leading zeros in integer literals
Prior to this commit, in some situations, formatting changes the datatype of numeric literals (xsd:double and xsd:decimal). The change happens if the lexical form is ambiguous because it does not include a fractional part.

This commit checks for this condition and uses the quoted form in these cases.
xsd:double is correctly typed even when lexically equivalent to xsd:decimal
Situation before this commit: If an rdf list node has additional triples, those triples are lost when it gets formatted.

With this commit, TurtleFormatter.isListNode(node) returns false if the node has other properties than rdf:first and rdf:rest.
Correctly format RDF nodes with additional properties
Empty RDF lists are formatted as empty set of parenthesis again
…in-multiline-strings

Handle platform specific line terminators gracefully in multiline strings
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.

Switch build to Maven

4 participants