Class JSONLDHelper

java.lang.Object
org.phyloref.jphyloref.helpers.JSONLDHelper

public class JSONLDHelper extends Object
JSONLDHelper provides methods to help read and process JSON-LD files.
Author:
Gaurav Vaidya
  • Constructor Details

    • JSONLDHelper

      public JSONLDHelper()
  • Method Details

    • createRDFParserForOntology

      public static org.eclipse.rdf4j.rio.RDFParser createRDFParserForOntology(org.semanticweb.owlapi.model.OWLOntology ontology)
      Create an RDFParser for JSON-LD files. When the parser's parse() method is called, its contents will be added to the OWLOntology passed to this method.
      Parameters:
      ontology - The ontology to create an RDF parser for.
      Returns:
      An RDF Parser that can be used to read an OWL ontology from JSON-LD.