Java Code Examples for org.eclipse.rdf4j.rio.RDFFormat#JSONLD
The following examples show how to use
org.eclipse.rdf4j.rio.RDFFormat#JSONLD .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RestUtils.java From mobi with GNU Affero General Public License v3.0 | 5 votes |
/** * Returns the specified RDFFormat. Currently supports Turtle, TRiG, RDF/XML, and JSON-LD. * * @param format The abbreviated name of a RDFFormat. * @return A RDFFormat object with the requested format. */ public static RDFFormat getRDFFormat(String format) { switch (format.toLowerCase()) { case "turtle": return RDFFormat.TURTLE; case "trig": return RDFFormat.TRIG; case "rdf/xml": return RDFFormat.RDFXML; case "jsonld": default: return RDFFormat.JSONLD; } }
Example 2
Source File: JSONLDParser.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public RDFFormat getRDFFormat() { return RDFFormat.JSONLD; }
Example 3
Source File: JSONLDParserFactory.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public RDFFormat getRDFFormat() { return RDFFormat.JSONLD; }
Example 4
Source File: JSONLDWriter.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public RDFFormat getRDFFormat() { return RDFFormat.JSONLD; }
Example 5
Source File: JSONLDWriterFactory.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public RDFFormat getRDFFormat() { return RDFFormat.JSONLD; }