You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by GitBox <gi...@apache.org> on 2020/01/23 19:25:32 UTC
[GitHub] [jena] osma opened a new pull request #678: JENA-1826: use plain
RDF/XML in Fuseki RDF responses
osma opened a new pull request #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678
The pretty (aka abbreviated) RDF/XML serialization of Fuseki RDF responses (CONSTRUCT and DESCRIBE queries) sometimes takes excessive amounts of time and CPU to generate. This PR makes Fuseki use plain RDF/XML instead, which is faster to generate.
I had to pass a `RDFFormat` instead of `Lang` to `RDFDataMgr.write()` as it allows more fine-grained control over the serialization syntax. The logic was copied from the GSP_R class.
Jira link: https://issues.apache.org/jira/browse/JENA-1826
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
[GitHub] [jena] afs merged pull request #678: JENA-1826: use plain RDF/XML
in Fuseki RDF responses
Posted by GitBox <gi...@apache.org>.
afs merged pull request #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
[GitHub] [jena] afs commented on issue #678: JENA-1826: use plain RDF/XML in
Fuseki RDF responses
Posted by GitBox <gi...@apache.org>.
afs commented on issue #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678#issuecomment-580195080
Would you like me to merge this?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
[GitHub] [jena] afs commented on issue #678: JENA-1826: use plain RDF/XML in
Fuseki RDF responses
Posted by GitBox <gi...@apache.org>.
afs commented on issue #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678#issuecomment-580282537
Yes, it's changed. Press the big green button, update the JITA ticket.
Now that the GH and the ASF repos are both write mode, and mirrored, the git updating can be done on either. i.e. GH tools work.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
[GitHub] [jena] afs commented on a change in pull request #678: JENA-1826:
use plain RDF/XML in Fuseki RDF responses
Posted by GitBox <gi...@apache.org>.
afs commented on a change in pull request #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678#discussion_r370378457
##########
File path: jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ResponseDataset.java
##########
@@ -113,16 +115,19 @@ public static void doResponseDataset(HttpAction action, Dataset dataset) {
Lang lang = RDFLanguages.contentTypeToLang(contentType);
if ( lang == null )
ServletOps.errorBadRequest("Can't determine output content type: "+contentType);
+ // Choose the serialization. For RDX/XML use the fast, plain variant.
Review comment:
`s/RDX/RDF/`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
[GitHub] [jena] osma commented on a change in pull request #678: JENA-1826:
use plain RDF/XML in Fuseki RDF responses
Posted by GitBox <gi...@apache.org>.
osma commented on a change in pull request #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678#discussion_r370502927
##########
File path: jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ResponseDataset.java
##########
@@ -113,16 +115,19 @@ public static void doResponseDataset(HttpAction action, Dataset dataset) {
Lang lang = RDFLanguages.contentTypeToLang(contentType);
if ( lang == null )
ServletOps.errorBadRequest("Can't determine output content type: "+contentType);
+ // Choose the serialization. For RDX/XML use the fast, plain variant.
Review comment:
Good catch! Fixed
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
[GitHub] [jena] afs edited a comment on issue #678: JENA-1826: use plain
RDF/XML in Fuseki RDF responses
Posted by GitBox <gi...@apache.org>.
afs edited a comment on issue #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678#issuecomment-580282537
Yes, it's changed. Press the big green button, resolve or update the JIRA ticket.
Now that the GH and the ASF repos are both write mode, and mirrored, the git updating can be done on either. i.e. GH tools work.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
[GitHub] [jena] osma commented on issue #678: JENA-1826: use plain RDF/XML
in Fuseki RDF responses
Posted by GitBox <gi...@apache.org>.
osma commented on issue #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678#issuecomment-580225161
@afs Sure, you can merge this, thanks! I could probably do that myself too but I haven't done this for awhile and I think the processes might have changed.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org
[GitHub] [jena] osma commented on issue #678: JENA-1826: use plain RDF/XML
in Fuseki RDF responses
Posted by GitBox <gi...@apache.org>.
osma commented on issue #678: JENA-1826: use plain RDF/XML in Fuseki RDF responses
URL: https://github.com/apache/jena/pull/678#issuecomment-578023916
Thanks for the quick review and approval @afs. I'll wait a few more days before merging, in case others want to comment.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org