You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by afs <gi...@git.apache.org> on 2018/05/06 16:13:42 UTC
[GitHub] jena issue #299: Turtle Star
Github user afs commented on the issue:
https://github.com/apache/jena/pull/299
@hartig - I'm ambivalent on changing `ParserProfileStd` because that guarantee on `checkTriple` (and `checkQuad`) checks a condition that a lot of code assumes is valid and does not check again. Hence the "Std".
How about changing Jena so the `checkTriple` is publicly accessible and also adding, in Jena, `ParserProfileWrapper` so that operations can be intercepted and changed?
(Incidently, this would be good to anyway for "generalized RDF" as defined in RDF 1.1)
```
TurtleStarReaderRIOT(Lang lang, ParserProfile parserProfile) {
this.lang = lang;
this.parserProfile = new ParserProfileRDFStar(parserProfile);
}
```
```
public class ParserProfileRDFStar extends ParserProfileWrapper {
public ParserProfileRDFStar(ParserProfile parserProfile) { super(parserProfile); }
@Override public void checkTriple(...
@Override public void checkQuad(...
}
```
---