Package org.phyloref.jphyloref.helpers
Class JSONLDHelper
java.lang.Object
org.phyloref.jphyloref.helpers.JSONLDHelper
public class JSONLDHelper
extends java.lang.Object
JSONLDHelper provides methods to help read and process JSON-LD files.
- Author:
- Gaurav Vaidya
-
Constructor Summary
Constructors Constructor Description JSONLDHelper() -
Method Summary
Modifier and Type Method Description static org.eclipse.rdf4j.rio.RDFParsercreateRDFParserForOntology(org.semanticweb.owlapi.model.OWLOntology ontology)Create an RDFParser for JSON-LD files.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.
-