65666768697071
if ( oldloc instanceof com.hp.hpl.jena.util.LocatorZip ) { com.hp.hpl.jena.util.LocatorZip zipLoc = (com.hp.hpl.jena.util.LocatorZip)oldloc ; return new LocatorZip(zipLoc.getZipFileName()) ; } throw new RiotException("Unrecognized Locator: " + Utils.className(oldloc)) ; }
9899100101102103
@Override public void warning(String message, long line, long col) {} @Override public void error(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; }
102103104105106107
public void error(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; } @Override public void fatal(String message, long line, long col) { throw new RiotException(fmtMessage(message, line, col)) ; }
123124125126127128129
/** report an error */ @Override public void error(String message, long line, long col) { logError(message, line, col) ; throw new RiotException(fmtMessage(message, line, col)) ; }
131132133134135136137
/** report a fatal error - does not return */ @Override public void fatal(String message, long line, long col) { logFatal(message, line, col) ; throw new RiotException(fmtMessage(message, line, col)) ; }
153154155156157158159
161162163164165166167
235236237238239240241242
/** Get the graph writer factory asscoiated with the language */ public static WriterGraphRIOTFactory getWriterGraphFactory(Lang lang) { RDFFormat serialization = defaultSerialization(lang) ; if ( serialization == null ) throw new RiotException("No default serialization for language "+lang) ; return getWriterGraphFactory(serialization) ; }
250251252253254255256257
/** Get the dataset writer factory asscoiated with the language */ public static WriterDatasetRIOTFactory getWriterDatasetFactory(Lang lang) { RDFFormat serialization = defaultSerialization(lang) ; if ( serialization == null ) throw new RiotException("No default serialization for language "+lang) ; return getWriterDatasetFactory(serialization) ; }
125126127128129130131132
options.useNamespaces = true; JsonLdProcessor.toRDF(jsonObject, callback, options) ; } catch (JsonLdError e) { errorHandler.error(e.getMessage(), -1, -1); throw new RiotException(e) ; } }