-
Notifications
You must be signed in to change notification settings - Fork 16
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
Filter specific graph in nquads #12
Comments
Thanks / you're welcome :) Good idea. I've had the same thought, actually, though I was thinking of taking it a bit further and allow general patterns (or at least subject and predicate as well). Not sure about blanks... maybe it could just not support them, or do a simple string match which would still be handy. The idea of bloating the still very "do one thing and do it well" Might need to break the API to do this well, though I'm not sure, and I think it's time to break it and clean some things up for the next major version anyway. |
The For grepping I use '<...> <' patterns but that does not work for everything and it's not very nice to write. |
Added this in the Could still use a bit of polish (and command line flags are starting to run out), but seems to do the job. |
It borrows a shred of SPARQL so you can write an NQuads statement with
|
Excellent, I will give it a try thanks! The SPARQL approach makes a lot of sense to me. |
It seemed weird to only have "inclusive" or "exclusive" (like As it happens the (also new) validation checks had the same problem, and I'm increasingly worried about the rapidly disappearing flag characters, but it seemed questionable to invent some kind of odd command line syntax (like a universal negation flag that negates the thing after it), so I guess this will have to do until some future even fancier future version forces the issue. |
First, thanks for serdi, very nice & fast library!
I often use it in RDF creation pipelines and one job I do on a regular base is to convert quads to triples. Sometimes the graph does not matter but in other cases it would be nice to be able to specify which graph I want to have in the output and throw away the rest (or vice versa).
I currently do this with pipe-filters but I would feel more comfortable when I could add that as parameter to serdi.
The text was updated successfully, but these errors were encountered: