Java Code Examples for org.eclipse.rdf4j.rio.RDFFormat#TRIG
The following examples show how to use
org.eclipse.rdf4j.rio.RDFFormat#TRIG .
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: Query.java From mobi with GNU Affero General Public License v3.0 | 5 votes |
private RDFFormat getFormat() { if (formatParam != null && formats.containsKey(formatParam)) { return formats.get(formatParam); } else { return RDFFormat.TRIG; } }
Example 2
Source File: ExportBase.java From mobi with GNU Affero General Public License v3.0 | 5 votes |
protected RDFFormat getFormat() throws IOException { if (formatParam != null && formats.containsKey(formatParam)) { return formats.get(formatParam); } else if (filepathParam != null) { return Rio.getParserFormatForFileName(filepathParam).orElse(RDFFormat.TRIG); } else { return RDFFormat.TRIG; } }
Example 3
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 4
Source File: TriGParserFactory.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * Returns {@link RDFFormat#TRIG}. */ @Override public RDFFormat getRDFFormat() { return RDFFormat.TRIG; }
Example 5
Source File: TriGWriter.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public RDFFormat getRDFFormat() { return RDFFormat.TRIG; }
Example 6
Source File: TriGParser.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public RDFFormat getRDFFormat() { return RDFFormat.TRIG; }
Example 7
Source File: TriGWriterFactory.java From rdf4j with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * Returns {@link RDFFormat#TRIG}. */ @Override public RDFFormat getRDFFormat() { return RDFFormat.TRIG; }