public static SchemaSource createSchemaSourceFromText(String namespace, String text, String format) { String uri = namespace + StringUtils.getHashFromString(text); String prefix = UriToPathUtils.getAutoPrefixForURI(uri); return createSchemaSourceSimple(prefix, uri, RdfReaderFactory.createReaderFromText(text, format)); }
public static SchemaSource createSchemaSourceFromText(String namespace, String text, String format) { String uri = namespace + StringUtils.getHashFromString(text); String prefix = UriToPathUtils.getAutoPrefixForURI(uri); return createSchemaSourceSimple(prefix, uri, RdfReaderFactory.createReaderFromText(text, format)); }
public TestSourceBuilder setInMemFromCustomText(String customTextSource, String customTextFormat) throws UndefinedSerializationException { SerializationFormat format = FormatService.getInputFormat(customTextFormat); if (format == null) { throw new UndefinedSerializationException(customTextFormat); } this.inMemReader = RdfReaderFactory.createReaderFromText(customTextSource, format.getName()); if (queryingConfig == null) { queryingConfig = QueryingConfig.createInMemory(); } return this; }
public TestSourceBuilder setInMemFromCustomText(String customTextSource, String customTextFormat) throws UndefinedSerializationException { SerializationFormat format = FormatService.getInputFormat(customTextFormat); if (format == null) { throw new UndefinedSerializationException(customTextFormat); } this.inMemReader = RdfReaderFactory.createReaderFromText(customTextSource, format.getName()); if (queryingConfig == null) { queryingConfig = QueryingConfig.createInMemory(); } return this; }