Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR replaces the
PhyxWrapper.asOWLOntology()
with two methods:PhyxWrapper.asJSONLD()
for converting a Phyx file into an OWL/JSON-LD file, andPhyxWrapper.asNQuads()
for converting a Phyx file into an N-Quads file, which we do by converting the OWL/JSON-LD file into N-Quads using the jsonld NPM package. While the OWL/JSON-LD files are very useful in development, debugging and testing, we anticipate that most users will usePhyxWrapper.asNQuads()
to directly produce N-Quads. It also modifies thephyx2owl.js
script so that it produces N-Quad files rather than OWL/JSON-LD files.Note that we use "N-Quads" instead of "N-Triples" because it is possible to set up a subgraph within a Phyx file using JSON-LD's graph containers, in which case the
jsonld
NPM package we use should emit those graph IRIs in the N-Quads output. However, I don't know why anybody would do this, and in almost all cases the output we produce will be N-Triples rather than N-Quads. I think "N-Quads" is probably still the right term to use, since that format specifically says the graph IRI may be left out if not needed. But I just wanted to be clear about that.Should be merged after PR #87.