On 8/26/2013 18:52, Claude Warren wrote:
Is there a test case for this problem?
Attached (with dummy content and from a string, but just pretend it came
from a local file which is our use case). And yes, we manage and resolve
owl:imports ourselves - almost all Models are loaded from local files.
Holger
package org.topbraid.jenax.test;
import java.io.StringBufferInputStream;
import org.junit.Test;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.util.FileUtils;
public class ModelReadTest {
@Test
public void testTurtle() {
String file = "[] a [] .";
Model model = ModelFactory.createDefaultModel();
model.read(new StringBufferInputStream(file),
"http://example.org/file.rdf", FileUtils.langTurtle);
}
}