Created
July 14, 2015 18:35
-
-
Save rogargon/0c79561a978df34a6d59 to your computer and use it in GitHub Desktop.
Regular Expression for RDF N-Quads with 4 capturing groups for subject, predicate, object and graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(<[^\s]+>|_:(?:[A-Za-z][A-Za-z0-9\-_]*))\s+(<[^\s]+>)\s+(<[^\s]+>|_:(?:[A-Za-z][A-Za-z0-9\-_]*)|\"(?:(?:\"|[^"])*)\"(?:@(?:[a-z]+[\-A-Za-z0-9]*)|\^\^<(?:[^>]+)>)?)\s+(<[^\s]+>).* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment