-
Notifications
You must be signed in to change notification settings - Fork 643
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
JENA-2065: RDF-star #951
JENA-2065: RDF-star #951
Conversation
Key points:
|
A good chance to try to read the latest w3c draft, go through some points, and see if I can get my Jena project to build and run from |
The spec (WIP - live editors draft) is https://w3c.github.io/rdf-star/cg-spec/editors_draft.html I'm sure detail will change. |
I'm watching the w3c repository and trying to at least read each PR/issue while lurking. But it's moving quite fast, have some issue/PR to read pretty much every day in my notifications. |
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.
Few comments, but no blockers. I will try to start Fuseki now, and see if I manage to load some data and try a few queries, but I might have to stop and do something else, and then would have time again to play with new code only in 2 days. So no problem if it's merged right now 👍
Thanks @afs!
case PNAME_NS: | ||
case PNAME_LN:{ | ||
iri = iri(); | ||
o = createNode(iri, token.beginLine, token.beginColumn) ; |
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.
Is this auto-generated? If not maybe we can fix the indentation here
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.
I remember we had a javacc grammar file somewhere I think, used to produce these files, but I didn't see the grammar file when I was sifting through the changes (I skip a few files that are not *.java, or that are tests, so I may have missed it).
jj_consume_token(-1); | ||
throw new ParseException(); | ||
} | ||
{if ("" != null) return o;} |
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.
and here
} | ||
// Normally true. | ||
public // For integration testing only | ||
static final boolean DATAPATH = true; |
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.
👍 or should we make it into a Javadoc code so users don't use it? I remember someone asking about some code recently-ish in the mailing list that changed… I think the code was not supposed to be used externally, or maybe there was an alternative but it wasn't clear to the user.
return true; | ||
|
||
// Deep substitute. This happens anyway as we walk structures. | ||
// nPattern = Substitute.substitute(nPattern, input); |
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.
Extra space here, but not important.
import org.apache.jena.sparql.util.Context; | ||
|
||
/** | ||
* For reference only: this code uses the triple index for matchign and it is PG mode.. |
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.
s/matchign/matching (also extra period at the end of sentence?)
import org.apache.jena.sparql.graph.NodeTransform ; | ||
|
||
/** | ||
* RDF-start triple term in an expression. |
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.
s/RDF-start/star (worth looking for RDF-start in the IDE if using one; that's one error that spell/grammar checkers would miss I guess)
dispatch.put(Tags.tagAdd, buildPlus); | ||
dispatch.put(Tags.symMinus, buildMinus); | ||
dispatch.put(Tags.tagSubtract, buildMinus); | ||
dispatch.put(Tags.tagMinus, buildMinus); // Not to be confused with Op for SPARQL MINUS |
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.
Looked up at the Tags
class to see if there was an Tags.tagPlus
… just because I thought that as symMinus
is for symPlus
, and tagSubtract
is for tagAdd
, then tagMinus
would be for tagPlus
(there's even an unary plus) 😆
*/ | ||
|
||
public class FmtUtils | ||
{ | ||
// OLD CODE - being replaced by riot.NodeFmtLib | ||
// See alsoriot.NodeFmtLib |
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.
space? Not really important
return execute(ntt, graph.getGraphName(), pattern, input, filter, execCxt); | ||
} | ||
|
||
/** Non-reordering execution of a quad pattern, given a iterator of bindings as input. |
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.
a/a iterator/an iterator
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.
Another global search done ...
default: | ||
throw new TDBException("Index is not recognized: "+idx); | ||
throw new InternalErrorException("Tuple of unknow length"); |
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.
s/unknow/unknown
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.
It's "uck" that there is code copy on but unifying TDB1 into DBOE/TDB2 framework risks destablizing the code.
Copying the code, so it is just import changes, is slightly nudging them together. But in nearby classes the code is appreciably different.
"Sometime".
Thank for the comments! |
This update RDF-star handling to the current state of the RDF-star group work.