N3 PHP Parser
Impatient?
This parser is now officially a part of RAP, the RDF API for PHP. You can download the version here or get the whole API through CVS from Sourceforge
This parser can parse a subset of n3, reporting triples to a callback function
or constructing a RDF Api Model
Supported N3 features:
- Standard things, repeated triples ( ; and , ), blank nodes using [ ]
- @prefix mappings
- = maps to daml:equivalentTo
- Long Literals: """ blah-blah """
Un-supported N3 Features include:
- Literal subjects, supported by parser, but not by RDF API
- DAML Lists
- Reification using { }.
- . and ^ operators for tree traversal.
- Any log operators, like log:forAll etc.
This parser is based on n3.py from Epp released 2nd March, 2002.
by Sean B. Palmer.
Feel free to use this parser under the GNU GPL license.
Links
History:
- 06-8-2003 Initial version converted from n3.py
Gunnar AAstrand Grimnes