Code for a command-line stable serializer for RDF. This will be used in a commit-hook to make sure that all RDF files in the repo are stored in the same way.
Requirements are being gathered at a wiki page
The FIBO JIRA server has a separate project for the rdf-serializer: https://jira.edmcouncil.org/browse/RDFSER
Please add your issues, bugs, feature requests, requirements or questions as issues on the JIRA site.
This project is being build and packaged on the EDM Council Jenkins Server by this job.
The RDF Serializer is packaged as one "fat jar" or "uber jar" which can be downloaded from the Jenkins server:
=====
Copy the rdf-serializer.jar file to your local disk.
On Linux or Mac OS X you can execute the rdf-serializer as follows:
- Open a Terminal
- Type the name of the rdf-serializer.jar file on the command prompt and supply the --help option:
>rdf-serializer.jar --help
- Open a Command Shell by going to the Start menu and type cmd.exe
- Ensure that Java is installed by typing "java -version" on the command line, which should result in either version 1.7 or 1.8.
- Then launch the rdf-serializer's help function as follows:
C:/>java -jar rdf-serializer.jar --help
The current "--help" option gives the following information:
rdf-serializer version 1.0.0-SNAPSHOT-a0023ac (2014-12-06T13:54:27.752-0500)
Usage: rdf-serializer [--verbose] [--help]
Where:
--version show just the version of rdf-serializer (1.0.0-SNAPSHOT-a0023ac)
--verbose switch on verbose logging (sets INFO level logging).
--debug switch on debug level logging.
--force force output file to be overwritten if it exists.
--help this help.
--input-file <path>
--output-file <path>
--output-format <format> where <format> is one of (between quotes):
- TriX
- OWL Functional Syntax
- OBO Format
- KRSS2 Syntax
- OWL/XML Syntax
- RDF/XML
- RDF/XML Syntax
- RDF/JSON
- N3
- Manchester OWL Syntax
- BinaryRDF
- N-Triples
- JSON-LD
- N-Quads
- TriG
- Turtle
- Turtle Syntax
- LaTeX Syntax
--base-dir <path> root directory where imported ontologies can be found
Note: For XML output syntax, blank nodes will be handled properly.