You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "hartig (via GitHub)" <gi...@apache.org> on 2024/06/04 13:27:42 UTC

[I] Support for SPARQL CDTs (lists and maps as literals) [jena]

hartig opened a new issue, #2518:
URL: https://github.com/apache/jena/issues/2518

   ### Version
   
   5.1.0
   
   ### Feature
   
   The lack of built-in support for generic types of composite values such as lists and maps has been a long-standing issue for RDF and SPARQL. Together with a few other colleagues at the Amazon Neptune team we have developed an approach to represent lists and maps as literals in RDF data, and to extend SPARQL with features related to such literals. These extensions of SPARQL include:
   * an aggregation function to produce these composite values (FOLD),
   * functions to operate on these composite values in expressions, and
   * a new operator (UNFOLD) to unfold such composite values into their individual components.
   
   We have created a [complete formal specification of the approach](https://w3id.org/awslabs/neptune/SPARQL-CDTs/spec/latest.html) and a comprehensive test suite for implementers, which can be found in our Github repo: https://github.com/awslabs/SPARQL-CDTs
   
   Perhaps before you dive into the aforementioned specification, you may take a look at our [short paper](http://olafhartig.de/files/HartigEtAl_SPARQLCDTs_PosterPaper2024.pdf), in which we provide a slightly more extensive motivation for this work and a (very!) brief summary of the approach. After that, [Section 2  of the specification](https://awslabs.github.io/SPARQL-CDTs/spec/latest.html#description) provides a more detailed informal description of the different parts of the approach.
   
   I am happy to answer any questions that you may have, both about the approach in general and about the idea to integrate the approach into Jena. Also, if you have issues with some parts of the specification, feel free to create an issue in the aforementioned Github repo. (And in case you are wondering, yes we are planning to file the approach as a [SPARQL Enhancement Proposal (SEP)](https://github.com/w3c/sparql-dev/tree/main/SEP) for the [SPARQL-dev Community Group](https://www.w3.org/groups/cg/sparql-dev/)).
   
   ### Are you interested in contributing a solution yourself?
   
   Yes


-- 
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


Re: [I] Support for SPARQL CDTs (lists and maps as literals) [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs closed issue #2518: Support for SPARQL CDTs (lists and maps as literals)
URL: https://github.com/apache/jena/issues/2518


-- 
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


Re: [I] Support for SPARQL CDTs (lists and maps as literals) [jena]

Posted by "hartig (via GitHub)" <gi...@apache.org>.
hartig commented on issue #2518:
URL: https://github.com/apache/jena/issues/2518#issuecomment-2322870373

   @afs 
   > in cleaning the ingested branch code, I found that main.jj does not build with javacc (I have version 7.0.12).
   >
   > There are [two uses of Unfold](https://github.com/apache/jena/pull/2501/files#diff-4d6097b4cd35d9151c6ba077f356ceb6b7aaa8f422b2787a2d464a9298581235R923-R934)
   > and [two declarations of Unfold](https://github.com/apache/jena/pull/2501/files#diff-4d6097b4cd35d9151c6ba077f356ceb6b7aaa8f422b2787a2d464a9298581235R1066-R1102).
   
   I didn't notice myself. I guess that this was an artifact of my earlier attempt to rebase my branch, which was a several-hours project after more than a year of divergence between the branches.
   
   > The problem is now fixed.
   
   Thanks!
   
   Thanks also for the other changes (Builder for `OpUnfold`, cleaning of warnings, etc). I looked through all your commits and they are fine.
   
   > Please test when you have some time.
   
   Done. Everything works as expected! That is, i) `mvn clean package` runs through without problems for that branch, ii) `arq.rdftests` runs our SPARQL CDTs test suite without issues, and iii) `arq.arq` can be used to run SPARQL queries that use our CDT-related features.
   
   So, from my side, this can be merged now.


-- 
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


Re: [I] Support for SPARQL CDTs (lists and maps as literals) [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2518:
URL: https://github.com/apache/jena/issues/2518#issuecomment-2314939029

   Please continue discussion on this contribution on this issue. 
   
   The PR is merge to branch [gh2518-cdt](https://github.com/apache/jena/tree/gh2518-cdt).


-- 
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


Re: [I] Support for SPARQL CDTs (lists and maps as literals) [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2518:
URL: https://github.com/apache/jena/issues/2518#issuecomment-2317520825

   @Olaf - in cleaning the ingested branch code, I found that `main.jj` does not build with javacc (I have version 7.0.12).
   
   There are [two uses of` Unfold`](https://github.com/apache/jena/pull/2501/files#diff-4d6097b4cd35d9151c6ba077f356ceb6b7aaa8f422b2787a2d464a9298581235R923-R934) 
   and [two declarations of `Unfold`](https://github.com/apache/jena/pull/2501/files#diff-4d6097b4cd35d9151c6ba077f356ceb6b7aaa8f422b2787a2d464a9298581235R1066-R1102).
   
   This is not due to the ingestion/squash process onto the Jena branch - those links are to the PR #2501.
   
   I don't know how that could have happened but the generated java code did not correspond to the JavaCC input. The problem is now fixed.
   
   I've also added a Builder for `OpUnfold` so algebra using that operator can be written out and read in again. The command line tool `qparse` now works (it parses queries and also checks that they print out in a form that equals the input and also have the same algebra).
   
   I've finished cleaning up the code (warnings, some white space things I noticed) for now.
   
   Please test when you have some time.
   
   I'll keep the branch in-step with the main branch. There are some parser changes for RDF 1.2 in the pipeline.
   


-- 
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


Re: [I] Support for SPARQL CDTs (lists and maps as literals) [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2518:
URL: https://github.com/apache/jena/issues/2518#issuecomment-2340339610

   @hartig -- Thank you for the contribution!
   
   It's now merged into the main branch and will be in the next Jena release. 
   It is also in development snapshots from now on.


-- 
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


Re: [I] Support for SPARQL CDTs (lists and maps as literals) [jena]

Posted by "hartig (via GitHub)" <gi...@apache.org>.
hartig commented on issue #2518:
URL: https://github.com/apache/jena/issues/2518#issuecomment-2341141283

   Great news! Thanks a lot @afs for your help on getting this contribution merged!!


-- 
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


Re: [I] Support for SPARQL CDTs (lists and maps as literals) [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2518:
URL: https://github.com/apache/jena/issues/2518#issuecomment-2322927495

   Thanks.
   
   I've finished aligning the code. I'll squash/tidy the additional commits and do a few timing tests to make sure nothing major has happened.
   
   I'm busy most of this coming week and this isn't a trivial set of changes, so there will be a short delay.


-- 
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


Re: [I] Support for SPARQL CDTs (lists and maps as literals) [jena]

Posted by "rvesse (via GitHub)" <gi...@apache.org>.
rvesse commented on issue #2518:
URL: https://github.com/apache/jena/issues/2518#issuecomment-2147632819

   See PR #2501 


-- 
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