You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "aucampia (via GitHub)" <gi...@apache.org> on 2023/05/20 14:51:40 UTC
[GitHub] [jena] aucampia opened a new issue, #1873: Using riot with nquads input with named graphs and ntriples/turtle output silently drops part of the input
aucampia opened a new issue, #1873:
URL: https://github.com/apache/jena/issues/1873
### Version
4.8.0
### What happened?
Given this N-Quads input (saved as `test/data/variants/diverse_quads.nq`) that contains triples with graphs labels [[ref]([url](https://www.w3.org/TR/n-quads/#grammar-production-graphLabel))] (i.e. contains named graphs[[ref](https://www.w3.org/TR/rdf11-concepts/#section-dataset)]):
```nquads
<http://example.com/subject> <http://example.com/predicate> "日本語の表記体系"@jpx <example:graph> .
<urn:example:subject> <example:predicate> <example:subject> <example:graph> .
<example:subject> <example:predicate> <example:object> <example:graph> .
<example:subject> <example:predicate> "12"^^<http://www.w3.org/2001/XMLSchema#integer> <example:graph> .
<example:subject> <example:predicate> <example:object> <urn:example:graph> .
<example:subject> <http://example.com/predicate> <http://example.com/object> <urn:example:graph> .
<example:subject> <http://example.com/predicate> "XSD string" <urn:example:graph> .
<example:subject> <example:predicate> <example:object> .
<http://example.com/subject> <http://example.com/predicate> "typeless" .
<urn:example:subject> <urn:example:predicate> <urn:example:object> .
```
When processing it with `riot --syntax=nquads --formatted=ntriples`, riot generates output and no error, but the output only contains the triples from the default graph.
```console
$ jbang run --main riotcmd.riot --deps='org.slf4j:slf4j-simple:1.7+' 'org.apache.jena:jena-cmds:4.8.0' --syntax=nquads --formatted=ntriples test/data/variants/diverse_quads.nq; echo status=$?
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
<http://example.com/subject> <http://example.com/predicate> "typeless" .
<example:subject> <example:predicate> <example:object> .
<urn:example:subject> <urn:example:predicate> <urn:example:object> .
status=0
```
I would expect it to at least exit with an error status code, and also preferably print an error message.
### Relevant output and stacktrace
_No response_
### Are you interested in making a pull request?
Maybe
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
[GitHub] [jena] afs closed issue #1873: Using riot with `N-Quads` input with named graphs and `N-Triples`/`Turtle` output silently drops part of the input
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs closed issue #1873: Using riot with `N-Quads` input with named graphs and `N-Triples`/`Turtle` output silently drops part of the input
URL: https://github.com/apache/jena/issues/1873
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
[GitHub] [jena] afs commented on issue #1873: Using riot with `N-Quads` input with named graphs and `N-Triples`/`Turtle` output silently drops part of the input
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #1873:
URL: https://github.com/apache/jena/issues/1873#issuecomment-1556212424
Please review #1876
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
[GitHub] [jena] afs commented on issue #1873: Using riot with `N-Quads` input with named graphs and `N-Triples`/`Turtle` output silently drops part of the input
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #1873:
URL: https://github.com/apache/jena/issues/1873#issuecomment-1557498312
Also - added `--merge`
This is all about the command line tool and how it configures the operations.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
[GitHub] [jena] afs commented on issue #1873: Using riot with `N-Quads` input with named graphs and `N-Triples`/`Turtle` output silently drops part of the input
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #1873:
URL: https://github.com/apache/jena/issues/1873#issuecomment-1556000565
This can be changed as a feature request. To preserve streaming, it would be a once per run log message.
Jena treats quads in a triples context as triples from the default graph.
Some people expect the union-merge but named graphs might be being used for intentional separation.
The application has to indicates that the named graphs can be considered part of a union-all graph.
An option to `riot` to do the quads to triples conversion, controlled by a new argument, is possible.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org