Package org.phyloref.jphyloref.helpers
Class JSONLDHelper
java.lang.Object
org.phyloref.jphyloref.helpers.JSONLDHelper
JSONLDHelper provides methods to help read and process JSON-LD files.
- Author:
- Gaurav Vaidya
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.rdf4j.rio.RDFParsercreateRDFParserForOntology(org.semanticweb.owlapi.model.OWLOntology ontology)Create an RDFParser for JSON-LD files.
-
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'sparse()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.
-