Carl is a tool for parsing N3 files and outputting the resulting triples in "N3P" format. "N3P" is a RDF/rules serialization format used by the Eye reasoner.
carl [-b=base-uri] [-o=output-file] [input-files]
-b=baseUri
the base URI to use when resolving relative URIs.-o=output-file
where the results are written, write to stdout when omitted.input-files
the Turtle input files to process, read from stdin when omitted.
- '@' keywords are not supported, with the exception of '@prefix' and '@base'.
- The rules for matching terminal symbols do not follow the team submission, but are adapted to match the Turtle and SPARQL grammar terminals.
- Variables are not allowed outside of graphs.
- Literals, lists and graphs are not allowed as property.
- Unlike N3, there is no implicit prefix definition for the default namespace (
@prefix : <#>.
).
The N3Lexer.cc
file included in the source tarball is generated with Flex version 2.5.35. If Flex installed on your system is newer, you might see compilation errors.
In that case, you can execute make maintainer-clean src/N3Lexer.cc
to regenerate N3Lexer.cc
.